Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: enable selecting subset of services using rendezvous hashing #12862

Merged
merged 2 commits into from
Jun 30, 2022

Commits on Jun 25, 2022

  1. 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.
    shoenig committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    bdead31 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2022

  1. cl: fixup changelog comment

    Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
    shoenig and jrasell authored Jun 30, 2022
    Configuration menu
    Copy the full SHA
    4733db4 View commit details
    Browse the repository at this point in the history