BCC Master – Slave Agent Configurations
Note: A shared ConfigFileSystem is supported for switch mode deployments only.
Steps to set up Shared ConfigFileSystem:
1. Designate one ATG instance on each machine/VM as the master instance and rest other ATG instances are considered as slave instances.
2. Configure a master ConfigFileSystem.properties file with below content.
File: <ATG-Data-dir>/servers/<master-instance>//localconfig/atg/epub/file/ConfigFileSystem.properties
#/atg/epub/file/ConfigFileSystem
$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
updateListeners+=/atg/epub/monitor/PersonalizationConfigurationMonitor
journalDirectory={serverHomeDirResource?resourceURI=/PublishingAgent/deploymentconfig/data/config}
name1=DataSourceA
name2=DataSourceB
3. Configure a slave ConfigFileSystem.properties file with below content in rest of the ATG instances on the machine.
File: <ATG-Data-dir>/servers/<slave-instance>/localconfig/atg/epub/file/ConfigFileSystem.properties
# /atg/epub/file/ConfigFileSystem
$class=atg.vfs.switchable.SlaveLocalFileSystemService
# references to SwitchableLocalFileSystem - in local that is softlinked to shared copy
rootDirectory={serverHomeDirResource?resourceURI=/PublishingAgent/deploymentconfig/live/config}
journalDirectory={serverHomeDirResource?resourceURI=/PublishingAgent/deploymentconfig/data/config/journalBackup}
statusFile={serverHomeDirResource?resourceURI=/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 60 seconds
updateListeners+=/atg/epub/monitor/PersonalizationConfigurationMonitor
4. Configure the master ConfigFileSystem as a switchable data store on the master instance.
File: <ATG-Data-dir>/servers/<master-instance>/localconfig/atg/epub/DeploymentAgent.properties
#/atg/epub/DeploymentAgent.properties
switchableDataStores+=/atg/epub/file/ConfigFileSystem
5. Also for safer side remove ConfigFileSystem mapping from DeploymentAgent component in all slave instances.
File: <ATG-Data-dir>/servers/<slave-instance>//localconfig/atg/epub/DeploymentAgent.properties
#/atg/epub/DeploymentAgent.properties
switchableDataStores-=/atg/epub/file/ConfigFileSystem
6. Create a soft links to deploymentconfig folder from Master instance to slave instances on each machine.
Example: ln -s <ATG-Data-dir>/servers/<master-instance>/PublishingAgent/deploymentconfig <ATG-Data-dir>/servers/<slave-instance>/PublishingAgent/deploymentconfig
7. Remove ConfigFileSystem mapping configurations from all agents other than master agent in BCC. This will make sure all Slave agents are non-essentials for deployment in BCC.
(Note: The step 7 has to be done logging into the BCC console and goto "Content Administration-->Admin Console-->Configuration-->Production-->Agents"
Comments
Post a Comment