snapshot of https://github.com/centrifugal/centrifugo.git (master, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
21
misc/redis_sentinel/readme.md
Normal file
21
misc/redis_sentinel/readme.md
Normal file
@@ -0,0 +1,21 @@
|
||||
Create local Sentinel based Redis setup consisting of 1 Sentinel and 3 Redis nodes (master, 2 replicas). Note, in production you need at least 3 Sentinels for high availability.
|
||||
|
||||
## Run
|
||||
|
||||
```
|
||||
bash start.sh
|
||||
```
|
||||
|
||||
## Emulate failover
|
||||
|
||||
Connect to Sentinel:
|
||||
|
||||
```
|
||||
redis-cli -p 26379
|
||||
```
|
||||
|
||||
And run:
|
||||
|
||||
```
|
||||
sentinel failover mymaster
|
||||
```
|
||||
Reference in New Issue
Block a user