Product tutorials, how-tos, and fully-documented APIs.

Multi Data Center Replication: With NAT

    Riak Enterprise Only
    This documentation applies only to Riak Enterprise, Basho's commercial extension to Riak. To talk to us about using Riak Enterprise, let us know.

    Riak Enterprise now supports replication of data on networks that use static NAT.

    This can be used for replicating data over the internet where servers have both internal and public IP addresses (see Riak REPL SSL if you replicate data over a public network).

    Requirements:

    In order for Replication to work on a server configured with NAT, the NAT addresses must be configured statically.

    Example

    Server A is the source of replicated data.

    Servers B and C would like to be clients of the replicated data.

    Server A is setup with static NAT, configured for IP addresses:

    Server A replication will listen on:

    Server B is setup with a single public IP address: 50.16.238.200

    Server C is setup with a single internal IP address: 192.168.1.20

    Configure a listener on Server A:

    riak-repl add-nat-listener riak@192.168.1.10 192.168.1.10 9010 50.16.238.123 9011
    

    Configure a site (client) on Server B

    riak-repl add-site 50.16.238.123 9011 server_a_to_b
    

    Configure a site (client) on Server C

    riak-repl add-site 192.168.1.10 9010 server_a_to_c