n8n
n8n copied to clipboard
✨ Add Redis Sentinel support
This PR adds Redis Sentinel support for HA using the underlying functionality of the ioredis library. It will connect to one of the supplied sentinels and get the current master. You can provide sentinels in a comma separated list in <host>:<port>
format.
- Connecting to a Sentinel
- Getting the list of other Sentinels for redundancy
- Connecting to the current master node
Example config:
DEBUG=ioredis:* \
N8N_LOG_LEVEL=debug \
N8N_DIAGNOSTICS_ENABLED=false \
EXECUTIONS_MODE=queue \
QUEUE_BULL_REDIS_PASSWORD=passw0rd \
QUEUE_BULL_SENTINEL_ENABLED=true \
QUEUE_BULL_SENTINEL_SENTINELS="redis-sentinel-1:26379,redis-sentinel-2:26379,redis-sentinel-3:26379" \
./packages/cli/bin/n8n
You can also use a Sentinel password with QUEUE_BULL_SENTINEL_PASSWORD
.
This is a first cut, I'm hoping to do more failure testing next week.
Hey @pemontto,
Thanks for the PR 🙌🏻, I have created an internal ticket for the review which we will be tracking as N8N-6149
We would like to see this implemented as well.
Hi, any ETA for this feature ?
Hey @mickaelandrieu,
No ETA at the moment, we are about to start looking into scaling in more detail though so it could be soon if we decide to stick with this approach.
Any update here?
We run a shared Redis-Sentinel Cluster for our services and want to migrate to it, instead of running dedicated Redis instances...
Same scenario as @the-nicolas, is there any help needed on this PR?