Skip to content

Commit 957d8a6

Browse files
committed
Update NoSQLBench to 5.21.1-preview & other minor updates
1 parent 452fa4b commit 957d8a6

File tree

6 files changed

+74
-76
lines changed

6 files changed

+74
-76
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "monthly"
9+
10+
- package-ecosystem: "docker"
11+
directory: "/"
12+
schedule:
13+
interval: "monthly"

CHANGELOG/CHANGELOG-2.1.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ When cutting a new release, update the `unreleased` heading to the tag being gen
2121
* [#48](https://github.com/datastax/zdm-proxy/issues/48) Fix scheduler shutdown race condition
2222
* [#69](https://github.com/datastax/zdm-proxy/issues/69) Client connection can be closed before proxy returns protocol error
2323
* [#76](https://github.com/datastax/zdm-proxy/issues/76) Log error when closing connection
24-
* [#74](https://github.com/datastax/zdm-proxy/issues/74) Handshakes with auth enabled can deadlock if multiple handshakes are happening concurrently
24+
* [#74](https://github.com/datastax/zdm-proxy/issues/74) Handshakes with auth enabled can deadlock if multiple handshakes are happening concurrently
25+
26+
---

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The setup we described above is only for testing in a local environment. It is *
107107
installation where the minimum number of proxy instances is 3.
108108

109109
For a comprehensive guide with the recommended production setup check the documentation available at
110-
[DataStax Migration](https://docs.datastax.com/en/astra-serverless/docs/migrate/introduction.html).
110+
[DataStax Migration](https://docs.datastax.com/en/data-migration/introduction.html).
111111

112112
There you'll find information about an Ansible-based tool that automates most of the process.
113113

@@ -117,5 +117,5 @@ For information on the packaged dependencies of the Zero Downtime Migration (ZDM
117117

118118
## Frequently Asked Questions
119119

120-
For frequently asked questions, please refer to our separate [FAQ](https://docs.datastax.com/en/astra-serverless/docs/migrate/faqs.html) page.
120+
For frequently asked questions, please refer to our separate [FAQ](https://docs.datastax.com/en/data-migration/faqs.html) page.
121121

compose/nosqlbench-entrypoint.sh

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/sh
2-
apk add --no-cache netcat-openbsd
3-
apk add py3-pip
2+
3+
apt -qq update -y
4+
apt -qq install netcat-openbsd python3-pip -y
5+
6+
echo "deb https://downloads.datastax.com/deb stable main" | tee -a /etc/apt/sources.list.d/datastax.sources.list
7+
curl -sL https://downloads.datastax.com/deb/doc/apt_key.gpg | apt-key add -
48
pip install cqlsh
59

610
function test_conn() {
@@ -23,56 +27,51 @@ echo "Creating schema"
2327
cat /source/nb-tests/schema.cql | cqlsh zdm_tests_proxy
2428

2529
echo "Running NoSQLBench RAMPUP job"
26-
java -jar /nb.jar \
30+
java -jar /nb5.jar \
2731
--show-stacktraces \
2832
/source/nb-tests/cql-nb-activity.yaml \
2933
rampup \
30-
driver=cqld3 \
3134
hosts=zdm_tests_proxy \
3235
localdc=datacenter1 \
33-
errors=retry \
36+
errors=counter,retry \
3437
-v
3538

3639
echo "Running NoSQLBench WRITE job"
37-
java -jar /nb.jar \
40+
java -jar /nb5.jar \
3841
--show-stacktraces \
3942
/source/nb-tests/cql-nb-activity.yaml \
4043
write \
41-
driver=cqld3 \
4244
hosts=zdm_tests_proxy \
4345
localdc=datacenter1 \
44-
errors=retry \
46+
errors=counter,retry \
4547
-v
4648

4749
echo "Running NoSQLBench READ job"
48-
java -jar /nb.jar \
50+
java -jar /nb5.jar \
4951
--show-stacktraces \
5052
/source/nb-tests/cql-nb-activity.yaml \
5153
read \
52-
driver=cqld3 \
5354
hosts=zdm_tests_proxy \
5455
localdc=datacenter1 \
55-
errors=retry \
56+
errors=counter,retry \
5657
-v
5758

5859
echo "Running NoSQLBench VERIFY job on ORIGIN"
59-
java -jar /nb.jar \
60+
java -jar /nb5.jar \
6061
--show-stacktraces \
6162
--report-csv-to /source/verify-origin \
6263
/source/nb-tests/cql-nb-activity.yaml \
6364
verify \
64-
driver=cqld3 \
6565
hosts=zdm_tests_origin \
6666
localdc=datacenter1 \
6767
-v
6868

6969
echo "Running NoSQLBench VERIFY job on TARGET"
70-
java -jar /nb.jar \
70+
java -jar /nb5.jar \
7171
--show-stacktraces \
7272
--report-csv-to /source/verify-target \
7373
/source/nb-tests/cql-nb-activity.yaml \
7474
verify \
75-
driver=cqld3 \
7675
hosts=zdm_tests_target \
7776
localdc=datacenter1 \
78-
-v
77+
-v

docker-compose-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ services:
4343
ipv4_address: 192.168.100.103
4444

4545
nosqlbench:
46-
image: nosqlbench/nosqlbench:4.15.101
46+
image: nosqlbench/nosqlbench:5.21.1-preview
4747
container_name: zdm_tests_nb
4848
tty: true
4949
volumes:
@@ -52,4 +52,4 @@ services:
5252
- /source/compose/nosqlbench-entrypoint.sh
5353
networks:
5454
proxy:
55-
ipv4_address: 192.168.100.104
55+
ipv4_address: 192.168.100.104

nb-tests/cql-nb-activity.yaml

Lines changed: 39 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,50 @@
11
bindings:
2-
seq_key: Mod(<<keycount:1000000000>>); ToInt();
3-
seq_value: Hash(); Mod(<<valuecount:1000000000>>); ToString() -> String
4-
rw_key: <<keydist:Uniform(0,1000000000)->int>>;
5-
rw_value: Hash(); <<valdist:Uniform(0,1000000000)->int>>; ToString() -> String
2+
seq_key: Mod(TEMPLATE(keycount,1000000000)); ToInt();
3+
seq_value: Hash(); Mod(TEMPLATE(valuecount,1000000000)); ToString() -> String
4+
rw_key: TEMPLATE(keydist,Uniform(0,1000000000)->int);
5+
rw_value: Hash(); TEMPLATE(valdist,Uniform(0,1000000000)->int); ToString() -> String
66

77
scenarios:
8-
rampup: run driver=cqld4 tags=phase:rampup cycles=20000
9-
write: run driver=cqld4 tags=phase:write cycles=20000
10-
read: run driver=cqld4 tags=phase:read cycles=20000
11-
verify: run driver=cqld4 tags=phase:verify errors=warn,unverified->count compare=all cycles=20000
8+
rampup: run driver=cqld4 tags=block:rampup cycles=20000
9+
write: run driver=cqld4 tags=block:write cycles=20000
10+
read: run driver=cqld4 tags=block:read cycles=20000
11+
verify: run driver=cqld4 tags=block:verify errors=warn,unverified->count compare=all cycles=20000
12+
13+
params:
14+
driver: cql
15+
prepared: true
1216

1317
blocks:
14-
- name: rampup
15-
tags:
16-
phase: rampup
18+
rampup:
1719
params:
18-
cl: <<write_cl:LOCAL_QUORUM>>
19-
prepared: true
20-
statements:
21-
- rampup-insert: |
22-
insert into <<keyspace:test>>.<<table:keyvalue>>
23-
(key, value)
24-
values ({seq_key},{seq_value});
25-
tags:
26-
name: rampup-insert
27-
- name: verify
28-
tags:
29-
phase: verify
30-
type: read
20+
cl: TEMPLATE(write_cl,LOCAL_QUORUM)
21+
ops:
22+
rampup_insert: |
23+
INSERT INTO TEMPLATE(keyspace,test).TEMPLATE(table,keyvalue)
24+
(key, value)
25+
VALUES ({seq_key},{seq_value});
26+
27+
verify:
3128
params:
32-
cl: <<read_cl:LOCAL_QUORUM>>
33-
prepared: true
34-
statements:
35-
- verify-select: |
36-
select * from <<keyspace:test>>.<<table:keyvalue>> where key={rw_key};
37-
verify-fields: key->rw_key, value->rw_value
38-
tags:
39-
name: verify
40-
- name: read
41-
tags:
42-
phase: read
43-
type: read
44-
prepared: true
29+
cl: TEMPLATE(read_cl,LOCAL_QUORUM)
30+
ops:
31+
verify_select: |
32+
SELECT * FROM TEMPLATE(keyspace,test).TEMPLATE(table,keyvalue) WHERE key={rw_key};
33+
verify_fields: key->rw_key, value->rw_value
34+
35+
read:
4536
params:
4637
ratio: 1
47-
cl: <<read_cl:LOCAL_QUORUM>>
48-
statements:
49-
- main-select: |
50-
select * from <<keyspace:test>>.<<table:keyvalue>> where key={rw_key};
51-
tags:
52-
name: main-select
53-
- name: write
54-
tags:
55-
phase: write
56-
type: write
57-
prepared: true
38+
cl: TEMPLATE(read_cl,LOCAL_QUORUM)
39+
ops:
40+
main_select: |
41+
select * from TEMPLATE(keyspace,test).TEMPLATE(table,keyvalue) where key={rw_key};
42+
43+
write:
5844
params:
5945
ratio: 1
60-
cl: <<write_cl:LOCAL_QUORUM>>
61-
statements:
62-
- main-insert: |
63-
insert into <<keyspace:test>>.<<table:keyvalue>>
64-
(key, value) values ({rw_key}, {rw_value});
65-
tags:
66-
name: main-insert
46+
cl: TEMPLATE(write_cl,LOCAL_QUORUM)
47+
ops:
48+
main-insert: |
49+
insert into TEMPLATE(keyspace,test).TEMPLATE(table,keyvalue)
50+
(key, value) values ({rw_key}, {rw_value});

0 commit comments

Comments
 (0)