The benchmarking workloads we have run in previous scenarios were all pre-packaged. In this scenario, we'll build our own workload.
Before we start, let's make sure Cassandra is running.
It's usually easiest to modify an existing workload. We can list the pre-packaged workloads with this command.
Then we can extract a workload like this.
./nb --copy cql-iot
Briefly, inspect the extracted file.
Please click to proceed:
Like any unfamiliar yaml file, these can be a bit overwhelming at first glance, but we'll walk you through it. By the end of this scenario, you'll be comfortable with the basics!
You can execute this workload with the following.
This may run for a while.
Feel free to stop the benchmark using
You may have noticed that running the benchmark can be a bit uneventful. Let's run the benchmark again and have NoSQLBench print out progress every second so we know what's going on.
./nb ./cql-iot --progress console:1s
Once again, feel free to stop the benchmark whenever you feel like it
Since this is our first introduction to workload configuration, we'll create some stripped-down files to emphasize the important parts. We'll use these stripped-down files instead of the one we extracted, but when we are done, you should be able to understand the file we extracted.