Hi all,

I’d like to start a discussion on a CEP proposal: *CEP-59: Graceful
Disconnect*, to make intentional node shutdown/drain less disruptive for
clients (link:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=406619103).

Today, intentional node shutdown (e.g., rolling restarts) can still be
disruptive from a client perspective. Drivers often ignore DOWN events
because they are not reliable, and outstanding requests can end up as
client-facing TimeOut exceptions.

The proposed solution is to add an in-band GRACEFUL_DISCONNECT event that
both control and query connections can opt into via REGISTER. When a node
is shutting down, it will emit the event to all subscribed connections.
Drivers will stop sending new queries on that connection/host, allow
in-flight requests to finish, then reconnect with exponential backoff.

If you have thoughts on the proposed protocol, server shutdown behavior,
driver expectations, edge cases, or general feedback, I’d really appreciate
it.

Regards,
Jane

Reply via email to