Optionally, you can configure an ATG Content Administration environment distributed across multiple VMs so it deploys to a single ConfigFileSystem
. To do so, you create a target SwitchableLocalFileSystem
in one VM and SlaveLocalFileSystems
in other VMs, so only one VM per machine is responsible for file deployments. This configuration can significantly increase performance because it requires the deployment data, which can become very large, to be sent to only one target rather than to all targets.
Note: A shared ConfigFileSystem
is supported for switch mode deployments only.
To set up a shared ConfigFileSystem
deployment model:
Designate one ATG instance on each machine as the master target. Other ATG instances are considered slave targets and use the file system on the master instance.
Using the ConfigFileSystem.properties files (see below) as starting points, configure a master
SwitchableLocalFileSystem
in thelocalconfig
of the master instance. Then configure identicalSlaveLocalFileSystems
in thelocalconfig
in each of the other instances, or in /home/localconfig
.In the master
localconfig
only, configure theSwitchableLocalFileSystem
as a switchable data store. Create an/atg/epub/DeploymentAgent.properties
file with the following line:switchableDataStores+=/atg/epub/file/ConfigFileSystem
Perform a full deployment to synchronize the new data directories with the ATG Content Administration server.
ConfigFileSystem.properties
Note: These sample property files have machine-specific paths in them that you will need to change. In all cases, however, the component’s Nucleus name must be: /atg/epub/file/ConfigFileSystem
.
The following sample shows a ConfigFileSystem.properties
file for the master instance:
# @version $Id: //product/PublishingAgent/version/2007.3/agent/config /atg/epub/file/ConfigFileSystem.properties#1 $$Change: 337702 $ #$class=atg.vfs.journal.JournalingFileSystemService #virtualFileSystem=ConfigFileSystemLocal #journalDirectory={serverHomeDirResource?resourceURI=PublishingAgent/ deploymentconfig/data/config} #clearJournalOnUpdate=true #updateListeners+=/atg/epub/monitor/PersonalizationConfigurationMonitor ################################ #Use this configuration for a switched deployment $class=atg.vfs.switchable.SwitchableLocalFileSystem # liveDirectory={serverHomeDirResource?resourceURI=PublishingAgent/ deploymentconfig/live/config} stagingDirectory={serverHomeDirResource?resourceURI=PublishingAgent/ deploymentconfig/staging/config} dataDirectory={serverHomeDirResource?resourceURI=PublishingAgent/ deploymentconfig/data/config} journaling=true clearJournalOnUpdate=true backupJournal=true name1=VFSName1 name2=VFSName2
The following sample shows a ConfigFileSystem.properties
file for slave instances:
$class=atg.vfs.switchable.SlaveLocalFileSystem # references to SwitchableLocalFileSystem rootDirectory=c:\\atg\\atg2007.3\\home\\servers\\ target-primary\\PublishingAgent\\deploymentconfig\\live\\config journalDirectory=c:\\atg\\atg2007.3\\home\\servers\\ target-primary\\PublishingAgent\\deploymentconfig\\data\\config\\ journalBackup statusFile=c:\\atg\\atg2007.3\\home\\servers\\target-primary\\ PublishingAgent\\deploymentconfig\\data\\config\\status.dat # schedule for checking switch status to see if an update event is required scheduler=/atg/dynamo/service/Scheduler schedule=every 20 seconds