Administration Guide › Set Up Replication › DISP Replication › Example: DISP Replication
Example: DISP Replication
To configure the replication in the Democorp example, perform the following steps:
- Stop the DSAs.
- Ensure that the datastores of each DSA contain the same data.
- Create the DISP agreement in the configuration file (agreement.dxc) in the replication directory of both DSAs, using the following command:
set agreement 1.1 =
{
initiator = Democorp
responder = Consumer
area = <countryName AU><organizationName Democorp>
};
- Ensure that the configuration for the Slave (Consumer) DSA configuration includes a DISP PSAP definition.
- Edit the Democorp master DSA initialization file (.dxi) to source the replication agreement, using the following command:
# replication agreement
source "../replication/agreement.dxc";
- Edit the Democorp slave DSA initialization file (.dxi) to source the replication agreement (agreement.dxc), using the following command:
# replication agreement
source "../replication/agreement.dxc";
- Start the DSAs, for example by using the following command:
dxserver start all
Note: You can also consider setting the slave DSA to be a shadow.