Miget is now Lyngbak. Same platform, same plans, same API.Why the name →

Startups get $300 or more in Lyngbak credits.Apply →

Moving production infrastructure? We migrate it for you, free.Talk to us →

PricingEnterpriseDashboard
Start for Free
← All templates

Redis Cluster

Sharded, horizontally-scaled Redis - 3 master shards + 3 replicas, keyspace partitioned automatically.

3.1 GiB

7 services, 30 GB disk

$26.50/mo

flat resource

$0.054/h

Usage Billing

What is Redis Cluster?

Redis Cluster shards your keyspace across multiple master nodes, so capacity and throughput scale horizontally instead of being capped by a single node. This template runs six nodes - three master shards, each with one replica - and a one-shot init that forms the cluster (verified locally: cluster_state ok, all 16384 slots covered).

Each node announces its service hostname (cluster-announce-hostname + hostname endpoints) so clients and cross-slot redirects use DNS rather than raw pod IPs. The init waits for every node, then forms the cluster once and is idempotent on re-run.

Use this when a single node is not enough. If you only need failover of one dataset (no sharding), redis-sentinel is simpler; for a single node, use redis.

What you get

  • Automatic sharding across 3 master shards
  • 6 nodes (3 masters + 3 replicas) + one-shot forming init
  • Hostname-announced nodes for DNS-based routing
  • Scales capacity and throughput beyond one node
  • All internal-only, password-protected
  • Redis 8 is AGPL-3.0

How it runs on Lyngbak

ServiceRolePublic
redis-node-1..63 masters + 3 replicas (:6379)no (internal)
redis-initforms the cluster once, then exitsno

Before you deploy

  • REDIS_PASSWORD

    shared by every node and the init

Sizing and billing

Six in-memory nodes - size RAM to total dataset divided across 3 shards (plus replicas). Experimental: Cluster expects stable node identity, and a pod IP change can require a re-meet.

Hobby resource$26.50/mo2 vCPU, 2 GiB + 1.5 GiB RAM add-on, 60 GiB disk, shared CPU
Pro resource$38/mo1 vCPU, 2 GiB + 2 GiB RAM add-on, 30 GiB disk incl. add-on, dedicated CPU
Usage Billing, shared CPU$0.054/h3 vCPU, 3 GiB reserved. $39/mo for a full month, billed by the second.
Usage Billing, dedicated CPU$0.28/h6 vCPU, 12 GiB reserved. $204/mo for a full month, billed by the second.

A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 29.3 GiB of volumes cost $0.15 per GiB a month ($4.40/mo) for as long as they exist. One workspace can use both. See pricing

Compared with the managed service

ServicePlanPriceIncludes
AWS ElastiCachecluster mode (6 nodes)$72/mo3 shards + 3 replicas on-demand/mo at the smallest size
Redis CloudFlexible (sharded)Usage-basedpriced by memory + throughput across shards

Managed cluster mode bills every shard and replica; self-hosted is one stack, billed for the compute it reserves. Prices from each vendor's pricing page, June 2026.

Run it locally first

The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.

Questions

Why is it experimental?

Redis Cluster assumes stable node identities and is finicky on any per-pod platform. This template announces service hostnames so routing uses DNS, and it forms cleanly (smoke-tested), but a pod IP change can still need the cluster to re-meet. Treat it as a power-user topology.

Do my clients need changes?

Clients must be cluster-aware (ioredis, redis-py, Lettuce, go-redis all have a cluster mode). They connect to any node at redis-node-1:6379 and follow MOVED/ASK redirects to the owning shard automatically.

Cluster or Sentinel?

Cluster is for scale (sharding the keyspace across masters). Sentinel is for HA of a single dataset (failover, no sharding). If your data fits on one node, Sentinel is the simpler choice.

More in Caches & Key-Value

Redis

The in-memory data store - cache, queues, pub/sub, streams - as a single password-protected node.

Open the template →

Redis Sentinel

Highly-available Redis with automatic failover - one master, two replicas, three sentinels.

Open the template →

Valkey

The BSD-licensed, Redis-compatible in-memory store - cache, queues, streams - as a single node.

Open the template →
Redis Cluster (sharded) on Lyngbak | Lyngbak (formerly Miget)