Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ebdse -v run type=cql yaml=baselines/key-value tags=phase:schema host=dsehost
- blocks:
- - name: schema
- tags:
- phase: schema
- params:
- prepared: false
- statements:
- - |
- create keyspace if not exists <<keyspace:baselines>>
- WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '<<rf:1>>'}
- AND durable_writes = true;
- - |
- create table if not exists <<keyspace:baselines>>.<<table:widerows>> (
- part text,
- clust timestamp,
- data text,
- PRIMARY KEY (part,clust)
- );
- - name: rampup
- tags:
- phase: rampup
- params:
- cl: <<write_cl:LOCAL_ONE>>
- bindings:
- part: Div(<<partsize:1000000>>); ToString() -> String
- clust: StartingEpochMillis('2017-01-01 23:59:59'); AddHashRange(0L,31536000000L); StringDateWrapper("YYYY-MM-dd HH:mm:ss.SSS")
- data: HashedFileExtractToString('data/lorem_ipsum_full.txt',50,150)
- statements:
- - |
- insert into <<keyspace:baselines>>.<<table:widerows>>
- (part,clust,data)
- values (?part,?clust,?data)
- - name: main-read
- tags:
- phase: main
- type: read
- params:
- ratio: 5
- cl: <<read_cl:LOCAL_ONE>>
- statements:
- - |
- select * from <<keyspace:baselines>>.<<table:widerows>> where part=?part limit ?limit;
- bindings:
- limit: Uniform(1,10) -> int
- part: Uniform(0,<<partcount:100>>)->int; ToString() -> String
- clust: StartingEpochMillis('2017-01-01 23:59:59'); AddHashRange(0L,31536000000L); StringDateWrapper("YYYY-MM-dd HH:mm:ss.SSS")
Add Comment
Please, Sign In to add comment