On Outgoing Replication Connections
AMPS includes a set of modules that allow you to configure an action to run based on events for outgoing replication connections.
The amps-action-on-connect-replication
module runs when an outgoing Destination
is connected. The amps-action-on-disconnect-replication
module runs when an outgoing Destination
is disconnected.
The amps-action-on-replication-resync-complete
module runs when a Destination
has been brought up to date with the transaction log of the local instance.
The amps-action-on-upgrade-replication
module runs when an outgoing replication connection that has been previously downgraded to acknowledge messages async
is being upgraded to acknowledge messages sync
.
The amps-action-on-downgrade-replication
module runs when an outgoing replication connection that is configured to acknowledge messages sync
is being downgraded to acknowledge messages async
.
These modules require no parameters.
These modules add the following variables to the AMPS context:
AMPS_REPLICATION_PEER_NAME
The instance name of the AMPS instance on the opposite end of the connection, if available.
AMPS_REPLICATION_CLIENT_NAME
The name of the AMPS client used for this connection.
AMPS_REPLICATION_REMOTE_ADDRESS
The remote address of the opposite end of the connection.
AMPS_REPLICATION_GROUP_NAME
The group name of the AMPS instance on the opposite end of the connection, if available.
AMPS_REPLICATION_TRANSPORT_NAME
The name of the transport making the outgoing connection.
Last updated