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

Redis stress test instructions

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

Share

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

Redis stress test instructions

Redis-benchmark is a stress testing tool that comes with redis:

How to use it:

You can use redis-benchmark-help to display how to use:

1. Redis-benchmark-t set-c 100-n 1000000-r 1000000-d 256

Serial number option description default value 1 Meih specify server hostname 127.0.0.12murp specify server port 63793murs specify server socket

4Musc specifies the number of concurrent connections 505-n specifies the number of requests 100006-d specifies the data size of the SET/GET value in bytes 27-k1=keep alive 0=reconnect18-rSET/GET/INCR uses random key, SADD uses random values

9Murp requests 110Murq to forcibly exit redis through pipeline transmission numreq. Show only query/sec values

11-csv output in CSV format

12murl generates a loop that permanently executes the test

13murt only runs a comma-separated list of test commands.

14-IIdle mode. Open only N idle connections and wait.

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

Database

Wechat

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

12
Report