https://github.com/fredwangwang/nomad-ha-redis-example
example to deploy HA redis on nomad.
https://github.com/fredwangwang/nomad-ha-redis-example
hashicorp-nomad redis redis-sentinel
Last synced: about 2 months ago
JSON representation
example to deploy HA redis on nomad.
- Host: GitHub
- URL: https://github.com/fredwangwang/nomad-ha-redis-example
- Owner: fredwangwang
- License: mit
- Created: 2022-02-15T04:44:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-15T05:09:52.000Z (over 3 years ago)
- Last Synced: 2025-02-05T05:22:52.263Z (4 months ago)
- Topics: hashicorp-nomad, redis, redis-sentinel
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nomad-ha-redis-example
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