首页 > 解决方案 > Is the Redis cluster installed in k8s have less performance compared to installed standalone?

问题描述

I am going to install redis cluster for the use for my applications, I was planning install them by using prepared helm chart,

But there's a saying goes:

Redis installed in k8s will have less performance compared to standalone installations, because of shared hardware resources (CPU, memories...)

Is that true?

标签: performancekubernetesredis

解决方案


正如 Burak 在评论中已经提到的那样,您可以选择仅用于 Redis pod 的专用节点,以避免与其他服务共享资源。

另外值得一提的是,Redis 的性能与底层的 VM 规范相关。Redis 是单线程的,因此具有大缓存的快速 CPU 性能会更好。多核不直接影响性能。如果您的工作负载相对较小(对象小于 10 KB),则内存对于优化性能并不是那么重要。

最后,您可以使用redis-benchmark来自己测试性能。有很多例子可以查看。或者使用memtier_benchmarkRedis Memory Analyzer等其他工具。


推荐阅读