simplesamlphp icon indicating copy to clipboard operation
simplesamlphp copied to clipboard

Using redis cluster ?

Open svgta1 opened this issue 7 years ago • 2 comments

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.

svgta1 avatar Jan 14 '19 15:01 svgta1

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.

thijskh avatar Jan 30 '19 15:01 thijskh

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

tvdijen avatar Jan 30 '19 17:01 tvdijen