Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High Availability Memcached #72

Open
Buooy opened this issue Sep 10, 2015 · 1 comment
Open

High Availability Memcached #72

Buooy opened this issue Sep 10, 2015 · 1 comment

Comments

@Buooy
Copy link

Buooy commented Sep 10, 2015

So I have a high availability setup with a load balancer to two wordpress servers with wordpress-pecl-memcached-object-cache installed.

Obviously when one cache is updated, the other is not. If I specify each individual server IP in global $memcached_servers, does it mean that when one memcached is updated, the other will be concurrently updated?

@jpptinsley
Copy link

IIRC, it depends on your memcached settings -- it's the memcached client library duplicates objects across servers.

You specifically want to check the /etc/php5/conf.d/20-memcached.ini (or related) settings. There's guides available via googling, I don't have the settings to hand right now.

Really, though, the default is that memcached client will halve the hash space across the two memcached servers, so each gets half the objects. Should one fail, the other will take the full load.

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

No branches or pull requests

2 participants