GitHub user joelittlejohn opened a pull request:
https://github.com/apache/curator/pull/116
Add 'enabled' flag to service instance
Service providers will omit any instance that is marked 'enabled: false'.
The low level API provided by ServiceDiscovery (e.g. queryForInstance,
queryForInstances) will continue to return all instances, including
those that are marked 'enabled: false'.
This change allows instances to be temporarily removed from service
discovery via an update to the instance node data.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/joelittlejohn/curator CURATOR-275
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/curator/pull/116.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #116
----
commit 4776a2daacb3a776e9dd0bdc214ed4987fef96c9
Author: Joe Littlejohn <[email protected]>
Date: 2015-11-02T22:12:43Z
Add 'enabled' flag to service instance
Service providers will omit any instance that is marked 'enabled: false'.
The low level API provided by ServiceDiscovery (e.g. queryForInstance,
queryForInstances) will continue to return all instances, including
those that are marked 'enabled: false'.
This change allows instances to be temporarily removed from service
discovery via an update to the instance node data.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---