Skip to content

Commit

Permalink
Stress Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sivakku committed Jan 10, 2017
1 parent bac5821 commit fdd1f0a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions schema/stress_schema_setup.cql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---- insert shard

insert into executions (shard_id, type, workflow_id, run_id, task_id, shard, range_id) VALUES (1, 0, '3fe89dad-8326-fac5-fd40-fe08cfa25dec', 228ce20b-af54-fe2f-ff17-be728a00f785, 23, { shard_id: 1, range_id: 1, transfer_ack_level: 0 }, 1) IF NOT EXISTS;
15 changes: 12 additions & 3 deletions scripts/install_stress_schema.sh → scripts/start_stress_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@ port=9042
# TODO: probably allow getting this from command line
workflow_keyspace="workflow"

DROP_UBER_MINIONS="$HOME/uber-minions"
DROP_CMD=$DROP/cmd/stress/
STRESS_LOG=stress_output.log

# 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
cqlsh --cqlversion=3.4.2 -f ./schema/drop_keyspace_stress_test.cql $host $port
cqlsh --cqlversion=3.4.2 -f ./schema/keyspace_prod.cql $host $port
cqlsh --cqlversion=3.4.2 -k $workflow_keyspace -f ./schema/workflow_test.cql $host $port
cqlsh --cqlversion=3.4.2 -k $workflow_keyspace -f ./schema/stress_schema_setup.cql $host $port
done

echo "Starting stress on"
cd $DROP_CMD
nohup ./stress -emitMetric=m3 -host="10.185.19.27,10.184.45.6,10.185.27.8,10.185.17.12,10.185.15.30" > $STRESS_LOG 2>&1 &

0 comments on commit fdd1f0a

Please sign in to comment.