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

Use gor to replicate real traffic pressure test ES cluster

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

In a production environment, we usually use esrally to benchmark es. But after all, it may be different from the actual production request scenario.

Therefore, it is necessary to consider using real traffic to stress test the ES cluster.

Commonly used traffic replication tools such as tcpcopy, here we introduce a more easy-to-use tool gor.

Github address: https://github.com/buger/goreplay

TIPS:

The command I used for the actual test on 192.168.2.4 of the test environment (magnify 1 times the traffic):

# 192.168.2.4 is the old es cluster node # 192.168.2.188 is the new es cluster node wget https://github.com/buger/goreplay/releases/download/v1.0.0/gor_1.0.0_x64.tar.gztar xf gor_1.0.0_x64.tar.gz-C. /. / gor-- input-raw: 9200-- output-http "http://192.168.2.188:9200|200%"

The following figure shows the output of gor to stdout:

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

Servers

Wechat

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

12
Report