[nginx] Upstream: enable hash balancing method support parameter "backup".
elsascarlet at outlook.com
Mon Sep 24 12:17:34 UTC 2018
Got it. Thanks a lot.
Kind regards, Scarlet
From: nginx-devel <nginx-devel-bounces at nginx.org> on behalf of Ruslan Ermilov <ru at nginx.com>
Sent: September 24, 2018 6:47 AM
To: nginx-devel at nginx.org
Subject: Re: [nginx] Upstream: enable hash balancing method support parameter "backup".
On Mon, Sep 24, 2018 at 08:44:15AM +0000, Elza Scarlet wrote:
> Dear Development Team,
> Thanks all of you make nginx so nice to use. We have a use case, we use hash
> balancing method to increasing service's cache hit rate, but it doesn't
> support "backup" parameter, which can be use to make doing online backup
> server easier. After reading the source code, we found it's very easy to
> support "backup" parameter when using hash balancing method, so we submit
> this changes. Hope you can accept this changes.
> Kind regards, Scarlet
Generally, hash methods don't support the "backup" parameter,
but for those who need backup when falling back to round robin,
there's a work around: put the "hash" directive after the
"server" directives in the "upstream" block.
nginx-devel mailing list
nginx-devel at nginx.org
More information about the nginx-devel