Hi guys, I have some problems with configuring Redis for my two identical moodle servers.
I have: Moodle 1 server, Moodle 2 server, load balancing server, and Redis server
I already followed the steps in the Redis cache store configuration on https://docs.moodle.org/38/en/Redis_cache_store for both my moodle servers.
The problem that I face is when I log into one of the moodle servers (for example moodle1) and successfully login, if the server (moodle1) I turn off intentionally, the load balancing server will automatically redirect to the moodle2 server but why isn't it automatically logged back in?
this is the moodle config.php on both of my server:
$CFG->session_handler_class = '\core\session\redis';
$CFG->session_redis_host = '192.168.100.251';
$CFG->session_redis_port = 6379; # Optional.
$CFG->session_redis_database = 0; # Optional, default is db 0.
$CFG->session_redis_auth = '12345'; # 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_lock_expire = 7200;