We have a setup with :
2 php server
2 redis servers running as master/slave
1 Log server, which stores all kind of logs in elastcisearch
We want to implement automatic failover for redis servers, right now in php servers redis master address ir hardcoded.
And in log server, which has a logstash instance with redis input from master is also harcoded in logstash config.
We have installed redis sentinel on both redis servers and it's working fine.
But the problem is how to get master in php and logstash or that is not the right way.
For php I found this client wrapper https://github.com/Sparkcentral/PSRedis
But haven't found anything for logstash, I quess that I'm just searching in wrong direction
So the question is if this is the right direction if not someone could point me to it.