-
Notifications
You must be signed in to change notification settings - Fork 0
/
stress2.yaml
55 lines (50 loc) · 1.62 KB
/
stress2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
keyspace: stressexample
keyspace_definition: |
CREATE KEYSPACE stressexample WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
#
# Table name and create CQL
#
table: eventsrawtest
table_definition: |
CREATE TABLE eventsrawtest (
host text,
bucket_time text,
service text,
time timestamp,
metric double,
state text,
PRIMARY KEY ((host, bucket_time, service), time)
) WITH CLUSTERING ORDER BY (time DESC)
#
# Meta information for generating data
#
columnspec:
- name: host
size: fixed(32) #In chars, no. of chars of UUID
population: uniform(1..600) # We have about 600 hosts with equal events per host
- name: bucket_time
size: fixed(18)
population: uniform(1..288) # 288 potential buckets
- name: service
size: uniform(10..100)
population: uniform(1000..2000) # 1000 - 2000 metrics per host
- name: time
cluster: fixed(15)
- name: state
size: fixed(4)
#
# Specs for insert queries
#
insert:
partitions: fixed(1) # 1 partition per batch
batchtype: UNLOGGED # use unlogged batches
select: fixed(10)/10 # no chance of skipping a row when generating inserts
#
# Read queries to run against the schema
queries:
pull-for-rollup:
cql: select * from eventsrawtest where host = ? and service = ? and bucket_time = ?
fields: samerow # pick selection values from same row in partition
get-a-value:
cql: select * from eventsrawtest where host = ? and service = ? and bucket_time = ? and time = ?
fields: samerow # pick selection values from same row in partition