Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Introduction to the use of cassandra-stress pressure Test

Shulou Source: shulou.com Published: 2022-06-03 04:53:50 09月30日 Update

Cassandra comes with the cassandra-stress stress testing tool from an early version, and its usage adds commands and options after cassandra-stress. The commonly used commands are generally only used: write, read, mixed, user. Simple write and read only test reading and writing, while mixed tests reading and writing at the same time. User is added after 2.1. by customizing the configuration file, you can specify insert and query query statements in the configuration file.

The command command does not start with -, and the option [options] has two ways:-option name option value or option name = option value.

The common option is counter_read: multiple concurrent reads, which must first be populated with the cluster through the counter_write test. Counter_write: multiple concurrent writes. Legacy: support for traditional models. Mixed: mixed mode and configurable read-write ratio and distribution. The cluster must first write test data padding. Read: multiple concurrent reads. The cluster must first be populated with a write test. Write: multiple concurrent writes to the cluster. User: staggered users provide queries with configurable ratios and distributions. Version: print the cassandra-stress version. Print: print definition output suboption-COL

Column details, such as size and count distribution, data generator

Usage:-col names =? [slice] [super =?] [comparator =?] [timestamp =?] [size = DIST (? )] either-col [n = DIST (? )] [slice] [super =?] [comparator =?] [timestamp =?] [size = DIST (? )]-rate

Speed

Use the following option to set the rate:-rate threads=N [throttle=N] [fixed=N] configuration item: number of clients running concurrently with threads=N. All throttle=N clients have reached the maximum rate of operations per second, and the default value is 0. Fixed=N expects a fixed rate of operation per second for all customers. The default value is 0. Or-rate [threads > = N] [threads = N: run at least so many clients at a time. The default value is 4. Threads

Tags: Test data customer configuration conformance conformance ten thousand level task multiple client scale process run pressure name command case result node Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Shulou Information MariaDB Apple Linux