Skip to content

Redis sentinel #382

Answered by scart88
ile asked this question in Q&A
Jul 11, 2023 · 2 comments
Discussion options

You must be logged in to vote

Hey @ile,

I've been working on a solution for High Availability Redis using 1 master, 2 replicas and 3 sentinels.

It's not a perfect solution, so if anyone is interested in improving it, that's welcomed.

In this setup, I'm using 3 Proxmox nodes connected in a Private VLAN/28 and my VMs can talk/ping to each other using private IPv4 addresses, however, you are free to use any cloud VM that has a VPC.

# Use accessory services (secrets come from .env).
accessories:
  redis_master:
    image: redis:7.0
    host: 10.4.0.30
    port: "10.4.0.30:6379:6379"
    add-host: 10.4.0.30
    cmd: 'redis-server /data/redis.conf'
    files:
      - config/redis/redis.conf:/redis_master/redis.conf
    dire…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ile
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants