Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

pagespeed memcached enabled, when memcached server restarts, cache breaks until nginx is restarted as well #338

Closed
vbtechsupport opened this issue May 5, 2013 · 3 comments

Comments

@vbtechsupport
Copy link

With memcached enabled in pagespeed, it seems whenever memcached server restarts, it breaks ngx_pagespeed cache until nginx web server is also restarted ?

ngx_pagespeed_message shows after memcached restart on CentOS 6.4 server the following

[Sat May 04 22:09:34 2013] [Error] [11913] AprMemCache::Put error: The timeout specified has expired (70007) on key rname/cf_n0ivl0jKcdvV6m1CHVLT/Z/DxxIHWGWTIEKaPV67xT@_@zAh0KLGvqBj8lGqcsH8UA.@v__@zAh0KLGvqBj8lGqcsH8U, value-size 73
[Sat May 04 22:09:34 2013] [Error] [11913] AprMemCache::MultiGet error: Internal error (20014) on 6 keys

Nginx 1.4.0 source compiled
memcached 1.4.15 source compiled
ngx_pagespeed 1.5.27.2 beta

Guess documentation needs to state, when memcached server is used, restarting it also requires nginx server restart ?

@oschaaf
Copy link
Member

oschaaf commented May 5, 2013

@vbtechsupport I think ngx_pagespeed is supposed to retry connecting to memcached after a while. If you wait for 5 minutes after restarting memcached, and then request a page, does it use memcached again?

@vbtechsupport
Copy link
Author

Ah yes if i wait a while after memcached restarted seems pagespeed connects to memcached again without nginx restart

@jeffkaufman
Copy link
Contributor

PageSpeed depends on it's cache being available in order to do rewrites. It can recover from memcache going away, but yes, if you restart memcached it's best if you also restart nginx.

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

No branches or pull requests

3 participants