Welcome! Log In Create A New Profile

Advanced

Re: [nginx] Upstream: enable hash balancing method support parameter "backup".

September 24, 2018 07:48AM
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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Upstream: enable hash balancing method support parameter "backup". Attachments

Elza Scarlet 2078 September 24, 2018 04:46AM

Re: [nginx] Upstream: enable hash balancing method support parameter "backup".

ru@nginx.com 946 September 24, 2018 07:48AM

Re: [nginx] Upstream: enable hash balancing method support parameter "backup".

Elza Scarlet 697 September 24, 2018 08:18AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 211
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready