Reshard create
vtctldclient Reshard create
Create and optionally run a Reshard VReplication workflow.
1. vtctldclient Reshard create
Examples
1. vtctldclient --server localhost:15999 reshard --workflow customer2customer --target-keyspace customer create --source-shards="0" --target-shards="-80,80-" --cells zone1 --cells zone2 --tablet-types replica
Options
1. --auto-start Start the workflow after creating it. (default true)
2. -c, --cells strings Cells and/or CellAliases to copy table data from.
3. --defer-secondary-keys Defer secondary index creation for a table until after it has been copied.
4. -h, --help help for create
5. --on-ddl string What to do when DDL is encountered in the VReplication stream. Possible values are IGNORE, STOP, EXEC, and EXEC_IGNORE. (default "IGNORE")
6. --skip-schema-copy Skip copying the schema from the source shards to the target shards.
7. --source-shards strings Source shards.
8. --stop-after-copy Stop the workflow after it's finished copying the existing rows and before it starts replicating changes.
9. --tablet-types strings Source tablet types to replicate table data from (e.g. PRIMARY,REPLICA,RDONLY).
10. --tablet-types-in-preference-order When performing source tablet selection, look for candidates in the type order as they are listed in the tablet-types flag. (default true)
11. --target-shards strings Target shards.
Options inherited from parent commands
1. --action_timeout duration timeout to use for the command (default 1h0m0s)
2. --compact use compact format for otherwise verbose outputs
3. --format string The format of the output; supported formats are: text,json. (default "text")
4. --server string server to use for the connection (required)
5. --target-keyspace string Target keyspace for this workflow.
6. -w, --workflow string The workflow you want to perform the command on.
SEE ALSO
- vtctldclient Reshard - Perform commands related to resharding a keyspace.
