We have been having problems with the memcache server storing sessions data, the cache miss was about 20%, therefore we added in another pool of memcache servers, but now the cache miss rate is up to 50%. Any possible cause or solutions for this problem?
+2
A:
In your php.ini file, the value for session.save_path
should not include 127.0.0.1 or localhost.
Use the hostname or LAN ip for the memcached servers.
See the first item in the troubleshooting section here.
jasonbar
2010-02-28 03:05:21
Nope, we're using LAN IPs, here's an example: tcp://172.23.111.12:11211. We currently have only 2 servers.
TheOnly92
2010-02-28 03:09:48
@TheOnly92: are they listed in the same order on both servers? *order matters* for the hash algorithm to work properly.
jasonbar
2010-02-28 03:12:22
Oh yes, the orders are different, I will try to fix it by tomorrow. Thanks for your help.
TheOnly92
2010-02-28 03:16:07