Skip to content

memcache deployment with dalli? #909

Discussion options

You must be logged in to vote

So the short answer is:

  1. Yes, Dalli requires a static set of hostnames/IPs when it starts
  2. It shard across this set of hostnames/IPs
  3. Should one or more of the hostnames/IPs become unavailable, it will reshuffle ~1/N of the sharded keys - see the description here
  4. Hostnames/IPs cannot be added to existing clients

As you note, this means Dalli as it is today isn't a good fit for the HA situation you envision - long-lived Dalli clients, frequent scaling changes, etc. That's something I'm looking to fix at some point - allowing a more dynamic source of hosts - but it doesn't exist today.

Frankly, one of the reasons it doesn't exist today is that it doesn't tend to come up all that often in rea…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@josh-m-sharpe
Comment options

Answer selected by josh-m-sharpe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants