Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Huan Wang committed Feb 15, 2022
1 parent 80c0a57 commit f362920
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# nomad-ha-redis-example
Showing to deploy HA redis on nomad.
example to deploy HA redis on nomad.

## what

It contains two different replication monitoring systems, [resec](https://github.com/YotpoLtd/resec) and [sentinel](https://redis.io/topics/sentinel)

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

## how

the setup uses [levant](https://github.com/hashicorp/levant/releases/tag/v0.3.0) 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](https://www.nomadproject.io/docs/job-specification/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

0 comments on commit f362920

Please sign in to comment.