You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/08/20 02:32:23 UTC

[GitHub] [dubbo-go] wangxw666 opened a new issue #1404: elegant online:export to delay

wangxw666 opened a new issue #1404:
URL: https://github.com/apache/dubbo-go/issues/1404


   应用优雅上线的正常流程如下:
   
   ![image](https://user-images.githubusercontent.com/20626345/130169945-e016173a-85e4-4a2b-90cb-062b5d24546c.png)
   
   1. dubbo-go 需要提供:
       - 延迟注册/暴露功能
       - 用户自定义注册时机(更进一步的 ,dubbo有Qos)
   2. 需要提供k8s的容器探针接口
        - livenessProbe:指示容器是否正在运行。如果存活态探测失败,则 kubelet 会杀死容器, 并且容器将根据其重启策略决定未来。如果容器不提供存活探针, 则默认状态为 Success。
         - readinessProbe:指示容器是否准备好为请求提供服务。如果就绪态探测失败, 端点控制器将从与 Pod 匹配的所有服务的端点列表中删除该 Pod 的 IP 地址。 初始延迟之前的就绪态的状态值默认为 Failure。 如果容器不提供就绪态探针,则默认状态为 Success。
        -  startupProbe: 指示容器中的应用是否已经启动。如果提供了启动探针,则所有其他探针都会被 禁用,直到此探针成功为止。如果启动探测失败,kubelet 将杀死容器,而容器依其 重启策略进行重启。 如果容器没有提供启动探测,则默认状态为 Success。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] wangxw666 commented on issue #1404: elegant online:export to delay

Posted by GitBox <gi...@apache.org>.
wangxw666 commented on issue #1404:
URL: https://github.com/apache/dubbo-go/issues/1404#issuecomment-902385474


   应用同时作为服务提供者和消费者,如何在消费了上游服务之后,延迟注册,即环境预热成功之后再对外提供服务


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org