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 Sentinel

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

1.9 GiB

6 services, 15 GB disk

$10.75/mo

flat resource

$0.054/h

Usage Billing

What is Redis Sentinel?

Redis Sentinel adds high availability to Redis: if the master goes down, the sentinels detect it, elect a new master from the replicas, and reconfigure the topology automatically. This template runs one master, two replicas, and three sentinels (quorum 2) - the standard HA layout.

One image plays all three roles, selected by an environment variable; the entrypoint builds each node’s command and the sentinel config from env. Sentinels are configured to resolve hostnames (service DNS) rather than raw IPs, which is what makes failover report a usable address on a multi-pod network. Verified locally: the master sees both replicas and all three sentinels agree.

Clients connect through Sentinel, not the master directly - a Sentinel-aware client (ioredis, redis-py, Lettuce, go-redis) asks a sentinel for the current master and is rerouted automatically on failover.

What you get

  • Automatic failover: replica promoted when the master dies
  • One master, two replicas, three sentinels (quorum 2)
  • Hostname-based discovery - works on a multi-pod network
  • Transparent to Sentinel-aware clients
  • All internal-only, password-protected
  • Redis 8 is AGPL-3.0

How it runs on Lyngbak

ServiceRolePublic
redis-masterprimary (:6379)no (internal)
redis-replica-1/2replicas (failover targets)no
redis-sentinel-1/2/3monitors + electors (:26379)no

Before you deploy

  • REDIS_PASSWORD

    shared by master, replicas, and sentinel auth

Sizing and billing

Master and replicas hold the full dataset in memory (size accordingly); sentinels are tiny (128 MiB). Six services, all internal.

Hobby resource$10.75/mo1 vCPU, 1 GiB + 1 GiB RAM add-on, 15 GiB disk incl. add-on, shared CPU
Pro resource$25.75/mo1 vCPU, 2 GiB, 15 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 14.65 GiB of volumes cost $0.15 per GiB a month ($2.20/mo) for as long as they exist. One workspace can use both. See pricing

Compared with the managed service

ServicePlanPriceIncludes
AWS ElastiCacheMulti-AZ (2 nodes)$24/moprimary + replica on-demand/mo for the smallest size
Redis CloudHA (multi-AZ)$28/mohighly-available tier, scales with memory

Managed HA caches bill per node per AZ; this runs the whole failover topology in 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

When should I use Sentinel vs Cluster?

Sentinel gives you high availability (automatic failover) for a single dataset that fits on one node. Use redis-cluster instead when the data or throughput exceeds one node and you need sharding across multiple masters.

How do clients connect?

Through Sentinel, not the master directly. Point a Sentinel-aware client at redis-sentinel-1:26379, redis-sentinel-2:26379, redis-sentinel-3:26379 with master name "mymaster"; the client discovers the current master and follows failovers.

Does failover actually work on a shared platform?

Yes - the sentinels resolve service hostnames instead of pod IPs, so after a promotion they report a DNS name clients can reach. This template was smoke-tested locally: master with two connected replicas and three mutually-aware sentinels.

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 Cluster

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

Open the template →

Valkey

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

Open the template →
Redis Sentinel (HA failover) on Lyngbak | Lyngbak (formerly Miget)