Well, before I come consulting you guys, I have asked the same question at Stackoverflow and someone pointed it out that both servers need to have the same memcached pool IP order, so we fixed that. Our pecl/memcache version is 3.0.1, it's not too old? I haven't checked the error logs yet so I can't tell anything right now, will do it later on... But how do I check the memcached configs?
On Mar 14, 8:51 am, Adam Lee <a...@fotolog.biz> wrote: > Given the behavior and the high miss rate, I really have to think that > something doesn't match between your two servers. Either the server configs > are different or they're trying to get different keys-- there's no reason, > otherwise, that data would appear to be there for one of them but not for > the other. > > Can you paste your memcached configs from both servers? It's important to > note that even order matters in respect to memcached config. If the two > machines have the same servers but in different orders, they will hash the > values to different memcached servers. > > > > > > On Sat, Mar 13, 2010 at 11:56 AM, TheOnly92 <05049...@gmail.com> wrote: > > Webserver1:http://paste2.org/p/715491 > > Webserver2:http://paste2.org/p/715492 > > > Situation: > > 1. User logs in. > > 2. User clicks somewhere (still logged in) > > 3. User clicks on another placed and gets redirected to the home page > > (appears logged out for this page) > > 4. Refreshes and able to access the page again (logged in). > > > On Mar 13, 1:35 pm, dormando <dorma...@rydia.net> wrote: > > > Can you telnet to the instances, type "stats", "stats items", and "stats > > > slabs", then copy/paste all that into pastebin? > > > > echo "stats" | nc host 11211 >> stats.txt works too > > > > You version is very old... It's missing many statistical counters that > > > could help us diagnose a problem. The extendedstats isn't printing an > > > evictions counter, but I can't remember if that version even had one. > > > > Can you describe your problem in more detail? If I recall: > > > > - User logs in. > > > - Clicks somewhere. now they're logged out? > > > - They click somewhere else, and they're logged in again? Does this mean > > > they found their original session again, or did you app log them in > > again? > > > > -Dormando > > > > On Fri, 12 Mar 2010, TheOnly92 wrote: > > > > I'm retrieving statistics via Memcache::extendedStats function, here > > > > are the basics: > > > > > Session Server 1 > > > > Version 1.2.2 > > > > Uptime 398,954 sec > > > > Cache Hits 2,065,061 > > > > Cache Misses 987,726 (47.83%) > > > > Current Items 381,928 > > > > Data Read 4,318,055.02 KB > > > > Data Written 2,011,004.09 KB > > > > Current Storage 100,688.96 KB > > > > Maximum Storage 256.00 MB > > > > Current Connections 9 > > > > Total Connections 5,278,414 > > > > Session Server 2 > > > > Version 1.2.2 > > > > Uptime 398,943 sec > > > > Cache Hits 2,225,697 > > > > Cache Misses 987,733 (44.38%) > > > > Current Items 381,919 > > > > Data Read 4,323,893.05 KB > > > > Data Written 2,159,309.95 KB > > > > Current Storage 100,685.52 KB > > > > Maximum Storage 256.00 MB > > > > Current Connections 11 > > > > Total Connections 5,278,282 > > > > > We are absolutely sure that both webservers are able to access the > > > > memcache server instances, we selected memcache because it was an easy > > > > configuration and setup without any changes of source code required, > > > > not to think that it is "absolutely" reliable. We just need to make > > > > sure that it works most of the time, but current situation is just > > > > unacceptable. > > -- > awl