-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.sh
executable file
·39 lines (35 loc) · 1.31 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
if [ "$TYPE" = "run" ]; then
./wait-for-it/wait-for-it.sh --host=${PROTEUSHOST} --port=${PROTEUSPORT} --timeout=0
fi
./wait-for-it/wait-for-it.sh --host=${S3HOST} --port=${S3PORT} --timeout=0
cd ${YCSB_DIR}
./bin/ycsb ${TYPE} s3 \
-P ./workloads/${WORKLOAD} \
-p table=${TABLE} \
-p useBarrier=${USEBARRIER} \
-p sleep=${SLEEP} \
-p measure.freshness=${MEASUREFRESHNESS} \
-threads ${THREADS} \
-p queryresultcount=${QUERYRESULTCOUNT} \
-p maxexecutiontime=${EXECUTIONTIME} \
-p warmuptime=${WARMUPTIME} \
-p attributedataset=/yellow_tripdata_2019-06.csv \
-p proteus.host=${PROTEUSHOST} \
-p proteus.port=${PROTEUSPORT} \
-p s3.endPoint=http://${S3HOST}:${S3PORT} \
-p s3.accessKeyId=${S3ACCESSKEYID} \
-p s3.secretKey=${S3SECRETKEY} \
-p recordcount=${RECORDCOUNT} \
-p insertstart=${INSERTSTART} \
-p insertcount=${INSERTCOUNT} \
-p queryproportion=${QUERYPROPORTION} \
-p updateproportion=${UPDATEPROPORTION} \
-p cachedqueryproportion=${CACHEDQUERYPROPORTION} \
-p preload=${PRELOAD} \
-p client=${CLIENTID} \
-s > ${MEASUREMENT_RESULTS_DIR}/${OUTPUT_FILE_NAME}.txt
if [ "$TYPE" = "run" ]; then
cp QUERY.hdr ${MEASUREMENT_RESULTS_DIR}/QUERY_${OUTPUT_FILE_NAME}.hdr
cp FRESHNESS_LATENCY.hdr ${MEASUREMENT_RESULTS_DIR}/FRESHNESS_LATENCY_${OUTPUT_FILE_NAME}.hdr
fi