Skip to content

Commit

Permalink
Extract common functions from Movetables. Initial functionality for R…
Browse files Browse the repository at this point in the history
…eshard

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Partial implementation of ReshardCreate

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Ported over ReshardCreate

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Fix refactoring so TestCellAlias works

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Working Reshard Create

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

More refactoring of the vreplication commands

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Use handler based registration of vrep commands

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Add plugin based vrep commands: better improved

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Add remaining Reshard commands

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Implement remaining Reshard commands

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Refactor movetables per new design

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Refactor workflows

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Refactor vreplication/common

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps committed Sep 7, 2023
1 parent f71583b commit e394f6e
Show file tree
Hide file tree
Showing 43 changed files with 5,479 additions and 2,662 deletions.
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

0 comments on commit e394f6e

Please sign in to comment.