labring / labring/laf

[bug] When using JMeter to send high concurrency requests to the LAF service, a 502 error is encountered.

Open
#1,969 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.6k
Forks
670
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [X] I had searched in the [issues](https://github.com/labring/laf/issues?q=is%3Aissue) and found no similar issues.

### Environment

Linux (self-host)

### What happened

When performing high concurrency testing on the LAF service with JMeter, there exists an HTTP request returning a substantial amount of data, roughly 2MB, which not only slows down responses to other requests but also triggers 502 Bad Gateway errors. However, when this specific request is excluded, both the slow response times and the 502 errors cease to occur. How should we optimize the LAF service to resolve this issue, or what would be the appropriate approach to handle this scenario?

使用jmeter高并发请求laf服务,有一个http请求返回的数据量很大,大概2M,这个请求会导致其他的请求的响应变慢且会有502的报错,如果排除这个请求,则没有响应慢的问题也没有502报错,该如何对laf进行调优。或者该怎么处理这个问题?

![image](https://github.com/labring/laf/assets/9607139/7ae56c1c-e5de-43af-b6fa-1f9a8e964d10)

### How to reproduce

1.录制http请求脚本;
2.使用jmeter压测laf服务;
laf服务配置:limit:4c8g;request:2c4g;5副本;
jmeter:20个并发

### Are you willing to submit PR?

- [X] Yes I am willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.