Skip to content
复现 nginx 502 错误 demo
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
webserver
LICENSE
README.md
docker-compose.stable.yml
docker-compose.yml
nginx.conf
nginx.stable.conf
nginx_test.jmx

README.md

nginx_502_debug

本地复现 nginx 502 错误 demo,排查解决 nginx 问题。

详细分析过程参考博客: 详解压测中出现的 nginx 502 no live upstreams 错误

运行

  1. 会出 502 错误版本
$ docker-compose up

用 jmeter 打开 nginx_test.jmx 进行测试,一段时间后出现错误:

jmete错误

  1. 稳定无 502 错误版本
$ docker-compose -f docker-compose.stable.yml up

长时间运行无错误:

jmeter稳定无错误

You can’t perform that action at this time.