[wip,dnr,dnm] server,cli: bar decommissioned nodes from re-joining the cluster#54373
[wip,dnr,dnm] server,cli: bar decommissioned nodes from re-joining the cluster#54373irfansharif wants to merge 1 commit intocockroachdb:masterfrom
Conversation
irfansharif
commented
Sep 14, 2020
525a6eb to
a8077fb
Compare
*: consult gating file on start up And introduce --force flag to `cockroach node decommission`). Release note: None
a8077fb to
99dc9f7
Compare
|
Abandoning this PR, @tbg is instead going to attempt the following approach: We'll install a gossip listener near pkg/rpc that will listen in on changes to liveness records. When this listener learns of that a node is fully decommissioned, it will persist that information to a store local key/file. That file/information (also cached in-memory) will be checked in our rpc layer when heartbeating currently open connections, and when accepting new ones. This will effectively let us close out all connections to all fully decommissioned nodes. This file will also be checked during start up to populate our cache, and to maintain the running list of "nodes we shouldn't talk to anymore". +cc @knz, this overlaps with areas I think you were planning on otherwise working on. |