mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 13:28:34 +00:00
feat: added sentinel sink
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
## Sink for Redis Sentinel
|
||||
|
||||
1. Create a `.env` from `.env.example`
|
||||
2. The HOST_IP value must be your host ip, so that redis inside the containers can connect to it and switch over as needed.
|
||||
|
||||
To test Sentinel is working correctly
|
||||
|
||||
1. Run
|
||||
|
||||
```
|
||||
docker exec -it sentinel-2 redis-cli -p 26379 sentinel get-master-addr-by-name mymaster
|
||||
```
|
||||
|
||||
2. Run
|
||||
|
||||
```
|
||||
docker-compose -f docker-compose.sentinel.yml stop redis-master
|
||||
```
|
||||
|
||||
3. Again running step 1 should show the other replica port.
|
||||
Reference in New Issue
Block a user