The option to automatically set up table replication, also known as replica autosetup, performs the steps to set up and start the replication of HPE Ezmeral Data Fabric Database binary table and HPE Ezmeral Data Fabric Database JSON tables. The replica autosetup option is available through the Control System and maprcli commands.
In general, replica autosetup performs the following steps to set up replication:
The directcopy option uses gateways to perform all setup operations
including the initial population of data into the replica table. Directcopy is the default
option when you setup table replication using the Control System or with the maprcli
table replica autosetup command.
When a client submits a request to automatically setup table replication to the cluster, the source cluster acknowledges the request and begins to track the replica autosetup request from start to finish.
If a failure occurs when replica autosetup operations are in progress, the source cluster resumes operations from the point of failure.
maprcli table replica
list command. To stop the automatic setup of table replication, run
maprcli table replica
remove, or delete the source or replica table. Without the directcopy option, replica autosetup submits a majority of the replication setup
requests through the client and then runs a copy table utility to populate the initial table
data. To use replica autosetup without the directcopy option, run maprcli table
replica autosetup command with the -directcopy parameter set to
false.
Without the directcopy option, once a client submits a replica autosetup request to the cluster,
it must wait until the source cluster sends a notification that the autosetup request is
complete before it can submit another request to the cluster. In this case, replica
autosetup uses the client connection to submit autosetup operation requests such as create
replica, add replica, and add upstream source. To populate the initial table data, the
client runs mapr copytable for JSON tables and the
CopyTable utility for binary tables.
If a failure occurs when replica autosetup operations are in progress, the client hangs and any replica tables that were created during the failed autosetup operations must be manually deleted before trying to setup replication again.