tag:blogger.com,1999:blog-1582597613315819017.post6575572054332301566..comments2023-08-17T00:13:03.302+02:00Comments on nginx discovery journey: Day 51 - proxy_pass and resolverAntoine Bonavitahttp://www.blogger.com/profile/13678256675219995940noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-1582597613315819017.post-71897307527554581102015-02-13T10:11:30.543+01:002015-02-13T10:11:30.543+01:00this worked like a charm, thanksthis worked like a charm, thanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-50836384164361024092014-04-17T22:05:02.820+02:002014-04-17T22:05:02.820+02:00Holy crap you just solved a problem for me. I was ...Holy crap you just solved a problem for me. I was trying to implement this solution described here: http://dgtool.blogspot.com/2013/02/nginx-as-sticky-balancer-for-ha-using.html<br /><br />However we are using hostnames instead of IP addresses as in the blog post. I neglected to check my error.log like an idiot or I would have sorted this out long ago. Thank you!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-92177104229937514992013-08-15T01:23:59.804+02:002013-08-15T01:23:59.804+02:00This really helped me. ThanksThis really helped me. ThanksUnknownhttps://www.blogger.com/profile/01621156038727215189noreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-62640447633892628772013-05-24T10:35:05.420+02:002013-05-24T10:35:05.420+02:00From Igor Sysoev himself:
"nginx is not inte...From Igor Sysoev himself:<br /><br />"nginx is not intended to run as a forward proxy."<br /><br />See: http://forum.nginx.org/read.php?2,196115,196153#msg-196153Antoine Bonavitahttps://www.blogger.com/profile/13678256675219995940noreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-4344136934782040062013-05-20T17:28:32.230+02:002013-05-20T17:28:32.230+02:00..."there is a proxy_pass directive used to i......"there is a proxy_pass directive used to implement reverse proxies" - shouldn't the proxy_pass directive be desribed as implementing a forward proxy?royhttps://www.blogger.com/profile/04713832493805802021noreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-91706401292778737382013-02-25T18:32:25.969+01:002013-02-25T18:32:25.969+01:00You should consider adding your blog to http://pla...You should consider adding your blog to http://planet.ngx.cc/. It's very much in its infancy, but we're getting there. Please message me if you're interested in adding your blog and having troubles.MTecknologyhttps://www.blogger.com/profile/00178366746712637321noreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-72185244520692534692013-01-22T07:15:43.707+01:002013-01-22T07:15:43.707+01:00Perfect, this post saved a lot of headache.Perfect, this post saved a lot of headache.Henghttps://www.blogger.com/profile/09587290367199296343noreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-15063616605361486122011-12-04T23:25:06.083+01:002011-12-04T23:25:06.083+01:00Just if anybody comes here. There has been updates...Just if anybody comes here. There has been updates on this: now nginx supports multiple resolvers *and* respect TTLs. Here is the official documentation: http://nginx.org/en/docs/http/ngx_http_core_module.html#resolverAntoine Bonavitahttps://www.blogger.com/profile/13678256675219995940noreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-42739912157029561512011-09-27T10:22:30.077+02:002011-09-27T10:22:30.077+02:00Got confirmation of the cache at 5 minutes from Ma...Got confirmation of the cache at 5 minutes from Maxim in this message: <a href="http://forum.nginx.org/read.php?2,215830,215832#msg-215832" rel="nofollow">Does nginx honor DNS TTLs for proxy upstreams</a>Antoine Bonavitahttps://www.blogger.com/profile/13678256675219995940noreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-20710020572615755202011-07-30T00:27:39.760+02:002011-07-30T00:27:39.760+02:00Thanks, I did finally notice:
r->valid = 300;
...Thanks, I did finally notice:<br /><br />r->valid = 300;<br /><br />in ngx_resolver.c.<br /><br />It does seem a little arbitrary, but it works for me.nilhttps://www.blogger.com/profile/15301331747059533359noreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-22032292519669073572011-07-29T14:18:26.902+02:002011-07-29T14:18:26.902+02:00Hi nil,
From a brief look at the code, I would sa...Hi nil,<br /><br />From a brief look at the code, I would say it's 300 sec (ie 5 minutes) but that surprises me a lot as I would have expected Igor to use the DNS TTL. I'll look into it more carefully if I can find a little bit of time.Antoine Bonavitahttps://www.blogger.com/profile/13678256675219995940noreply@blogger.comtag:blogger.com,1999:blog-1582597613315819017.post-66303990956235684312011-07-28T23:08:03.331+02:002011-07-28T23:08:03.331+02:00I've been trying to figure out what the cache ...I've been trying to figure out what the cache expiry time is for a resolved dns entry. Any insight into that?nilhttps://www.blogger.com/profile/15301331747059533359noreply@blogger.com