11bindings :
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
77scenarios :
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
1317blocks :
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