This website requires JavaScript.
Explore
Help
Sign In
luxolus
/
open-nomad
Watch
2
Star
0
Fork
You've already forked open-nomad
0
Code
Issues
1
Pull requests
Packages
Releases
Wiki
Activity
0c0b028a59
open-nomad
/
.changelog
/
12862.txt
4 lines
95 B
Plaintext
Raw
Normal View
History
Unescape
Escape
api: enable selecting subset of services using rendezvous hashing This PR adds the 'choose' query parameter to the '/v1/service/<service>' endpoint. The value of 'choose' is in the form '<number>|<key>', number is the number of desired services and key is a value unique but consistent to the requester (e.g. allocID). Folks aren't really expected to use this API directly, but rather through consul-template which will soon be getting a new helper function making use of this query parameter. Example, curl 'localhost:4646/v1/service/redis?choose=2|abc123' Note: consul-templte v0.29.1 includes the necessary nomadServices functionality.
2022-05-03 20:21:12 +00:00
```release-note:improvement
cl: fixup changelog comment Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2022-06-30 20:10:47 +00:00
api: enable setting `?choose` parameter when querying services
api: enable selecting subset of services using rendezvous hashing This PR adds the 'choose' query parameter to the '/v1/service/<service>' endpoint. The value of 'choose' is in the form '<number>|<key>', number is the number of desired services and key is a value unique but consistent to the requester (e.g. allocID). Folks aren't really expected to use this API directly, but rather through consul-template which will soon be getting a new helper function making use of this query parameter. Example, curl 'localhost:4646/v1/service/redis?choose=2|abc123' Note: consul-templte v0.29.1 includes the necessary nomadServices functionality.
2022-05-03 20:21:12 +00:00
```
Reference in a new issue
Copy permalink