[PATCH]upstream server directive support variable
Maxim Dounin
mdounin at mdounin.ru
Sun Jun 2 16:22:51 UTC 2013
Hello!
On Sun, Jun 02, 2013 at 08:46:33PM +0800, flygoast wrote:
> I've tried to dynamicly find upstream block name. However, now
> my backend ips are stored in some storage like REDIS, or
> memcache. In each request, I first to get the ips from the
> storage, then proxy the request to the backend. Some backends
> have not only one ip, so I used the usptream to process the
> innormal situation like 502 in someone of them. Main objective
> is to retry another backend ip instead of load balance.
To retry with another backend there is error_page directive.
--
Maxim Dounin
http://nginx.org/en/donation.html
More information about the nginx-devel
mailing list