How to expand the capacity of redis persistent data and cache?

Alibaba cloud Q & A 2022-02-13 08:24:46 阅读数:956

expand capacity redis persistent data

Redis How to increase the capacity of persistent data and cache ?




Take the answer 1:

If Redis Used as a cache , Use consistent hashes to achieve dynamic capacity expansion .

If Redis Used as a persistent store , Fixed... Must be used keys-to-nodes The mapping relationship , Once the number of nodes is determined, it cannot be changed . Otherwise ( namely Redis Nodes need to change dynamically ), You must use a system that rebalances data at runtime , At present, there is only Redis Clusters can do this .


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130824454682.html