You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "René Cordier (Jira)" <se...@james.apache.org> on 2020/03/09 10:50:00 UTC

[jira] [Commented] (JAMES-3108) James should shutdown gracefully

    [ https://issues.apache.org/jira/browse/JAMES-3108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17054847#comment-17054847 ] 

René Cordier commented on JAMES-3108:
-------------------------------------

https://github.com/linagora/james-project/pull/3189 contributed to give a graceful shutdown to James in this case

> James should shutdown gracefully
> --------------------------------
>
>                 Key: JAMES-3108
>                 URL: https://issues.apache.org/jira/browse/JAMES-3108
>             Project: James Server
>          Issue Type: New Feature
>            Reporter: Benoit Tellier
>            Priority: Major
>
> James should not shut down immediatly on SIGTERM, but it gracefully terminates connections.
> In a kubernetes context for instance:
> {code:java}
> It might take some time before a component such as kube-proxy or the Ingress controller is notified of the endpoint changes.
> Hence, traffic might still flow to the Pod despite it being marked as terminated.
> The app should stop accepting new requests on all remaining connections, and close these once the outgoing queue is drained.
> If you need a refresher on how endpoints are propagated in your cluster, read this article on how to handle client requests properly.
> {code}
> (Source: https://learnk8s.io/production-best-practices)
> I think it also makes sens out of this context.
> A graceful shutdown furthermore decrease the risk of inconsistencies in the underlying datastores (Cassandra)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org