Welcome! Log In Create A New Profile

Advanced

Re: Lua/Redis Routing with Failover

agentzh
January 31, 2012 11:26PM
On Wed, Feb 1, 2012 at 11:27 AM, Rick Richardson
<rick.richardson@gmail.com>wrote:

> I have a requirement to route dynamically by domain to a set of all
> participating peers similar to the Dynamic Request Routing Based on
> Redis in Open Resty, the difference is that if one upstream peer is
> down, I'd like to fail over to the next one. So Redis would return a
> priority-sorted list of upstream peers for any given domain instead of
> 1.
>
>
Well, just put multiple (redis) servers into every upstream config block,
like this:

upstream A {
server foo.com:6379;
server bar.com:6379 backup;
}

Then bar.com:6379 will be a backup node for foo.com:6379 when
foo.com:6379is down.

Best regards,
-agentzh
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Lua/Redis Routing with Failover

rovar 1981 January 31, 2012 10:28PM

Re: Lua/Redis Routing with Failover

agentzh 572 January 31, 2012 11:26PM

Re: Lua/Redis Routing with Failover

rovar 592 February 01, 2012 11:06AM

Re: Lua/Redis Routing with Failover

rovar 542 February 01, 2012 12:04PM

Re: Lua/Redis Routing with Failover

Brian Akins 585 February 01, 2012 09:58PM

Re: Lua/Redis Routing with Failover

agentzh 515 February 01, 2012 11:22PM

Re: Lua/Redis Routing with Failover

rovar 727 February 01, 2012 11:42PM

Re: Lua/Redis Routing with Failover

agentzh 630 February 02, 2012 03:52AM

Re: Lua/Redis Routing with Failover

rovar 927 February 02, 2012 07:40AM



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

Online Users

Guests: 128
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