mirror of https://github.com/apache/cassandra
63 lines
2.1 KiB
YAML
63 lines
2.1 KiB
YAML
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
spacenam: example # idenitifier for this spec if running with multiple yaml files
|
|
keyspace: example
|
|
|
|
# Would almost always be network topology unless running something locally
|
|
keyspace_definition: |
|
|
CREATE KEYSPACE example WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 3};
|
|
|
|
table: staff_activities
|
|
|
|
# The table under test. Start with a partition per staff member
|
|
# Is this a good idea?
|
|
table_definition: |
|
|
CREATE TABLE staff_activities (
|
|
name text,
|
|
when timeuuid,
|
|
what text,
|
|
PRIMARY KEY(name, when)
|
|
)
|
|
|
|
columnspec:
|
|
- name: name
|
|
size: uniform(5..10) # The names of the staff members are between 5-10 characters
|
|
population: uniform(1..10) # 10 possible staff members to pick from
|
|
- name: when
|
|
cluster: uniform(20..500) # Staff members do between 20 and 500 events
|
|
- name: what
|
|
size: normal(10..100,50)
|
|
|
|
insert:
|
|
# we only update a single partition in any given insert
|
|
partitions: fixed(1)
|
|
# we want to insert a single row per partition and we have between 20 and 500
|
|
# rows per partition
|
|
select: fixed(1)/500
|
|
batchtype: UNLOGGED # Single partition unlogged batches are essentially noops
|
|
|
|
queries:
|
|
events:
|
|
cql: select * from staff_activities where name = ?
|
|
fields: samerow
|
|
latest_event:
|
|
cql: select * from staff_activities where name = ? LIMIT 1
|
|
fields: samerow
|
|
|