Uploaded image for project: 'Couchbase Elasticsearch Connector'
  1. Couchbase Elasticsearch Connector
  2. CBES-65 Autonomous Operations Mode with Consul
  3. CBES-96

Leader should be able to discover what other nodes are doing

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Major
    • 4.1.0-dp
    • 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.

      Attachments

        Activity

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h Time Not Required
                1h

                PagerDuty