4
chlp benchmark-start || true
6
# /etc/cassandra/cassandra.yaml - listen_address: 10.0.3.124
10
ARG=`action-get operations`
11
if [ -n "$ARG" ]; then
12
ARGS+=" -o ${ARG:-INSERT}"
16
ARG=`action-get num-different-keys`
17
if [[ -n "$ARG" && "$ARG" -gt "0" ]]; then
21
ARG=`action-get truststore`
22
if [ -n "$ARG" ]; then
26
ARG=`action-get cardinality`
27
if [ -n "$ARG" ]; then
31
ARG=`action-get enable-cql`
32
if [ -n "$ARG" ]; then
36
ARG=`action-get enable-cql3`
37
if [ -n "$ARG" ]; then
41
ARG=`action-get transport-factory`
42
if [ -n "$ARG" ]; then
46
ARG=`action-get skip-keys`
47
if [ -n "$ARG" ]; then
51
ARG=`action-get strategy-properties`
52
if [ -n "$ARG" ]; then
56
ARG=`action-get ssl-protocol`
57
if [ -n "$ARG" ]; then
61
ARG=`action-get compression`
62
if [ -n "$ARG" ]; then
66
ARG=`action-get ciphers`
67
if [ -n "$ARG" ]; then
68
ARGS+=" -ciphers $ARG"
71
ARG=`action-get throttle`
72
if [ -n "$ARG" ] && [ "$ARG" -gt "0" ]; then
76
ARG=`action-get keep-trying`
77
if [ -n "$ARG" ]; then
81
ARG=`action-get comparator`
82
if [ -n "$ARG" ]; then
86
ARG=`action-get replication-on-write`
87
if [ -n "$ARG" ]; then
91
ARG=`action-get average-size`
92
if [ -n "$ARG" ]; then
96
ARG=`action-get query-names`
97
if [ -n "$ARG" ]; then
101
ARG=`action-get use-prepared-statements`
102
if [ -n "$ARG" ]; then
106
ARG=`action-get column-size`
107
if [ -n "$ARG" ]; then
111
ARG=`action-get replication-strategy`
112
if [ -n "$ARG" ]; then
116
ARG=`action-get store-type`
117
if [ -n "$ARG" ]; then
121
ARG=`action-get compaction-strategy`
122
if [ -n "$ARG" ]; then
126
ARG=`action-get ssl-alg`
127
if [ -n "$ARG" ]; then
131
ARG=`action-get keys-per-call`
132
if [ -n "$ARG" ]; then
136
ARG=`action-get consistency-level`
137
if [ -n "$ARG" ]; then
141
ARG=`action-get native-protocol`
142
if [ -z "$ARG" ] && [ "$ARG" eq "True" ]; then
143
ARGS+=" --enable-native-protocol"
146
ARG=`action-get columns`
147
if [ -n "$ARG" ]; then
151
ARG=`action-get num-keys`
152
if [ -n "$ARG" ]; then
156
ARG=`action-get replication-factor`
157
if [ -n "$ARG" ]; then
161
ARG=`action-get keep-going`
162
if [ -n "$ARG" ]; then
166
ARG=`action-get truststore-password`
167
if [ -n "$ARG" ]; then
171
ARG=`action-get supercolumns`
172
if [ -n "$ARG" ]; then
176
ARG=`action-get threads`
177
if [ -n "$ARG" ]; then
181
ARG=`action-get stdev`
182
if [ -n "$ARG" ]; then
186
ARG=`action-get random`
187
if [ -n "$ARG" ]; then
191
ARG=`action-get family-type`
192
if [ -n "$ARG" ]; then
196
ARG=`action-get create-index`
197
if [ -n "$ARG" ]; then
201
NODES=`grep listen_address /etc/cassandra/cassandra.yaml | awk '{print $2}'| head -n 1`
204
mkdir -p /opt/cassandra-stress/results/$run
206
cassandra-stress -f /opt/cassandra-stress/results/$run/stress.log -d $NODES $ARGS
209
`cat /opt/cassandra-stress/results/$run/stress.log | python $CHARM_DIR/actions/stress2json.py`
211
chlp benchmark-finish || true