> I configure lvs use "round-robin" policy.
> 
> s1 has apache and memcached,
> s2 has apache and memcached.
> And apache on s1 use memcached on s1, apache on s2 use memcached on s2.
> And s1 and s2 use a same database.
>
> There is a problem:
>                                Users could not upload files sometimes.
> But there is no problem, after I let the two apaches to use a same
> memcached.

Yes, that's pretty much how it should work - both instances of apache use BOTH 
instances of memcache.

All memcached clients need to have *exactly* the same configuration for it to 
all work. That means if you have memcached on server A and server B, then ALL 
clients need to point to BOTH A AND B. If you point some to A and some to B, 
then you're going to get weird stuff happening.

Memcached is not magic, it only does what you tell it to do.

Dean.


Reply via email to