What decides the size of a cache server?
The dataset plus headroom. For Redis and its open-source fork Valkey, plan for three things on top of the raw data: per-key overhead (often 50 to 100 bytes per key), memory fragmentation and the extra space a snapshot can need. When Redis writes an RDB snapshot or rewrites its append-only file, it forks, and every page the main process changes during the save is copied. On a write-heavy instance, keeping the dataset at about half the machine's RAM leaves safe room for that copy.
| Machine | RAM | Comfortable dataset with snapshots | Per month |
|---|---|---|---|
| S5 | 128 GB DDR4 | about 60 GB | $88.72 |
| S12 | 192 GB DDR5 | about 90 GB | $202.82 |
| M1 | 512 GB DDR4 | about 240 GB | $414.70 |
| M6 | 768 GB DDR4 | about 360 GB | $664.12 |
| M13 | 1 TB DDR5 | about 480 GB | $849.12 |
A pure cache with persistence turned off can use far more of the RAM, because there is no fork to plan for.
Do clock speed and core count matter?
For a single Redis or Valkey instance, clock speed matters more than cores, because commands execute on one main thread (newer versions add I/O threads for networking). That makes the high-clock single-socket machines ideal for one big instance: S8 pairs an 8-core Intel Xeon E-2388G with 128 GB DDR4 for $103.13. To use many cores, run several instances on one machine, each pinned to its own cores and port, and shard across them with Redis Cluster or a proxy. Memcached is multithreaded and scales across cores on its own.
What is NUMA and why does it matter on dual-socket machines?
On a dual-socket server, each processor has its own memory. A process that reads memory attached to the other socket pays a latency penalty. For caches, the fix is easy: run one or more instances per socket and bind each to its local memory with numactl.
numactl --cpunodebind=0 --membind=0 valkey-server /etc/valkey/node0.conf numactl --cpunodebind=1 --membind=1 valkey-server /etc/valkey/node1.conf
All machines in the High memory line have two sockets, so plan two or more instances per box rather than one giant process.
How should I tune the operating system?
- Set vm.overcommit_memory = 1, as Redis recommends, so background saves do not fail on a busy machine.
- Disable transparent huge pages for Redis; they make fork copies slower.
- Raise net.core.somaxconn and the instance's tcp-backlog for many client connections.
- Bind the cache to localhost or your application addresses and require a password or ACL users; never leave it open to the internet.
What keeps a cache online if the primary fails?
Run a replica on a second machine and let Sentinel or the cluster mode promote it when the primary fails. Replication traffic leaves the primary through its public port, so encrypt it with TLS and count the initial full sync against the 15 TB outgoing allowance. A 512 GB M1 primary with a matching replica costs $829.40 a month for half a terabyte of highly available memory.
Machines for In-Memory Workloads
Monthly prices are the same in all six cities. The smallest order is the shortest term that reaches the $40 minimum.
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| S5 | Intel Xeon E-2276G | 6 / 12 | 128 GB DDR4 | 2x 1 TB NVMe | 2x 10 Gbps | $88.72 | $88.72 (1 month) |
| S8 | Intel Xeon E-2388G | 8 / 16 | 128 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $103.13 | $103.13 (1 month) |
| S12 | Intel Core i9-14900K | 24 / 32 | 192 GB DDR5 | 2x 4 TB NVMe | 2x 10 Gbps | $202.82 | $202.82 (1 month) |
| M1 | 2x Intel Xeon Gold 5315Y | 16 / 32 | 512 GB DDR4 | 2x 4 TB NVMe | 2x 25 Gbps | $414.70 | $414.70 (1 month) |
| M6 | 2x Intel Xeon Gold 6258R | 56 / 112 | 768 GB DDR4 | 2x 2 TB NVMe | 2x 25 Gbps | $664.12 | $664.12 (1 month) |
| M13 | 2x Intel Xeon Gold 5418Y | 48 / 96 | 1 TB DDR5 | 2x 4 TB NVMe | 2x 25 Gbps | $849.12 | $849.12 (1 month) |
FAQ
Quick Answers
Up to 1 TB. M13 has two Xeon Gold 5418Y processors and 1 TB of DDR5 for $849.12 a month.
Yes. Commands run on one main thread, so a high-clock single-socket machine such as S8 suits one large instance. Run several instances to use more cores.
ECC protects against silent bit flips, which matters when RAM holds your data. Our dual-socket Xeon machines use server memory; check the model page for the exact memory type.
Yes. Give each its own memory limit and, on dual-socket boxes, bind them to different sockets with numactl.
If the dataset is under about 60 GB, a 128 GB Single CPU machine is the cheapest fit. Above that, the High memory line starts at $414.70 a month for 512 GB.