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

random initiate value for set_rotate #44

Open
ariselseng opened this issue Sep 15, 2018 · 0 comments
Open

random initiate value for set_rotate #44

ariselseng opened this issue Sep 15, 2018 · 0 comments

Comments

@ariselseng
Copy link

Hi,
Is it possible to make the set_rotate start from a random number between 1 and $server_key_max instead of starting at 1 for the first request?

I am using this for some kind of load balancing and when I deploy new instances I have the problem alwas hitting the first key at first request.

set_rotate $server_key 1 $server_key_max;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant