Skip to content

Instantly share code, notes, and snippets.

@dyasny dyasny/iot.yaml
Created Jan 22, 2019

Embed
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 = {}
columnspec:
- 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)
insert:
partitions: fixed(1)
batchtype: UNLOGGED
select: fixed(2000)/2000
queries:
simple1:
cql: select * from iotexample
fields: samerow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.