我有一个微服务系统,由几个微服务组成,我正在使用 Artillery 运行压力测试。
这是测试文件:
config:
target: "https://my-domain.com"
phases:
- duration: 60
name: create 2 user every 1 second
arrivalCount: 120
这是部分报告:
code 200 on /employees-endpoint1: 120 XXX
code 200 on /clients: 239
code 200 on /clients-endpoint1: 120 YYY
code 200 on /clients-endpoint2: 120
code 200 on /employees-endpoint2: 120
code 502 on /employees-endpoint1: 1 XXX
code 400 on /clients-endpoint1: 4 YYY
所以端点/employees-endpoint1出现了两次,一次是 status 200,一次是 status 502。
端点/clients-endpoint1得到了一次200和之后400。
为什么会这样?两种状态?