Using redis cluster ?
Hi everybody,
Is there a way to configure to using a redis cluster ? I don't find a good configuration. All I see is we can just give one host. But if the host is down, redis can't been accessed.
Regards.
Currently only one host can be configured. See: https://github.com/simplesamlphp/simplesamlphp/blob/master/lib/SimpleSAML/Store/Redis.php#L37-L41
You can probably easily change that to allow to set multiple hosts. Here you can see that you just need to pass multiple host entries to the Client: https://github.com/nrk/predis#connecting-to-redis
A PR for this would certainly be welcome.
Is a cluster different from a redis sentinel? If not, then the work may have already been done: https://github.com/simplesamlphp/simplesamlphp/pull/701