Memcached eviction prior to key expiry?

前端 未结 2 499
野性不改
野性不改 2020-12-23 10:43

Can a key/value pair stored in memcached get evicted prior to its expiry if there is still free space available?

I have a memcached process running that is allowed t

2条回答
  •  我在风中等你
    2020-12-23 11:08

    Memcached stores data according to slabs of different memory chunks. If the different memory chunks are already allocated, then the Least recently used algorithm runs on the slab and evicts the data out, even if the there are no data in other memory slabs.

    Therefore a large distribution of data sizes can be responsible for this problem. By having multiple instances of memcached running and using it as a distributed system, the issue can be reduced.

提交回复
热议问题