COPY PARTITION
Copies the target partition from the master partition to the specified leaf, and sets up replication from the master partition.
Syntax
COPY PARTITION partition_id TO 'leaf_host':leaf_port
Remarks
partition_id
has the formdb_name:partition_ordinal
.- The master partition for the partition_id must exist and be in an
ONLINE
state. - This command must be run on the master aggregator node (see Node Requirements for SingleStore DB Commands ).
Example
COPY PARTITION memsql_demo:63 TO 'ip-10-0-3-82.ec2.internal':3306;
Query OK, 1 row affected (2.73 sec)