Re: Very slow dns lookup using proxy_pass

2014-01-06 Thread Jonathan Matthews
On 6 January 2014 20:34, justink101 wrote: > Consistently slow DNS lookups from > nginx I *really* don't think you've demonstrated anything that points to that conclusion. Do some tcpdump'ing. Show the data. Show your working. ;-) J ___ nginx mailing

Re: Very slow dns lookup using proxy_pass

2014-01-06 Thread justink101
Anybody have any further insight on this? Consistently slow DNS lookups from nginx, even though dig shows fast query times. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,246001,246070#msg-246070 ___ nginx mailing list nginx@nginx.org http://

Re: Very slow dns lookup using proxy_pass

2014-01-03 Thread justin
Hi Jonathan, Using time is the only way I know how to demonstrate this: FIRST TIME TOOK: 5.8 seconds ➜ ~ time curl -i -u demo: https://api.mydomain.com/v1/ HTTP/1.1 200 OK Server: nginx Date: Sat, 04 Jan 2014 04:07:50 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: ke

Re: Very slow dns lookup using proxy_pass

2014-01-03 Thread Jonathan Matthews
On 4 January 2014 03:42, justin wrote: > I am seeing very slow DNS lookup times ( > 2 seconds ) using proxy_pass, > even though dig response times on the server are quick [snip] > Any ideas why this is so slow, and solutions? Please demonstrate a slow request, and show the data that leads you to

Very slow dns lookup using proxy_pass

2014-01-03 Thread justin
I am seeing very slow DNS lookup times ( > 2 seconds ) using proxy_pass, even though dig response times on the server are quick. Here is the nginx configuration block: location ~ ^/v1/(?.*) { resolver 8.8.4.4 4.4.4.4 valid=300s; resolver_timeout 10s; proxy_pass https://$remote_user.