Details
-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
-
SDK40: Coll. Plumb./SDK3 Refac, SDK3: SDK 3 Core/Comp./ES/Txn, SDK6: Durab., Hello, KV Doc, SDK8: SDK3, Pkg/CI, DOC KV, SDK14: α pub, blogs, svcs resp, SDK16: αS, error hnd, lookupin, SDK18: SYNC, err hand upd, sub, SDK20: PrepStmt, Doc ErrorH, SDK22: PrepStmt, Doc ErrorH, SDK24: PS, D-EH, D-A, MAPI, SDK30: MAPI, D-Async
Description
When a new leader is elected, it should have a way to find out which nodes are currently streaming.
Could implement by having each node own a "this is what I'm doing" document, whose contents indicate which vbuckets (if any) the node is currently streaming. This document should be bound to the Consul session so it is removed if the node dies (fails a health check).
These status documents should be under a common key prefix, so the leader can easily discover all of them and watch for changes.