Valkey on dedicated servers
Valkey is a community-run, BSD-licensed key-value store that continued from Redis 7.2.4 in 2024. Its newer releases put extra cores to work, which suits a dedicated machine with many of them.
What is Valkey?
An in-memory data store with strings, hashes, lists, sets, sorted sets, streams and pub/sub, speaking the same protocol and commands as Redis. It was started in 2024 under the Linux Foundation when Redis changed its licence, and keeps a permissive BSD licence. Existing clients and tools connect without changes, and the server binaries are named valkey-server and valkey-cli.
How do I install it?
From your distribution where it is packaged: Debian 13, Fedora 43 and the EL10 systems we install (AlmaLinux 10 and Rocky Linux 10) all carry Valkey. On other releases, building from source takes a couple of minutes.
dnf install valkey && systemctl enable --now valkey # AlmaLinux 10, Rocky Linux 10, Fedora 43 apt install valkey-server # Debian 13 git clone --branch 8.1 https://github.com/valkey-io/valkey.git && cd valkey && make -j"$(nproc)" BUILD_TLS=yes
Check the project's release notes and pick the newest stable branch rather than the one in this example.
How does Valkey use multiple cores?
Command execution stays on one main thread, which keeps every operation atomic, while reading from and writing to clients can be spread across I/O threads. From version 8 that offloading became much more effective, and a single instance can serve several times the requests of the old single-threaded design. Set io-threads to a value up to the number of cores you want to give it, leaving some for the system and persistence.
# /etc/valkey/valkey.conf bind 127.0.0.1 10.8.0.1 port 6379 io-threads 6 maxmemory 48gb maxmemory-policy allkeys-lru appendonly yes appendfsync everysec
Which memory and persistence settings matter?
Set maxmemory below physical memory so that the background save has room. Saving an RDB snapshot or rewriting the AOF forks the process; pages written during the save are copied, and a busy write workload can need a large share of the data set again during that window. On a 64 GB machine, a 40 to 48 GB data limit is a sensible ceiling. Also set vm.overcommit_memory = 1 with sysctl and disable transparent huge pages, as the startup log recommends. Choose an eviction policy that fits the job: allkeys-lru for caches, noeviction where losing a key would be a bug.
How do I build a cluster?
With at least three primaries, each with a replica, and the cluster command in valkey-cli. Each node uses its client port plus a bus port 10000 higher.
valkey-cli --cluster create 10.8.0.1:7000 10.8.0.2:7000 10.8.0.3:7000 10.8.0.1:7001 10.8.0.2:7001 10.8.0.3:7001 --cluster-replicas 1
Several instances can share one machine on different ports, but spread primaries and their replicas over separate servers. We do not offer a private network between servers, so connect them over a WireGuard tunnel on the public port, as in the addresses above, or enable Valkey's TLS port.
How do I move from Redis?
Valkey reads RDB files written by Redis open-source versions up to 7.2, so the simplest path is to make the Valkey server a replica of the running Redis server, wait for the sync to finish, then promote it and point clients at it.
valkey-cli -p 6379 REPLICAOF 10.8.0.5 6379 valkey-cli -p 6379 INFO replication | grep master_link_status valkey-cli -p 6379 REPLICAOF NO ONE
Test any modules you rely on first; Valkey has its own module ecosystem for JSON, Bloom filters and search.
Which machine fits?
Size by data set plus fork headroom, then by cores for I/O threads. ESSENTIAL-4 with 64 GB DDR4 and 16 cores at $106.20 a month holds a 40 GB data set comfortably. ESSENTIAL-8 with 256 GB DDR4 suits large caches. For three-node clusters with DDR5 and a 3 Gbps guaranteed port, BUSINESS-2 2024 is a balanced choice. Our Redis servers page covers Redis itself, and Secure Memcached shows the same lock-down approach for another cache.
Machines for Valkey
Lowest monthly price of each model across its data centres; the model page shows the price in every location.
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-S | AMD Ryzen 7 9700X | 8 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $46.20 |
| ESSENTIAL-4 | AMD EPYC 7313 | 16 | 64 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $106.20 |
| ESSENTIAL-5 | AMD EPYC 7413 | 24 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $120.00 |
| ESSENTIAL-8 | AMD EPYC 7532 | 32 | 256 GB | 2x 480 GB SSD SATA | 1 Gbps unmetered | $126.60 |
| BUSINESS-2 2024 | AMD EPYC 4344P | 8 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $109.80 |
| BUSINESS-5 2024 | AMD EPYC 8224P | 24 | 96 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $280.20 |
Size memory for the data set plus fork headroom, then add cores for I/O threads.
Related pages
Redis servers
Run Redis on your own hardware: persistence choices, fork memory headroom, Sentinel failover, cluster slots, the built-in data types of Redis 8 and sizing.
Read moreDatabase servers
NVMe machines with large memory for PostgreSQL, MySQL, MariaDB and MongoDB, from a single primary to replicated pairs.
Read moreSecure Memcached
Keep a Memcached cache private: bind to localhost, turn off UDP, use SASL or a tunnel for remote clients and size memory for the workload.
Read moreECC memory explained
Why servers use error correcting memory, how full ECC differs from DDR5 on-die ECC, and which of our machines carry which.
Read moreQuestions and answers
What is Valkey?
A BSD-licensed, community-run in-memory key-value store that continued from Redis 7.2.4 in 2024 and speaks the same protocol and commands.
Does Valkey use more than one CPU core?
Commands run on one main thread, but client I/O can be spread across io-threads, which version 8 made much more effective.
Can I migrate from Redis to Valkey without downtime?
Yes for Redis open-source data up to 7.2. Make Valkey a replica of Redis, wait for the sync, then promote it and switch clients.
How much memory should Valkey be allowed to use?
Leave headroom for background saves, which fork the process. On a 64 GB machine, a maxmemory of 40 to 48 GB is a sensible ceiling.
How do Valkey cluster nodes talk across servers?
Over the public port through a WireGuard tunnel or with Valkey's TLS port, since a private network between servers is not offered.