Skip to content

what happens when app server restarts constantly? #903

Answered by petergoldstein
karmingc asked this question in Q&A
Discussion options

You must be logged in to vote

@karmingc. No, assuming you're using Dalli correctly, keys should map to the same node in different Dalli::Client instances in the same application server or in entirely different application servers.

The ring build is designed to be consistent. That is, given the same set of memcached servers, in the same order, with the same weights, you should get the same continuum points for the ring. You can see that here. Similarly, the mapping of a key to a point on the continuum is designed to be deterministic as seen here. The fact that the individual rings are in memory is irrelevant because they are rebuilt consistently.

The only situation where the mapping would change (given the same Dalli c…

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
@karmingc
Comment options

Answer selected by karmingc
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