0

I have 7 webservers with 64gb of ram each, I want to make use some of this 64 gb of ram with memcached, so I assigned 30gb to memcache in each webservers and added all of the 7 servers to the memcache servers list on my app, All fine till now except that only 3 of the servers gets utilized as seen in the screenshot, I double checked that telnet 11211 works on all of the servers from any other server in the pool.

enter image description here

SteveL
  • 167
  • 9
  • Take a look http://serverfault.com/questions/282756/memcache-issues-in-a-distributed-environment-with-many-nodes – Federico Sierra Feb 04 '17 at 00:36
  • @FedericoSierra this doesnt seem to be the case, my 4 servers doent get used at all. Having all of the 600k hash keys to be similar between them seems kinda impossible. looking at the implementation of the memcached package the servers gets selected with server = self.buckets[serverhash % len(self.buckets)] – SteveL Feb 04 '17 at 00:48
  • I'm not expert, but not seem a consistent hashing, maybe you can try with a more advanced memcached lib like [pylibmc](http://sendapatch.se/projects/pylibmc/) – Federico Sierra Feb 04 '17 at 02:00
  • switched to pylibmc and the problem got solved, I guess there is a bug or something in the client I was using... – SteveL Feb 04 '17 at 13:37

0 Answers0