Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction to the use of cassandra-stress pressure Test

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report