Session lock issue with Redis

Session lock issue with Redis

by sayooj v v -
Number of replies: 0

We are having issues with Session lock:

We are using two EC2 servers for load balancing, RDS, Redis for session.

Wed Nov 18 08:17:44.370742 2020] [php7:notice] [pid 32241] [client 10.0.0.198:34290] Cannot obtain session lock for sid: jkhpf6lsotojbfiv18l4s81chr within 120 seconds. It is likely another page ([pid 31870] ip-10-0-1-230:/mod/bigbluebuttonbn/view.php?id=3327) has a long session lock, or the session lock was never released.,

// Redis session handler (requires redis server and redis extension):
$CFG->session_handler_class = '\core\session\redis';
$CFG->session_redis_host = '******.*****.ng.0001.mes1.cache.amazonaws.com';
$CFG->session_redis_port = 6379; // 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_lock_expire = 7200;
$CFG->session_redis_serializer_use_igbinary = true; // Optional, default is PHP builtin serializer.


Is there any solution?

Average of ratings: -