Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Reshard in vtctldclient #13792

Merged
merged 13 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion examples/local/303_reshard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@

source ../common/env.sh

vtctlclient Reshard -- --source_shards '0' --target_shards '-80,80-' Create customer.cust2cust
vtctldclient Reshard --workflow cust2cust --target-keyspace customer create --source-shards '0' --target-shards '-80,80-'

# Wait for the workflow to reach the running state.
wait_for_workflow_running customer cust2cust

2 changes: 1 addition & 1 deletion examples/local/304_switch_reads.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

source ../common/env.sh

vtctlclient Reshard -- --tablet_types=rdonly,replica SwitchTraffic customer.cust2cust
vtctldclient Reshard --workflow cust2cust --target-keyspace customer switchtraffic --tablet-types "rdonly,replica"
3 changes: 2 additions & 1 deletion examples/local/305_switch_writes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@

source ../common/env.sh

vtctlclient Reshard -- --tablet_types=primary SwitchTraffic customer.cust2cust
vtctldclient Reshard --workflow cust2cust --target-keyspace customer switchtraffic --tablet-types "primary"

2 changes: 1 addition & 1 deletion examples/local/306_down_shard_0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

source ../common/env.sh

vtctlclient Reshard Complete customer.cust2cust
vtctldclient Reshard --workflow cust2cust --target-keyspace customer complete

for i in 200 201 202; do
CELL=zone1 TABLET_UID=$i ../common/scripts/vttablet-down.sh
Expand Down
Loading