Comment #8 on issue 132 by tru64ufs: Need to keep item out of LRU list
http://code.google.com/p/memcached/issues/detail?id=132

Matt, Dustin, and Dormano.

I was just suggesting one way of implementing the feature without changing too much memcached internals.
Maybe we can use a certain prefix for this. Doesn't matter.

I think you folks are worrying about user error case here.
We need to provide an easy way for certain items to be sticky, and if we provide them with right error, and statistics (the number of stick items and memory they occupy), I don't think it is too much trouble. Memcached may provide default max sticky items memory percentage (quota) like 10%, and option to adjust.
Or we can set aside one slab class for that particular purpose with a quota.
And then we can set aside a prefix for that particular purpose just like moxi front-cache.

ENOSPC error can happen even now (even with LRU) for certain situation.
ENOSPC can happen even for sticky buckets as well.

That's up to user to decide what to do, memcached just have to provide ways to tell users what's going on.

I think it is application's job to provide flexible scheme as long as it does not violate its design philosophy or
deviates too much from current protocol.

BTW, your contribution to memcached are just fabulous, indeed. I worship your guys everyday (we rely on
memcached stability 24x7)

Thank you.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


--
Subscription settings: http://groups.google.com/group/memcached/subscribe?hl=en

Reply via email to