Skip to content

Instantly share code, notes, and snippets.

@rustyrazorblade
Created May 29, 2019 13:45
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 rustyrazorblade/33c02be9df8f1fcae69d372b00b84daa to your computer and use it in GitHub Desktop.
Save rustyrazorblade/33c02be9df8f1fcae69d372b00b84daa to your computer and use it in GitHub Desktop.
#!/bin/bash
tlp-cluster init cassandra CASSANDRA-15066 messaging-improvements -s 1 -c 9 --instance r3.xlarge --az a,b,c
tlp-cluster up --yes
tlp-cluster build -n may28 ~/dev/cassandra
tlp-cluster use may28 -c dynamic_snitch:false -c concurrent_reads:128 -c concurrent_writes:128 -c num_tokens:32 -c cross_node_timeout:true -c compaction_throughput_mb_per_sec:64
cat << EOF >> provisioning/cassandra/conf/jvm-server.options
-Xmx16G
-Xms16G
-Xmn8G
EOF
sed -i '' 's/-XX:SurvivorRatio=8/-XX:SurvivorRatio=6/g' provisioning/cassandra/conf/jvm8-server.options
sed -i '' 's/-XX:MaxTenuringThreshold=1/-XX:MaxTenuringThreshold=2/g' provisioning/cassandra/conf/jvm8-server.options
tlp-cluster install
tlp-cluster start
# on the stress node
tlp-stress run BasicTimeSeries --host 172.31.15.61 --ttl 300 -p 10M --compaction "{'class':'TimeWindowCompactionStrategy', 'compaction_window_unit':'MINUTES', 'compaction_window_size': '1'}" -d 7d -t 8 -c 50 --cql "ALTER TABLE tlp_stress.sensor_data with gc_grace_seconds = 0" --drop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment