Skip to content

fredwangwang/nomad-ha-redis-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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