Skip to content

Commit 40ebba8

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

File tree

6 files changed

+70
-74
lines changed

6 files changed

+70
-74
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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Changelog for the ZDM Proxy, new PRs should update the `unreleased` section.
44

55
When cutting a new release, update the `unreleased` heading to the tag being generated and date, like `## vX.Y.Z - YYYY-MM-DD` and create a new placeholder section for `unreleased` entries.
66

7-
## Unreleased
7+
## Released
88

99
## v2.1.0 - 2023-11-13
1010

@@ -21,4 +21,8 @@ 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+
## Unreleased
27+
28+
## v2.1.1 - YYYY-MM-DD

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: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,56 +23,51 @@ echo "Creating schema"
2323
cat /source/nb-tests/schema.cql | cqlsh zdm_tests_proxy
2424

2525
echo "Running NoSQLBench RAMPUP job"
26-
java -jar /nb.jar \
26+
java -jar /nb5.jar \
2727
--show-stacktraces \
2828
/source/nb-tests/cql-nb-activity.yaml \
2929
rampup \
30-
driver=cqld3 \
3130
hosts=zdm_tests_proxy \
3231
localdc=datacenter1 \
33-
errors=retry \
32+
errors=counter,retry \
3433
-v
3534

3635
echo "Running NoSQLBench WRITE job"
37-
java -jar /nb.jar \
36+
java -jar /nb5.jar \
3837
--show-stacktraces \
3938
/source/nb-tests/cql-nb-activity.yaml \
4039
write \
41-
driver=cqld3 \
4240
hosts=zdm_tests_proxy \
4341
localdc=datacenter1 \
44-
errors=retry \
42+
errors=counter,retry \
4543
-v
4644

4745
echo "Running NoSQLBench READ job"
48-
java -jar /nb.jar \
46+
java -jar /nb5.jar \
4947
--show-stacktraces \
5048
/source/nb-tests/cql-nb-activity.yaml \
5149
read \
52-
driver=cqld3 \
5350
hosts=zdm_tests_proxy \
5451
localdc=datacenter1 \
55-
errors=retry \
52+
errors=counter,retry \
5653
-v
5754

5855
echo "Running NoSQLBench VERIFY job on ORIGIN"
59-
java -jar /nb.jar \
56+
java -jar /nb5.jar \
6057
--show-stacktraces \
6158
--report-csv-to /source/verify-origin \
6259
/source/nb-tests/cql-nb-activity.yaml \
6360
verify \
64-
driver=cqld3 \
6561
hosts=zdm_tests_origin \
6662
localdc=datacenter1 \
6763
-v
6864

6965
echo "Running NoSQLBench VERIFY job on TARGET"
70-
java -jar /nb.jar \
66+
java -jar /nb5.jar \
7167
--show-stacktraces \
7268
--report-csv-to /source/verify-target \
7369
/source/nb-tests/cql-nb-activity.yaml \
7470
verify \
75-
driver=cqld3 \
7671
hosts=zdm_tests_target \
7772
localdc=datacenter1 \
7873
-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)