|
We will install and configure the RSync Event Listener to Render. The Render Module create HTML and Static Files Structure into Delivery Stage Docroot directory.
If the webserver is at other remote server, will need copy these static files to servers, there are 2 ways to execute this procedure:
Crontab: It will be defined a period that linux crontab will run the the rsync, for example, 5 or 10 min. This method runs some times and it is not immediate.
Event Listener: The rsync will be executed to all files on docroot directory when Rsync Event is called. This method is immediate.
Why use RSync?
RSync is an efficient backup utility that has the option of copy only modified files. This way the copy is faster with less overload.
Below, we will show the step to install and to configure the Render RSync Event Listener.
Classpath
- Unzip the rsyncListener.zip on /opt/vignetteWork/VCM/Extensions/Listeners/RSync directory from Configuration Agent Server.
- Edit CDA Classpath file from Deployment Agent to use the listener, for example,
/opt/vignetteWork/VCM/inst-vgncorp/cfgagent/_
vcmvgncorp/cdsvcs/stage-Production/cds-Production/cda-Appsvcs/conf/cda.classpath
- Add 2 lines on cda.classpath files:
CLASSPATH.26=/opt/vignetteWork/VCM/Extensions/Listeners/_
RSync/commons-lang-2.3.jar
CLASSPATH.27=/opt/vignetteWork/VCM/Extensions/Listeners/_
RSync/rsyncListener.jar
Configuration Console
Once the rsyncListener.jar file is deployed to the DA’s classpath, some steps are required in using the Vignette Configuration Console. See below.
- Login to the Vignette Configuration Console as the Vignette administrator user. On the left panel, expand Content > Vignette Content Delivery Services > Content Delivery Stage – stage
- Right-click the item Resources and select the option Add Resource. Create a resource of Generic type. The resource name must be RSync Resource and the subtype must be Properties. These identifiers are case-sensitive, so be careful when entering such information. In the Non-encrypted data field enter the RSync command, for example:
rsync --password-file=/opt/vignetteWork/VCM/Extensions/_
Listeners/RSync/rsync.passwd -r -v -a /opt/vignetteWork/Docroot/Production/ _
rsync://vgnusr@server_dest/site1/
- Expand Vignette Content > Vignette Content Delivery Services > Content Delivery Stage – stage > Resources > Resource – VgnExtTemplating Resource. Add the following line on DATA variable:
render.end.listeners=com.viglet.listener.RenderRSyncListener
For example:
delivery.type=jsp
vap.portal.context=/portal
cas.tracking=false
cas.tracking.page=false
cas.tracking.region.content=false
templating.workingDir=/opt/vignetteWork/DPM/Production
viewer.port=9081
default.mapping.cacheLifeTime=600000
default.object.cache.cacheDir=/opt/vignetteWork/DPM/Production/cache
viewer.host=vignvcm01
log.debugLogFilename=/opt/vignetteWork/DPM/Production/logs/debug
site.info.impl=com.vignette.ext.templating.link.ExtendedSiteInfo
viewer.protocol=http
default.object.cache.cacheLifeTime=86400000
regions.defaultpath=/Components
cas.tracking.region.item=false
render.renditionable.sites=Site1
log.isLoggingDebug=true
objectcache.impl=com.vignette.ext.templating.cache.DefaultObjectCache
query.component.cache.cacheLifeTime=180000
profile.impl=com.vignette.ext.templating.profile.DefaultProfile
render.end.listeners=com.viglet.listener.RenderRSyncListener
Click OK and commit this modification to the VCM server.
- Restart the DA, Open the popup menu in Vignette Content > Vignette Content Delivery Services > Content Delivery Stage – stage. Select Deployment Agent Tasks > Stop Deployment Agents and Start Deployment Agents
Wiki Links
Discuss this article on the forums. (0 posts)
|