Moodle Redis enable

Moodle Redis enable

by Chamin Udawatte -
Number of replies: 1

 Hello All,

I'm running a Moodle setup in a clustered environment where we are going to add Azure Redis as session management.

Moodle Server configurations are Red hat Linux 7.9, PHP 7.4 ,MSSQL, Moodle 3.9

I just installed php74-php-phpiredis.x86_64 on the server to enable redis but it didn't enabled the Redis.


It's really appreciate if anyone can help to resolve this.

What is the correct driver that should be installed in order to make this enable.

following configs were made on moodle config file. 

$CFG->session_handler_class = '\core\session\redis';

$CFG->session_redis_host = 'redisServer.redis.cache.windows.net';

$CFG->session_redis_port = 6380;  // Optional.

$CFG->session_redis_database = 0;  // Optional, default is db 0.

$CFG->session_redis_auth = ''; // Optional, default is don't set one.

$CFG->session_redis_prefix = ''; // Optional, default is don't set one.

$CFG->session_redis_acquire_lock_timeout = 120;

$CFG->session_redis_acquire_lock_retry = 100; // Optional, default is 100ms (from 3.9)

$CFG->session_redis_lock_expire = 7200;

$CFG->session_redis_serializer_use_igbinary = false; // Optional, default is PHP builtin serializer.

 




 


Average of ratings: -