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.

On Mar 13, 8:33 am, dormando <dorma...@rydia.net> wrote:
> > Here is our current setup:
> > webserver1 (also runs session memcache server)
> > webserver2 (also runs session memcache server)
> > database (specialized memcache storage for data caching)
>
> > We are not really a high loaded site, at peak time only about 1500
> > users online together. Network is not really saturated, as not much
> > data being transferred I believe.
>
> > Here is the phpinfo() part for sessions:
> > session.auto_start Off     Off
> > session.bug_compat_42      On      On
> > session.bug_compat_warn    On      On
> > session.cache_expire       180     180
> > session.cache_limiter      nocache nocache
> > session.cookie_domain      no value        no value
> > session.cookie_httponly    Off     Off
> > session.cookie_lifetime    0       0
> > session.cookie_path        /       /
> > session.cookie_secure      Off     Off
> > session.entropy_file       no value        no value
> > session.entropy_length     0       0
> > session.gc_divisor 100     100
> > session.gc_maxlifetime     1440    1440
> > session.gc_probability     0       0
> > session.hash_bits_per_character    4       4
> > session.hash_function      0       0
> > session.name       PHPSESSID       PHPSESSID
> > session.referer_check      no value        no value
> > session.save_handler       memcache        memcache
> > session.save_path  tcp://172.23.111.11:11211,tcp://172.23.111.12:11211
> > tcp://172.23.111.11:11211,tcp://172.23.111.12:11211
> > session.serialize_handler  php     php
> > session.use_cookies        On      On
> > session.use_only_cookies   Off     Off
> > session.use_trans_sid      0       0
>
> > And yes, we use PECL memcache extension.
>
> Can you paste the output of 'stats' against both of your memcached
> servers? Is your configuration identical on both servers? How have you
> been calculating the miss rate?

Reply via email to