open-lms-open-source / moodle-local_redislock

6 stars 17 forks source link

¿Support for Sentinel Cache Store? #18

Open mrkskwsnck opened 7 months ago

mrkskwsnck commented 7 months ago

Is there or will there be a way to provide a Sentinel Cache Store connection string for $CFG->local_redislock_redis_server or is hostname:port the only format supported, right now?

I am operating a Sentinel Cache Store based on a Redis cluster. For this to be used with Moodle—and without the need of a HAProxy—the plug-in moodle-cachestore_redissentinel needs to be installed. A connection string then looks like e.g.

Attribute Value
Sentinel Servers 10.0.0.1:26379,10.0.0.2:26379,10.0.0.3:26379
Sentinel Group mymaster
Key prefix myinstance_

Or maybe this very Redis locking plug-in is not needed per-se while using a Sentinel Cache Store?

mitchell-accipio commented 2 weeks ago

+1

Support for sentinel in this plugin would be great.