Skip to content

Commit

Permalink
deps: update ycsb dependencies (#1142)
Browse files Browse the repository at this point in the history
* deps: update ycsb dependencies

* test: try with a longer run

* test: increase num operations

* test: skip batch_size 200
  • Loading branch information
olavloite authored Oct 27, 2023
1 parent 33d7e38 commit 7bb4af0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions benchmarks/ycsb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ ADD https://github.com/brianfrankcooper/YCSB/releases/download/0.17.0/ycsb-0.17.
RUN tar xfvz ycsb-0.17.0.tar.gz
RUN mv ycsb-0.17.0 ycsb

ADD https://repo1.maven.org/maven2/org/postgresql/postgresql/42.5.0/postgresql-42.5.0.jar /ycsb/jdbc-binding/lib/postgresql-42.5.0.jar
ADD https://repo1.maven.org/maven2/com/google/cloud/google-cloud-spanner-jdbc/2.9.14/google-cloud-spanner-jdbc-2.9.14-single-jar-with-dependencies.jar /ycsb/jdbc-binding/lib/google-cloud-spanner-jdbc-2.9.14-single-jar-with-dependencies.jar
ADD https://repo1.maven.org/maven2/com/kohlschutter/junixsocket/junixsocket-common/2.6.0/junixsocket-common-2.6.0.jar /ycsb/jdbc-binding/lib/junixsocket-common-2.6.0.jar
ADD https://repo1.maven.org/maven2/com/kohlschutter/junixsocket/junixsocket-native-common/2.6.0/junixsocket-native-common-2.6.0.jar /ycsb/jdbc-binding/lib/junixsocket-native-common-2.6.0.jar
ADD https://repo1.maven.org/maven2/org/postgresql/postgresql/42.6.0/postgresql-42.6.0.jar /ycsb/jdbc-binding/lib/postgresql-42.6.0.jar
ADD https://repo1.maven.org/maven2/com/google/cloud/google-cloud-spanner-jdbc/2.14.2/google-cloud-spanner-jdbc-2.14.2-single-jar-with-dependencies.jar /ycsb/jdbc-binding/lib/google-cloud-spanner-jdbc-2.14.2-single-jar-with-dependencies.jar
ADD https://repo1.maven.org/maven2/com/kohlschutter/junixsocket/junixsocket-common/2.8.1/junixsocket-common-2.8.1.jar /ycsb/jdbc-binding/lib/junixsocket-common-2.8.1.jar
ADD https://repo1.maven.org/maven2/com/kohlschutter/junixsocket/junixsocket-native-common/2.8.1/junixsocket-native-common-2.8.1.jar /ycsb/jdbc-binding/lib/junixsocket-native-common-2.8.1.jar

# Add startup script.
ADD benchmarks/ycsb/run.sh /run.sh
Expand Down
8 changes: 4 additions & 4 deletions benchmarks/ycsb/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ psql -h localhost -c "set spanner.autocommit_dml_mode='partitioned_non_atomic';
# Load workloada
./bin/ycsb load jdbc -P workloads/workloada \
-threads 20 \
-p recordcount=100000 \
-p recordcount=1000000 \
-p db.batchsize=200 \
-p jdbc.batchupdateapi=true \
-P tcp.properties \
Expand All @@ -104,8 +104,8 @@ do
fi
for THREADS in 1 5 20 50 200
do
OPERATION_COUNT=`expr $THREADS \* 100`
for BATCH_SIZE in 1 10 50 200
OPERATION_COUNT=`expr $THREADS \* 1000`
for BATCH_SIZE in 1 10 50
do
if [ $BATCH_SIZE == 1 ]
then
Expand All @@ -117,7 +117,7 @@ do
-threads $THREADS \
-p hdrhistogram.percentiles=50,95,99 \
-p operationcount=$OPERATION_COUNT \
-p recordcount=100000 \
-p recordcount=1000000 \
-p db.batchsize=$BATCH_SIZE \
-p jdbc.batchupdateapi=$BATCH_API \
-P $CONN \
Expand Down

0 comments on commit 7bb4af0

Please sign in to comment.