Skip to content

rr 模式下,qps 不变,rpc 下游节点增多时,平均耗时和99线耗时明显上升 #1828

@Missmiaom

Description

@Missmiaom

实现了基于 length + body 的自定义协议,使用 rpc press 压测发现,下游只有一个节点时,时耗稳定并且耗时很小,如果增加下游节点(使用 rr 模式),耗时99线明显上升。

下游节点机器、性能、网络均大致相同,正常情况下处理时耗较短,并且耗时高的 ip 均匀分布。

以下是 1 个下游节点的测试情况:

2022/07/04-15:38:47 sent:3001 success:3002 error:0 total_error:0 total_sent:261105
2022/07/04-15:38:48 sent:3001 success:3001 error:0 total_error:0 total_sent:264106
2022/07/04-15:38:49 sent:3002 success:3001 error:0 total_error:0 total_sent:267108
2022/07/04-15:38:50 sent:3001 success:3001 error:0 total_error:0 total_sent:270109
[Latency]
avg 428 us
50% 408 us
70% 448 us
90% 589 us
95% 656 us
97% 693 us
99% 788 us
99.9% 3003 us
99.99% 3833 us
max 3860 us

以下是 26 个下游节点的测试情况:(平均值和 99 线上升明显)

2022/07/04-15:36:32 sent:3000 success:2998 error:3 total_error:3 total_sent:138053
2022/07/04-15:36:33 sent:3003 success:3001 error:0 total_error:3 total_sent:141056
2022/07/04-15:36:34 sent:3000 success:3001 error:0 total_error:3 total_sent:144056
2022/07/04-15:36:35 sent:3001 success:3002 error:0 total_error:3 total_sent:147057
2022/07/04-15:36:36 sent:3001 success:3001 error:0 total_error:3 total_sent:150058
[Latency]
avg 4793 us
50% 8525 us
70% 8744 us
90% 8847 us
95% 8894 us
97% 8999 us
99% 9361 us
99.9% 10528 us
99.99% 30792 us
max 48065 us

请问有哪些可能的原因呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions