Files
nomad/command/agent
Seth Hoenig bdead31863 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-06-25 10:37:37 -05:00
..
2021-10-01 10:14:28 -04:00
2021-10-01 10:14:28 -04:00
2018-10-16 16:56:55 -07:00
2021-10-01 10:14:28 -04:00
2021-10-01 10:14:28 -04:00
2018-09-13 10:43:40 -07:00
2018-02-15 13:59:02 -08:00
2015-09-06 18:39:03 -07:00
2021-10-01 10:14:28 -04:00
2019-01-22 15:44:31 -08:00
2021-10-01 10:14:28 -04:00
2022-03-25 13:43:33 -05:00