Snow-kal opened a new pull request, #1107:
URL: https://github.com/apache/dubbo-go-samples/pull/1107

   **更改内容:**
   metrics/probe/go-server/cmd/main.go
   新增 shutdownDrainSeconds = 6
   收到 SIGINT/SIGTERM 后,先把 probe 状态标记为 NotReady/NotStarted
   然后等待 6 秒,让 Kubernetes 的 readinessProbe 有机会探测到 NotReady
   
   metrics/probe/deploy/server-deployment.yml
   新增 terminationGracePeriodSeconds: 15
   新增容器资源配置:requests: cpu: 100m, memory: 128Mi
   limits: cpu: 500m, memory: 512Mi
   
   issue: https://github.com/apache/dubbo-go/issues/3204  metrics
   
   **问题**
   在按照  readme 多次测试的时候 docker k8s 可能会出现 还没等重新探测到 NotReady 就退出的情况
   
   现在已经更改,结果与 readme 一样
   <img width="1716" height="843" alt="image" 
src="https://github.com/user-attachments/assets/7a05a42e-9137-4e1f-bef2-1a4c0e51a2db";
 />
   
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to