300 Redis Nodes, 3 Kahuna Nodes: Does the Math Work?
This week I read a post from EloqData about replacing 300 Redis nodes with 3 Lavik nodes. The fleet in that post was large for one reason: Redis keeps every value in RAM. The memory was full and the CPUs were mostly idle. Every new slice of data meant another primary, another replica, and two more VMs.
Their answer is to keep values on local NVMe and keep only the hot part in memory. Kahuna already stores persistent keys that way. So I asked the same question for Kahuna: can three nodes hold what 300 Redis nodes held?
On paper, yes, with two big differences. Kahuna does not speak the Redis protocol, so your application changes clients. And every persistent write is replicated through a quorum before it succeeds, which is safer than Redis replication and slower per write. I have not run this benchmark yet. This post is the sizing math and the list of things that can go wrong.
