@@ -12,11 +12,17 @@ memcached.sess_locking = On
12
12
13
13
; The minimum time, in milliseconds, to wait between session lock attempts.
14
14
; This value is double on each lock retry until memcached.sess_lock_wait_max
15
- ; is reached
16
- memcached.sess_lock_wait_min = 0;
15
+ ; is reached, after which any further retries will take sess_lock_wait_max seconds.
16
+ ; Default is 1000.
17
+ memcached.sess_lock_wait_min = 1000;
17
18
18
19
; The maximum time, in milliseconds, to wait between session lock attempts.
19
- memcached.sess_lock_wait_max = 0;
20
+ ; Default is 2000.
21
+ memcached.sess_lock_wait_max = 2000;
22
+
23
+ ; The number of times to retry locking the session lock, not including the first attempt.
24
+ ; Default is 5.
25
+ memcached.sess_lock_retries = 5;
20
26
21
27
; The time, in seconds, before a lock should release itself.
22
28
; Setting to 0 results in the default behaviour, which is to
@@ -29,16 +35,24 @@ memcached.sess_lock_expire = 0;
29
35
; the default value is "memc.sess.key."
30
36
memcached.sess_prefix = " memc.sess.key."
31
37
38
+ ; Whether or not to re-use the memcached connections corresponding to the value(s)
39
+ ; of session.save_path after the execution of the script ends.
40
+ ; Don't use this if certain settings (e.g. SASL settings, sess_binary_protocol) would
41
+ ; be overridden between requests.
42
+ ; Default is Off.
43
+ memcached.sess_persistent = Off
44
+
32
45
; memcached session consistent hash mode
33
46
; if set to On, consistent hashing (libketama) is used
34
47
; for session handling.
35
48
; When consistent hashing is used, one can add or remove cache
36
49
; node(s) without messing up too much with existing keys
37
- ; default is Off
38
- memcached.sess_consistent_hash = Off
50
+ ; default is On
51
+ memcached.sess_consistent_hash = On
39
52
40
- ; Allow failed memcached server to automatically be removed
41
- memcached.sess_remove_failed = 1
53
+ ; Allow failed memcached server to automatically be removed.
54
+ ; Default is Off. (In previous versions, this setting was called memcached.sess_remove_failed)
55
+ memcached.sess_remove_failed_servers = Off
42
56
43
57
; Write data to a number of additional memcached servers
44
58
; This is "poor man's HA" as libmemcached calls it.
@@ -57,7 +71,7 @@ memcached.sess_binary = Off
57
71
memcached.sess_randomize_replica_read = Off
58
72
59
73
; memcached connect timeout value
60
- ; In non-blocking mode this changes the value of the timeout
74
+ ; In non-blocking mode this changes the value of the timeout
61
75
; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
62
76
memcached.sess_connect_timeout = 1000
63
77
0 commit comments