Created
January 24, 2018 03:43
-
-
Save sougou/dd18c4a130efb9ade0bdcb6b85d421e6 to your computer and use it in GitHub Desktop.
Automation for bringing up local cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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