Welcome! Log In Create A New Profile

Advanced

Re: Very slow dns lookup using proxy_pass

Anonymous User
January 03, 2014 11:11PM
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: keep-alive
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31556926
Cache-Control: no-cache, no-store
Access-Control-Max-Age: 300
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS

{"version":"v1"} curl -i -u demo: https://api.mydomain.com/v1/ 0.54s user 0.01s system 9% cpu 5.857 total

EXECUTED AGAIN, IMMEDIATELY AFTER. TOOK: 197ms

➜ ~ time curl -i -u demo: https://api.mydomain.com/v1/
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 04 Jan 2014 04:07:54 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31556926
Cache-Control: no-cache, no-store
Access-Control-Max-Age: 300
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS

{"version":"v1"} curl -i -u demo: https://api.mydomain.com/v1/ 0.05s user 0.01s system 27% cpu 0.197 total
Subject Author Posted

Very slow dns lookup using proxy_pass

Anonymous User January 03, 2014 10:42PM

Re: Very slow dns lookup using proxy_pass

Jonathan Matthews January 03, 2014 10:54PM

Re: Very slow dns lookup using proxy_pass

Anonymous User January 03, 2014 11:11PM

Re: Very slow dns lookup using proxy_pass

justink101 January 06, 2014 03:34PM

Re: Very slow dns lookup using proxy_pass

Jonathan Matthews January 06, 2014 04:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready