Skip to content

Instantly share code, notes, and snippets.

@sougou
Created January 24, 2018 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sougou/dd18c4a130efb9ade0bdcb6b85d421e6 to your computer and use it in GitHub Desktop.
Save sougou/dd18c4a130efb9ade0bdcb6b85d421e6 to your computer and use it in GitHub Desktop.
Automation for bringing up local cluster
set -e
script_root=.
$script_root/zk-up.sh
$script_root/vtctld-up.sh
$script_root/vttablet-up.sh
sleep 10s
$script_root/lvtctl.sh InitShardMaster -force test_keyspace/0 test-100
$script_root/lvtctl.sh ApplySchema -sql "$(cat create_test_table.sql)" test_keyspace
$script_root/vtgate-up.sh
# insert some rows
$script_root/client.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment