apache / apache/brpc

使用brpc提供的rpc_press进行性能测试,求问极限QPS

Open
#2,533 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

**Describe the bug (描述bug)**

我们使用了brpc作为系统中rpc组件,近期做性能优化,使用rpc_press测试brpc框架性能,目前我们测得的极限QPS是**210W**,不知道有没有官方的数据,作为参考。

**To Reproduce (复现方法)**
1.测试环境:
* CPU: 80 * Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz
* 网络延迟:0.018ms
2. 测试命令:
```
./rpc_press -proto=./echo.proto -method=example.EchoService.Echo -server=xxx.xxx.xxx.xxx:8000 -input='{"message":"hello"}' -timeout_ms=3000 --bthread_concurrency=80 -qps=0 --thread_num=2000 -channel_nums=10
```
channel_nums是我们对应的brpc中的channel group值,即tcp链接数。

**Expected behavior (期望行为)**
* QPS:
![image](https://github.com/apache/brpc/assets/17374965/be2f3407-ed45-464c-bb2f-1f6f402675df)
* Client CPU:
![image](https://github.com/apache/brpc/assets/17374965/217717c6-0f24-43d3-9a72-82a6fd628c67)
* 网络:
![image](https://github.com/apache/brpc/assets/17374965/99f64f36-c8fc-46b9-8c22-e5848b9f8c77)
* Bthread
* 设置值为80,稳定时在77左右
* Server CPU:
![image](https://github.com/apache/brpc/assets/17374965/f84d5a85-eaea-40ea-a8b4-7f1a99a7b75e)

**Versions (各种版本)**
OS: centOS 7
Compiler:
brpc: 0.96
protobuf:

**Additional context/screenshots (更多上下文/截图)**

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the rpc_press command, the reported brpc 0.96 version, and the stated CentOS 7 hardware and network conditions. Reproduce or compare the benchmark with the same settings, then document whether an official reference QPS exists and which conditions define a valid comparison.

Written by the indexing model from the issue text.

Assessment

Tech stack
centos, cpp
Domain
backend-api-design, networking, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
22/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.