Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 907 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 907 Bytes

nomad-ha-redis-example

example to deploy HA redis on nomad.

what

It contains two different replication monitoring systems, resec and sentinel

Example to show how to deploy these systems (either resec or sentinel) with nomad.

how

the setup uses levant for variable rendering, and optionally deploying.

  1. cd resec or cd sentinel
  2. fill in redis.yml
  3. NOMAD_TOKEN=... levant deploy -address=$NOMAD_ADDRESS -var-file redis.yml redis.nomad

notice

the example uses ephemeral disk, which provides best effort persistence. It might be ok for some use cases, but for absolute data persistence, use host volumes or CSI. ref: https://learn.hashicorp.com/tutorials/nomad/stateful-workloads