Configuring Incoming Replication Transports
Transports
enable connections to the AMPS instance. For replication, messages always flow from a replication destination to a transport defined in the Transport
section. To receive incoming messages via replication, an instance must define the amps-replication
transport in its list of Transports
. Note that an instance can have only one incoming replication transport.
Additionally, transports for application use must be configured separately, as an amps-replication
transport is used solely for replication purposes. For more information on Transports
, see the Configuring Transports section.
For inbound replication connections secured with SSL, use the amps-replication-secure
transport. This transport type requires a certificate and private key to be set.
This section describes configuring an AMPS replication transport, that is, a transport that allows the flow of incoming replication messages from a replication source.
Configuring a replication source involves defining a Destination
within the Replication
block, which specifies replication targets. See the Configuring Outgoing Replication Destinations section and the Replicating Messages Between Instances section for details.
The configuration details below apply specifically to the transport types amps-replication
and amps-replication-secure
, which are used for setting up replication. To configure a Transport
for handling application connections, see Configuring Transports.
Transport: Defining Incoming Messages
The amps-replication
Transport
defines an incoming flow of messages via replication.
Transport
(amps-replication) (required)
Defines how AMPS accepts connections for incoming replication messages.
Required parent tag, which is defined to receive incoming messages via replication.
For replication,
Type
should beamps-replication
oramps-replication-secure
(for connections that use SSL).
Replication Transport Configuration
Described below are the configuration items available for Transport
when configuring replication. Expand each item for more details.
TLS/SSL Parameters
Described below are the configuration items needed to set up and enable TLS/SSL, if the transport Type
is amps-replication-secure
. Expand each item for more details.
Sample Replication Transport Configuration
This section shows a sample that configures an AMPS instance to receive messages via replication.
<Transports>
<!-- Transport for clients: accept any known message
type over tcp. -->
<Transport>
<Name>any-tcp</Name>
<Type>tcp</Type>
<InetAddr>9007</InetAddr>
<Protocol>amps</Protocol>
</Transport>
<!-- The amps-replication transport is required.
This AMPS instance will receive replication messages
on this transport. The instance can receive messages
from any number of upstream AMPS instances on this
transport. However, regular clients cannot connect
on this port, since this port uses the replication
protocol. -->
<Transport>
<Name>amps-replication</Name>
<Type>amps-replication</Type>
<InetAddr>localhost:10004</InetAddr>
</Transport>
</Transports>
Last updated