Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-62232

Topology-aware services need ability to control when service is added / removed from service map

    XMLWordPrintable

Details

    • 0

    Description

      In looking into solutions for MB-59571, it seems apparent that services need the ability to control when its services are added or removed from the advertised service map in the event of rebalance in & out.

      One solution I pondered is adding two new task states for rebalances, in addition the existing states task-running and task-failed, two new optional statuses could be introduced:

      • task-running-new-nodes-ready
      • task-running-service-updates-ready

      If a service returns task-running-new-nodes-ready, it would be an indication to ns_server that new KeepNodes are ready to receive requests from clients, and should be added to the service map.

      If a service returns task-running-service-updates-ready, it would be an indication to ns_server that all updates (including that in task-running-new-nodes-ready) and EjectNodes should be removed from the service map. This is not unlike a normal clearing of the rebalance task which also indicates all the service map updates should be made, but in this case the rebalance is still underway and the service should not be terminated.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              artem Artem Stemkovski
              michael.blow Michael Blow
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:

                PagerDuty