YAML serves as the configuration format for cassandra-stress load tests. A stress.yaml file identifies the keyspace and table, describes representative generated data, and defines queries to run. section 11.2.1
Tune generated values with three column properties:
- size controls how large a value is, such as an author name or title. section 11.2.1
- population limits how many possible values a column can have. section 11.2.1
- cluster limits the number of values generated for a partition key. section 11.2.1
keyspace: stress
table: article_summaries_by_date
columnspec:
- name: date_bucket
population: uniform(0..240)
- name: id
cluster: uniform(10..25)
- name: author_name
size: uniform(5..20)
- name: score
population: uniform(1..100)
- name: title
size: uniform(20..50)
queries:
read:
cql: SELECT * FROM article_summaries_by_date WHERE date_bucket = ?
fields: samerow
A complete stress.yaml configuration combines the stress keyspace and table with representative column settings and a read query. section 11.2.1
Using the configuration
After creating stress.yaml, copy it into the ScyllaDB container with: docker cp stress.yaml scylla-reviews:/stress.yaml. section 11.2.1















