0x101011 commented on issue #9796: URL: https://github.com/apache/apisix/issues/9796#issuecomment-1625011227
好的,兄弟。 我才理解你只是为了尽量消除应用日志中的502服务不可用的记录是吧。 你有装APISIX Dashboard吗?,用那个配置比较方便。 你看看这个插件,开启这个插件。API的降级断路器。如果你只想修改返回码。可以通过这个自定义返回码和返回信息,例如把502 -> 599 : 服务正在部署中不可用。 https://apisix.apache.org/zh/docs/apisix/plugins/api-breaker/ 另外上游Upstream的配置,健康检查开启被动检查,也需要开启主动检查,使用TCP。 <img width="1757" alt="截屏2023-07-07 下午4 19 35" src="https://github.com/apache/apisix/assets/29942463/c907ed63-d445-4a39-8f3e-ed07985db1f0"> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
