Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this still work? #5

Open
Eduardo-Julio opened this issue Aug 22, 2018 · 2 comments
Open

Does this still work? #5

Eduardo-Julio opened this issue Aug 22, 2018 · 2 comments

Comments

@Eduardo-Julio
Copy link

Eduardo-Julio commented Aug 22, 2018

Hey,

Thanks for this awesome package. We are using ec2 + nginx + varnish and 15% of our prerender requests are throwing 504, in our logs this requests look like this:

2018/08/20 10:51:48 [error] 14869#14869: *146686 service.prerender.io could not be resolved (2: Server failure), client: 127.0.0.1, server: www.ourDomain.com, request: "GET /los-lagos/osorno/veterinario HTTP/1.1", host: "www.ourDomain.com"

We tried this package with no success, we also searched google for other people using prerender + varnish and didn't have any luck, is there someone using this package successfully?

Any help its greatly appreciated, thanks!

@thoop
Copy link
Contributor

thoop commented Aug 23, 2018

Is your varnish server caching the IP address of our Prerender.io service? We had issues with nginx in the past where it cached IP's and that caused issues if the IP of our load balancer ever changed. The 15% failure rate kind of seems like it could be something like that.

@MWers
Copy link
Owner

MWers commented Aug 23, 2018

That error looks like an nginx error and it seems like it's having trouble resolving service.prerender.io. Are you able to reliably resolve that address directly from your EC2 instance? You might consider setting nginx to use Google's DNS instead of local DNS using the following:

resolver 4.4.4.4 8.8.8.8;

http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants