How does phpredis session locking work internally? Does it store a value internally and keep checking it? If I have a high redis.session.lock_retries
will that put load on the server if it takes 10 seconds to get a lock and had to try thousands of times?
Below are the configuration parameters.
; Should the locking be enabled? Defaults to: 0.
redis.session.locking_enabled = 1
; How long should the lock live (in seconds)? Defaults to: value of max_execution_time.
redis.session.lock_expire = 60
; How long to wait between attempts to acquire lock, in microseconds (µs)?. Defaults to: 2000
redis.session.lock_wait_time = 50000
; Maximum number of times to retry (-1 means infinite). Defaults to: 10
redis.session.lock_retries = 10