Running Redis on dedicated servers

Redis serves sessions, caches, queues, leaderboards and rate limits in well under a millisecond. On a dedicated server it has all the memory and steady latency it needs, without noisy neighbours.

What do teams use Redis for?

Anything that needs fast shared state. Caches in front of slow databases, user sessions, job queues, rate limiters, real-time leaderboards with sorted sets, pub/sub messaging and streams for event pipelines. Redis 8, released in 2025, also includes JSON documents, time series, probabilistic structures and a query engine in the core open-source distribution, with an AGPLv3 licence option alongside its source-available licences.

How do I install a current version?

Distribution packages vary in age, and the project publishes its own repositories for Debian, Ubuntu and the EL family with current releases. Check the version with redis-server --version after installing and compare it with the release notes. Then keep the service bound to localhost or a private tunnel until authentication and TLS are configured.

# /etc/redis/redis.conf essentials
bind 127.0.0.1 10.7.0.1
protected-mode yes
requirepass use-a-long-random-secret-here
maxmemory 96gb
maxmemory-policy volatile-lru
save 900 1 300 100
appendonly yes
appendfsync everysec

Which persistence should I choose?

It depends on how much data you can lose. RDB snapshots write the full data set at intervals; they are compact and fast to load, but a crash loses everything since the last snapshot. The append-only file logs every write; with appendfsync everysec you lose at most about a second. Many setups run both: AOF for durability, RDB for compact backups. A pure cache can run with neither.

Why does Redis need spare memory?

Because snapshots and AOF rewrites fork the process. The child shares memory with the parent through copy-on-write, but every page the parent changes during the save is copied. On a write-heavy instance that can approach the size of the data set. Plan physical memory at 1.5 to 2 times maxmemory for busy instances, set vm.overcommit_memory = 1 so the fork never fails, and disable transparent huge pages, which make each copied page far larger.

sysctl -w vm.overcommit_memory=1
echo never > /sys/kernel/mm/transparent_hugepage/enabled

Persist both settings in /etc/sysctl.d and a small systemd unit so they survive reboots.

How do I make Redis highly available?

With replicas and Sentinel. A primary streams changes to one or more replicas; three Sentinel processes on separate machines watch them and promote a replica when the primary fails, with a quorum of two. Clients ask Sentinel, on port 26379, where the current primary is. Since we do not provide a private network between servers, link the machines with WireGuard or configure Redis TLS for replication traffic.

sentinel monitor cache-main 10.7.0.1 6379 2
sentinel auth-pass cache-main use-a-long-random-secret-here
sentinel down-after-milliseconds cache-main 5000
sentinel failover-timeout cache-main 60000

When should I use Redis Cluster?

When one machine's memory or one main thread is no longer enough. Cluster splits the key space into 16,384 hash slots spread across several primaries, each with replicas, and clients route commands to the right node. Multi-key operations work only on keys in the same slot, so use hash tags like {user:42} to keep related keys together. On large single machines, a single instance often goes further than expected: I/O threads lift throughput, and hundreds of gigabytes fit in memory.

Which machine fits?

Memory first, with fork headroom, then fast cores for the main thread.

Data setMachineMemory
Up to 20 GB cacheESSENTIAL-232 GB DDR4
Up to 40 GB with persistenceESSENTIAL-S64 GB DDR5
Up to 80 GBESSENTIAL-6128 GB DDR4
Up to 170 GBESSENTIAL-9256 GB DDR4

ESSENTIAL-9 offers 256 GB DDR4 for $153.00 a month, a very low cost per gigabyte of memory. For three-node Sentinel setups, three ESSENTIAL-2 machines in different data centres such as Roubaix, Strasbourg and Frankfurt spread the risk.

How do I back it up?

Copy the latest RDB file, which is consistent by design, to another machine on a schedule. Test that it loads into a spare instance. Our Valkey servers page covers the BSD-licensed alternative, and Ship database dumps to a second server shows a way to keep copies off the server.

Machines for Redis

Lowest monthly price of each model across its data centres; the model page shows the price in every location.

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-2Intel Xeon-E 2388G832 GB2x 512 GB SSD NVMe1 Gbps unmetered$43.20
ESSENTIAL-SAMD Ryzen 7 9700X864 GB2x 512 GB SSD NVMe1 Gbps unmetered$46.20
ESSENTIAL-4AMD EPYC 73131664 GB2x 960 GB SSD NVMe1 Gbps unmetered$106.20
ESSENTIAL-6Intel Xeon Gold 6312U24128 GB2x 960 GB SSD NVMe1 Gbps unmetered$139.80
ESSENTIAL-9AMD EPYC 764248256 GB2x 480 GB SSD SATA1 Gbps unmetered$153.00
BUSINESS-5 2024AMD EPYC 8224P2496 GB2x 960 GB SSD NVMe3 Gbps unmetered$280.20

Pick memory for the data set plus fork headroom; ECC is standard on every model.

See all servers and prices

Related pages

Valkey servers

Run Valkey, the open-source in-memory data store, on bare metal: I/O threads across cores, clusters, persistence, moving over from Redis and sizing.

Read more

Database servers

NVMe machines with large memory for PostgreSQL, MySQL, MariaDB and MongoDB, from a single primary to replicated pairs.

Read more

Ship database dumps to a second server

Schedule compressed, encrypted MariaDB or PostgreSQL dumps and send them to a Storage machine elsewhere, with retention and restore tests.

Read more

ECC 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 more

Questions and answers

How much memory should a Redis server have?

For busy instances with persistence, plan 1.5 to 2 times maxmemory, because background saves fork the process and copy changed pages.

Should I use RDB or AOF persistence?

RDB snapshots are compact but lose data since the last snapshot; AOF with appendfsync everysec loses about a second at most. Many setups use both.

How does Redis Sentinel work?

Three Sentinel processes watch a primary and its replicas and promote a replica if the primary fails, using a quorum of two.

When do I need Redis Cluster?

When one machine's memory or main thread is not enough. Cluster spreads 16,384 hash slots over several primaries with replicas.

Is Redis open source?

Redis 8 offers the AGPLv3 open-source licence as one of its licence options, alongside its source-available licences.