Kubernetes 的 http liveness 探测在 pod 负载过重时失败

Kubernetes's http liveness probe failed when pod under heavy load

正如标题所说,Kubernetes 的 liveness 探测在 pod 负载很重(500+ 并发,100000 请求)时总是失败,我给了 pod 更多 cpu & 内存资源,但它没有工作。

有什么方法可以处理这种情况吗?

谢谢!

根据@Williams Mao 问题已通过增加 readinessProbe.timeoutSeconds

如果应用程序负载很大,默认的 timeoutSeconds: 1 可能不够用。 好读:configure-liveness-readiness-probes

尝试通过 "kong health" 命令更改探针。

readinessProbe:                                                                                                                                                                                            
   exec:                                                                                                                                                                                                    
     command:                                                                                                                                                                                               
       - kong                                                                                                                                                                                               
       - health