Welcome! Log In Create A New Profile

Advanced

Re: DNS resolution of backends

Reinis Rozitis
June 05, 2014 11:22AM
> We run a reverse proxy to Amazon S3 service. Sometime Amazon change their
> IPs and some of them may become unresponsive and render reservse proxy
> unusuable. Is there options to force nginx to re-resolve IPs of backends
> lets say each 5 mins ?

Give the upstream{} block the hostnames of the instances and add an resolver
( http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver ).

Optionally add valid=5m; if the TTL of the domain is not optimal.


p.s. for the nginx to be more responsive you can also tweak the connect
timeouts like proxy_connect_timeout (
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_connect_timeout
) as the default is quite high - 60 seconds.

rr


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

DNS resolution of backends

MaxDudu June 05, 2014 11:10AM

Re: DNS resolution of backends

Reinis Rozitis June 05, 2014 11:22AM

Re: DNS resolution of backends

MaxDudu June 05, 2014 02:40PM

Re: DNS resolution of backends

Maxim Dounin June 06, 2014 08:42AM

Re: DNS resolution of backends

MaxDudu June 06, 2014 05:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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