Welcome! Log In Create A New Profile

Advanced

Re: Lua/Redis Routing with Failover

agentzh
February 01, 2012 11:22PM
On Thu, Feb 2, 2012 at 12:05 AM, Rick Richardson
<rick.richardson@gmail.com> wrote:
> Sorry for the confusion. I don't want failover/backup for redis servers, I
> want the redis request to return multiple upstreams that I can proxy to with
> proxy_pass.
>
> E.g. I get a request for Foo.com. I ask redis for a list of upstream servers
> to which I can serve Foo.com.  I then feed the entire list somehow into
> proxy_pass.  It then performs its normal htttp_upstream operation as if it
> had a standard list of peers in an upstream.
>

Sorry for the misunderstanding :)

I think we could just patch ngx_proxy and mimic
ngx_http_upstream_create_round_robin_peer to dynamically construct a
peer list for the current request, just like how ngx_proxy does now
for multiple A records corresponding to a single host name if the
dynamic resolver is used. You can have a try ;)

Maybe it makes sense to provide a generic interface for ngx_proxy to
make such things easy.

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 1977 January 31, 2012 10:28PM

Re: Lua/Redis Routing with Failover

agentzh 567 January 31, 2012 11:26PM

Re: Lua/Redis Routing with Failover

rovar 587 February 01, 2012 11:06AM

Re: Lua/Redis Routing with Failover

rovar 537 February 01, 2012 12:04PM

Re: Lua/Redis Routing with Failover

Brian Akins 580 February 01, 2012 09:58PM

Re: Lua/Redis Routing with Failover

agentzh 508 February 01, 2012 11:22PM

Re: Lua/Redis Routing with Failover

rovar 721 February 01, 2012 11:42PM

Re: Lua/Redis Routing with Failover

agentzh 625 February 02, 2012 03:52AM

Re: Lua/Redis Routing with Failover

rovar 923 February 02, 2012 07:40AM



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

Online Users

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