Database Reference
In-Depth Information
Read queries
A map (JSON) of queries with the key being its name, and the value is the query itself. The
query may have parameters to be filled later by the stress tool.
An example YAML looks like the following (taken from https://gist.github.com/tjake/
fb166a659e8fe4c8d4a3 ; you can find the gist on my GitHub account ht-
tps://gist.github.com/naishe/f7c7090173f4ea6afc28 ) :
#1: Database Schema
# Keyspace Name
keyspace: stresscql
keyspace_definition: |
CREATE KEYSPACE stresscql WITH replication = {'class':
'SimpleStrategy', 'replication_factor': 1};
# Table name
table: blogposts
# The CQL for creating a table you wish to stress (optional
if it already exists)
table_definition: |
CREATE TABLE blogposts (
domain text,
published_date timeuuid,
url text,
author text,
title text,
body text,
PRIMARY KEY(domain, published_date)
) WITH CLUSTERING ORDER BY (published_date DESC)
AND compaction = { 'class':'LeveledCompactionStrategy' }
AND comment='A table to hold blog posts';
#2: Data Distribution
columnspec:
- name: domain size: gaussian(5..100) population:
Search WWH ::




Custom Search