Databases13 min read•Updated November 2026

AMD EPYC VPS for Redis and Caching

Quick answer

Give Redis its own AMD EPYC VPS when caching or queues outgrow the application server's memory, or when several app servers share one cache. Size RAM for your dataset plus 20–30% for fragmentation, connections and persistence forks, set maxmemory below that, and choose eviction and persistence by role: a pure cache uses allkeys-lru with persistence off; queues and sessions use noeviction with AOF. Restrict access to your app servers' IPs, require a password or ACL users, encrypt traffic that crosses the public network, and add a replica with Sentinel if the cache must survive a server failure.

Our Redis deployment guide covers installing Redis next to an application. This guide is about the next step: a dedicated Redis server that several application servers share, sized and configured for its role, with security and high availability considered from the start.

When to Separate Redis

  • The cache competes with the database or application for memory.
  • You run several application servers that must share sessions, cache and queues.
  • You want to restart or resize the application server without losing cache warmth.
  • Queues are critical and need their own monitoring and persistence settings.

Decide the Role First

RoleData loss acceptable?maxmemory-policyPersistence
Page/object cacheYes, it can be rebuiltallkeys-lru or allkeys-lfuOff, or RDB snapshots for warm restarts
SessionsMinimise (users get logged out)volatile-lru with TTLs, or noevictionAOF everysec
Job queuesNonoevictionAOF everysec
Rate limiting, countersUsually yesvolatile-ttlOptional

Mixing a disposable cache and a critical queue in one instance forces a compromise. Running two Redis instances (two ports or two containers) on the same server, each configured for its role, is simple and avoids evicting jobs to make room for cache entries.

Sizing Memory

  1. Measure current usage: redis-cli INFO memory shows used_memory and the fragmentation ratio.
  2. Estimate growth over the next year.
  3. Add 20–30% for fragmentation, client buffers and replication buffers.
  4. If you use RDB snapshots or AOF rewrites, Redis forks; copy-on-write can temporarily need extra memory proportional to how much data changes during the save.
  5. Set maxmemory to leave room for all of the above plus the OS.

Example: a 6 GB dataset with persistence fits comfortably on a 16 GB server with maxmemory 10gb.

CPU Considerations

Redis executes commands on one main thread, so per-core speed matters more than core count for raw command throughput. Redis 6 and later can use I/O threads for network handling (io-threads), which helps at high connection counts. Extra vCores also serve persistence forks, the OS and any second instance. Avoid slow commands on large keys (KEYS *, huge SMEMBERS) that block the main thread; use SCAN instead.

Configuration for a Dedicated Server

# /etc/redis/redis.conf (cache instance)
bind 0.0.0.0 -::*          # listen on the network; the firewall restricts who connects
protected-mode yes
requirepass use-a-long-random-password   # or ACL users, below
maxmemory 10gb
maxmemory-policy allkeys-lru
save ""                    # no RDB snapshots for a pure cache
appendonly no
tcp-keepalive 60

For queues and sessions, use maxmemory-policy noeviction, appendonly yes and appendfsync everysec instead.

ACL Users

ACL SETUSER app on >another-long-password ~cache:* +@read +@write -@dangerous
ACL SETUSER admin on >admin-password ~* +@all

Give each application its own user restricted to its key prefix and command categories, and keep administrative access separate. Persist ACLs with an ACL file or ACL SAVE.

Network Security

  • Allow port 6379 only from your application servers' IPs (see our UFW guide): sudo ufw allow from APP_IP to any port 6379 proto tcp.
  • Never expose Redis to the whole internet; exposed instances are scanned and abused within minutes.
  • Encrypt traffic that crosses the public network: Redis supports TLS (tls-port, certificates) when built with TLS, or run traffic through a WireGuard tunnel between servers.
  • Rename or disable dangerous commands for application users through ACLs rather than relying on obscurity.

High Availability with a Replica and Sentinel

A single Redis server is a single point of failure. For sessions and queues that must survive a server failure:

  1. Run a replica on a second server: replicaof PRIMARY_IP 6379 with masterauth set.
  2. Run three Redis Sentinel processes (for example on the primary, the replica and an app server) that monitor the primary and agree on failover.
  3. Use a client library that discovers the current primary through Sentinel.

For a disposable cache, a replica is often unnecessary: the application can rebuild the cache from the database after a restart, at the cost of slower responses for a while.

Operating System Settings

# /etc/sysctl.d/90-redis.conf
vm.overcommit_memory = 1
net.core.somaxconn = 1024

Redis's own startup log warns about settings it wants changed, including transparent huge pages; follow its recommendations. Disable swap use for Redis where possible: a swapped cache is slower than no cache.

What to Monitor

MetricSourceWatch for
Used memory vs maxmemoryINFO memoryApproaching the limit
Evicted keysINFO statsRising evictions mean the cache is too small (or a queue is being evicted)
Hit ratiokeyspace_hits / (hits + misses)Falling ratio
Connected clientsINFO clientsLeaks from apps not closing connections
Latencyredis-cli --latency, LATENCY DOCTORSpikes from slow commands or forks
Replication lagINFO replicationGrowing offset difference

The Prometheus Redis exporter feeds these into dashboards and alerts (see our monitoring guide).

Client-Side Settings Matter Too

Applications should use connection pools rather than opening a connection per request, set short connect and command timeouts so a Redis problem degrades gracefully, and treat cache misses and errors as a normal path that falls back to the database. Use key prefixes per application and TTLs on cache entries so memory is reclaimed predictably.

Upgrading Redis

Read the release notes, upgrade the replica first, fail over, then upgrade the old primary. For a single cache instance, upgrade during a quiet period and expect the cache to warm up again.

Dedicated Redis Checklist

  1. Role decided: cache, sessions or queues, with matching eviction and persistence.
  2. maxmemory set with headroom for forks and buffers.
  3. Port restricted to app server IPs; ACL users with passwords.
  4. Traffic encrypted across public networks.
  5. Memory, evictions, hit ratio and latency monitored.

In Short

Decide the role, size memory with headroom, lock down the network, and monitor evictions and latency; a dedicated Redis server then quietly speeds up everything that uses it.

SkyRainCloud Plans for This Workload

Redis is memory-bound and mostly single-threaded for commands, so buy RAM first: the 16 GB and 32 GB EPYC plans make good dedicated cache servers. Leave memory free for persistence forks and the OS.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

When should Redis have its own server?
When it competes with the app or database for memory, when several app servers share it, or when queues need dedicated monitoring and persistence.
How much RAM should a Redis server have?
Your dataset plus growth, plus 20–30% for fragmentation and buffers, plus headroom for persistence forks and the OS. Set maxmemory below the total.
Which eviction policy should I use?
allkeys-lru or allkeys-lfu for a pure cache; noeviction for queues and other data you cannot lose.
Should a cache use persistence?
A pure cache can run without it, or with RDB snapshots for faster warm restarts. Queues and sessions should use AOF.
Is Redis multi-threaded?
Command execution is single-threaded; Redis 6 and later can use I/O threads for networking. Per-core speed matters for command throughput.
How do I secure a remote Redis server?
Allow the port only from app server IPs, require passwords or ACL users, and encrypt traffic over the public network with TLS or WireGuard.
How do I make Redis highly available?
Run a replica on a second server and three Sentinel processes to handle automatic failover, with clients that discover the primary through Sentinel.
Can I run cache and queues in one Redis?
It works but forces one eviction policy. Two instances, one for cache and one for queues, avoid evicting jobs.
What should I monitor in Redis?
Memory versus maxmemory, evictions, hit ratio, client count, latency and replication lag.
Which EPYC plan suits a dedicated Redis server?
16 GB or 32 GB EPYC plans, chosen by dataset size plus overhead; Redis needs memory far more than vCores.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning