Try OpenEdge Now
skip to main content
User Guide
OpenEdge Replication Quick Command Summary : Configuring OpenEdge Replication for two agents
 

Configuring OpenEdge Replication for two agents

You configure OpenEdge Replication for two agents by copying and editing the sample properties file.
Use the following procedure to configure OpenEdge Replication for two agents:
1. Copy the source properties file from OpenEdge-install-dir/properties/source.repl.properties to your source database directory, and rename the copy with your source database name.
2. Edit the [server] and [control.agent] sections, similar to the following:
[server]
     control-agents=agent1-name, agemt2-name
     database=source-db-name
     transition=manual
     transition-timeout=1200
     
[control-agent.agent1-name]
     name=agent1-name
     database=target-db-name
     host=yourhost
     port=your port or service name
     connect-timeout=120
     replication-method=async
     critical=0
     
[control-agent.agent2-name]
     name=agent2-name
     database=target-db2-name
     host=yourhost
     port=your port or service name
     connect-timeout=120
     replication-method=async
     critical=0
3. Copy the target properties file from $DSRHOME/properties/target.repl.properties to the database directories for each target database, and rename the copies with the corresponding target database name.
4. Edit the [agent] section in each file, similar to the following:
[agent]
     name=agent-name
     database=target-db-name
     listener-minport=1500
     listener-maxport=4500
Note: In a two-agent scenario, one Replication agent may connect to the Replication server and then terminate while the server is connecting to the second Replication agent. In this situation, the Replication server fails and does not attempt to reconnect to the agents. You must restart both target databases and then restart the Replication server, which will try again to connect to both agents.