Created
January 22, 2019 17:39
-
-
Save dyasny/3ced6060ee82625b5df9781ec7cbc473 to your computer and use it in GitHub Desktop.
IoT cassandra-stress yaml
This file contains hidden or 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
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