Created
August 3, 2015 18:06
-
-
Save tobert/439f849d05d233d1382b to your computer and use it in GitHub Desktop.
ycsb-like config for cassandra-stress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cassandra-stress user profile=ycsb.yaml | |
# Just a first pass. Needs some tweaking. | |
keyspace: ycsb | |
keyspace_definition: | | |
CREATE KEYSPACE ycsb WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 }; | |
table: small | |
table_definition: | | |
create table ycsb.usertable ( | |
y_id varchar primary key, | |
field0 blob, | |
field1 blob, | |
field2 blob, | |
field3 blob, | |
field4 blob, | |
field5 blob, | |
field6 blob, | |
field7 blob, | |
field8 blob, | |
field9 blob | |
); | |
columnspec: | |
- name: y_id | |
size: fixed(13) | |
population: uniform(1433211745000..1435803745000) | |
- name: field0 | |
size: exp(32..128) | |
- name: field1 | |
size: exp(32..128) | |
- name: field2 | |
size: exp(32..128) | |
- name: field3 | |
size: exp(32..128) | |
- name: field4 | |
size: exp(32..128) | |
- name: field5 | |
size: exp(32..128) | |
- name: field6 | |
size: exp(32..128) | |
- name: field7 | |
size: exp(32..128) | |
- name: field8 | |
size: exp(32..128) | |
- name: field9 | |
size: exp(32..128) | |
insert: | |
partitions: fixed(1) | |
queries: | |
selectall: | |
cql: select y_id,field0,field1,field2,field3,field4,field5,field6,field7,field8,field9 from ycsb.usertable where y_id=? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment