Welcome! Log In Create A New Profile

Advanced

Re: Does nginx have resolve cache?

Maxim Dounin
December 16, 2011 05:56AM
Hello!

On Thu, Dec 15, 2011 at 05:18:55PM -0500, aficionado wrote:

> I saw the announcement but it looks like Nginx 1.1.11 isn't still
> honoring the DNS ttl or the "valid" parameter at all.
>
> I have 2 related questions to this topic
>
> 1) Is the following configuration correct to get the resolver
> "resolving" at least every 5 secs?
>
> location /mylocation {
> resolver 127.0.0.4 valid=5s;
> set $myserver "myserver:1000";
> proxy_pass http://$myserver;
> proxy_redirect http://myserver.mydomain.in:8000
> https://www.myserver.com;
> }

Yes.

> 2) If I receive 100 request in 50 seconds and have my DNS (127.0.0.4)
> returning records with TTL=1. How many request to my DNS should Nginx
> perform in that period?

With one worker process - about 10 DNS requests, assuming the
above config.

Maxim Dounin

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

Does nginx have resolve cache?

mojiz December 04, 2011 03:13AM

Re: Does nginx have resolve cache?

Andrew Alexeev December 04, 2011 10:56AM

Re: Does nginx have resolve cache?

aficionado December 15, 2011 05:18PM

Re: Does nginx have resolve cache?

Maxim Dounin December 16, 2011 05:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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