-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
have registerNode handle NodeUpdateResponse
We don't really have to worry about regions in the Consul discovery step. If we hit a different region and they're federated, the request will be forwarded. If the regions aren't federated (not a very safe topology in general), the node registration will fail and we'll retry. Eliminate the region tags we added to Consul. Have `registerNode` update the server list based on the response we get, and have it return the "no servers" error if we get no servers so that we kick off discovery again and retry immediately rather than 15s later.
- Loading branch information
Showing
2 changed files
with
40 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters