October 2018
Beginner to intermediate
348 pages
10h
English
To start using the Cassandra-Stress tool, you must first construct a stress.yaml file. For this example, we will use the security_logs_by_location_id_desc table, which we created in Chapter 3, Effective CQL. First, let's create a new keyspace:
CREATE KEYSPACE IF NOT EXISTS packt_ch5 WITH replication = {'class': 'NetworkTopologyStrategy', 'ClockworkAngels': '1'} AND durable_writes = true;use packt_ch5;
Cassandra-Stress randomly generates column values for each row, so we want to ensure that its data doesn't become commingled with real data. To that end, let's recreate the security_logs_by_location_id_desc table with one small adjustment. We’ll append a string of _stress to the end of the table's name. This way, ...