redis socket connection in upstream for redis-page times out (504) in some sites
https://support.gridpane.com/a/tickets/314005
Server: 45.63.68.221
client email: [email protected]
Test Page: http://www.gptest.com/the-service/
Default upstream config(/etc/nginx/conf.d/upstream.conf
):
upstream redis-page {
server unix:/var/run/redis-page/redis-page.sock;
server 127.0.0.1:6378 backup;
keepalive 10;
}
The test page is not loaded fully and redis store/fetch fails.
If we change the upstream config by removing backup
the page loads correctly.
Corrected upstream config:
upstream redis-page {
server unix:/var/run/redis-page/redis-page.sock;
server 127.0.0.1:6378;
keepalive 10;
}
The current workaround is using fastcgi instead of redis cache.