forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Merge branch 'master' of code.uber.internal:devexp/minions into stress Add Start/Stop to engine interface. Fix start/stop Add timer and schema script Cleanup of schema. Update drop key space. Reviewers: samar Subscribers: jenkins Differential Revision: https://code.uberinternal.com/D654615
- Loading branch information
Showing
16 changed files
with
335 additions
and
71 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP KEYSPACE workflow; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# this script is used to setup the "cherami" keyspace | ||
# and load all the tables in the .cql file within this keyspace, | ||
# if cassandra is running | ||
# | ||
# this script is only intended to be used in test environments | ||
# for updating prod schema, please refer to odp/cherami-tools and | ||
# https://code.uberinternal.com/w/cherami/runbooks/ | ||
|
||
# the default cqlsh listen port is 9042 | ||
port=9042 | ||
|
||
# the default keyspace is workflow | ||
# TODO: probably allow getting this from command line | ||
workflow_keyspace="workflow" | ||
|
||
# cmd/stress/stress -emitMetric=m3 -host="10.185.19.27,10.184.45.6,10.185.27.8,10.185.17.12,10.185.15.30" | ||
for host in 10.185.19.27 | ||
do | ||
echo Installing schema on cassandra cluster via $host | ||
./cassandra/bin/cqlsh -f ./schema/drop_keyspace_stress_test.cql $host $port | ||
./cassandra/bin/cqlsh -f ./schema/keyspace_prod.cql $host $port | ||
./cassandra/bin/cqlsh -k $workflow_keyspace -f ./schema/workflow_test.cql $host $port | ||
done |
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
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
Oops, something went wrong.