liveBook · Manning

YAML

As explained in ScyllaDB in Action

YAML is a human-readable data serialization standard commonly used for configuration files.

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

How ScyllaDB in Action covers it

How deep it goes
Explains configuration structure and tunes size, population, and cluster for representative generated data.
Examples
Uses stress.yaml for article_summaries_by_date, representative column settings, a read query, and Docker deployment.
What it assumes
Assumes familiarity with the target schema, keyspace, table, and CQL while explaining YAML configuration choices directly.
What you can do after
Operate/configure cassandra-stress with a YAML file containing representative data-generation settings and CQL queries.
How it connects
Connects YAML with cassandra-stress, ScyllaDB, CQL queries, keyspaces, tables, and partition-key data generation.

Also explained in

Compare how 16 books explain YAML →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ScyllaDB in Action. The section links point to the parts of the book it draws on.