Adding core support for RPC based load testing in jmeter

未关闭
#6,421 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
grpc, java

调研方向

首先检查 JMeter 现有的 HTTP sampler 以及提到的 JSR223 和 shell sampler workaround,以了解 RPC 测试如何适配该工具。完成的标准是就架构达成一致,并为 RPC 服务(包括 gRPC)的负载测试提供原生核心支持,而不是依赖第三方工具。

由索引模型根据 Issue 内容生成。

描述

enhancement to-triage
Use case

Addressing issues #6415 , #6404 , #6313 , it seems like jmeter does not provide core support for testing servers using RPC or any other libraries like gRPC Most of the microservices are migrating to RPC based communication protocols as it is lightweight and comparatively less costly for inter-server communication. This makes me bring down to these points where we might need load testing for servers based on rpc communication protocols:

  1. Currently there are only third party workarounds that allow load testing for rpc communication types, which is inefficient.
  2. There's a need for native rpc sampler, just like http sampler exists.

and actually many more, which we can mention if you choose to have it as an enhancement.

Possible solution

The possible solution will highly depend on the architecture and planning on the issue before implementing a code solution. So it is difficult to mention it right away here, but will surely do once I've an idea of the final planning and architecture for this.

Possible workarounds
  1. using JSR223 with Groovy or a Python script to capture responses or measure latency
  2. using grpcurl in shell samplers
  3. using third party tools like gatling where we can initiate tests separately and use jmeter to trigger them using OS process samplers
JMeter Version

5.6.3

Java Version

openjdk version "23.0.1" 2024-10-15

OS Version

Microsoft Windows [Version 10.0.26100.3037]

主要语言
Java
星标
9.6k
派生
2.3k
平均合并
1 天 13 小时
30 天内合并 PR
14

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/jmeter 的其他 Issue

查看 apache/jmeter 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。