-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Huan Wang
committed
Feb 15, 2022
1 parent
80c0a57
commit f362920
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |