How will the ‘nodetool drain’ command handle active connections?

12 views
Skip to first unread message

Xiang Zhou

<feixiang11010@gmail.com>
unread,
Aug 4, 2020, 2:32:29 AM8/4/20
to ScyllaDB users
According to the best practice guidelines for upgrading scylla, I know that before upgrading a node, you need to execute the command "nodetool drain" to make Scylla stops listening for connections from the client and other nodes.

Assuming that before executing the'drain' command, there is a session that has not been completed (it may be an item operation or a table operation), 
then how will the drain command deal with this incomplete session? Wait for it to finish processing and then stop listening for connections?

In other words, before stopping scylla, how do I know if there are still active sessions?

Avi Kivity

<avi@scylladb.com>
unread,
Aug 4, 2020, 9:24:08 AM8/4/20
to scylladb-users@googlegroups.com, Xiang Zhou

IIRC drain sends a message to clients that tell them to stop new requests to that node.


Not sure about active requests.

--
You received this message because you are subscribed to the Google Groups "ScyllaDB users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scylladb-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scylladb-users/2466e01b-c4d9-4f38-bc24-9e3a88e56975n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages