machinebox / issues

Machine Box issues, bugs and feature requests
2 stars 0 forks source link

Facebox support for Redis sentinels? #44

Closed jperville closed 5 years ago

jperville commented 5 years ago

I tried to use the machinebox/facebox docker image in an environment where redis instances are configured in High Availability mode using using redis-server and redis-sentinel ( https://redis.io/topics/sentinel ).

Apparently, redis sentinels are not supported. I have only found the MB_FACEBOX_REDIS environment variable which points to the redis master host and port, but I cannot tell facebox to use the sentinel protocol to locate the current redis master.

Is there a set of undocumented environment variables to make this work?

dahernan commented 5 years ago

No, we don't support sentinel connection at this moment.

Let me have a look how complicated is to support it, thanks!

dahernan commented 5 years ago

As a workaround you could setup a HAProxy if you only need HA https://community.pivotal.io/s/article/How-to-setup-HAProxy-and-Redis-Sentinel-for-automatic-failover-between-Redis-Master-and-Slave-servers

dahernan commented 5 years ago

We added MB_FACEBOX_REDIS_SENTINEL and MB_FACEBOX_REDIS_SENTINEL_MASTER in the last image, both are in the docs now, please do a pull and let us know if that worked for you

dahernan commented 5 years ago

Closing this for now, feel free to reopen in case it doesn't work