Skip to content

Instantly share code, notes, and snippets.

Created January 22, 2019 17:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
IoT cassandra-stress yaml
keyspace: mctest
keyspace_definition: |
CREATE KEYSPACE mctest WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
table: iotexample
table_definition: |
CREATE TABLE iotexample (
sensor uuid,
temperature int,
humidity int,
pressure float,
weathersource text,
timestamp timestamp,
PRIMARY KEY (sensor, timestamp))
WITH compression = {}
- name: sensor
population: uniform(1..20M)
- name: timestamp
cluster: fixed(4000)
- name: temperature
size: fixed(4)
population: gaussian(-100..100,20)
- name: humidity
size: fixed(4)
population: gaussian(0..100,50)
- name: pressure
size: fixed(4)
population: gaussian(0..1,0.5)
- name: weathersource
size: fixed(30)
partitions: fixed(1)
batchtype: UNLOGGED
select: fixed(2000)/2000
cql: select * from iotexample
fields: samerow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment