Subversion Repositories configs

Rev

Rev 208 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
208 - 1
; Enable memcached extension module
2
extension=memcached.so
3
 
4
; ----- Options to use the memcached session handler
5
 
6
; RPM note : save_handler and save_path are defined
7
; for mod_php, in /etc/httpd/conf.d/php.conf
8
; for php-fpm, in /etc/php-fpm.d/*conf
9
 
10
;  Use memcache as a session handler
11
;session.save_handler=memcached
12
;  Defines a comma separated list of server urls to use for session storage
13
;session.save_path="localhost:11211"
14
 
15
; ----- Configuration options
209 - 16
; https://php.net/manual/en/memcached.configuration.php
208 - 17
 
18
[memcached]
19
; Use session locking
20
; valid values: On, Off
21
; the default is On
22
;memcached.sess_locking = On
23
 
24
; The minimum time, in milliseconds, to wait between session lock attempts.
25
; This value is double on each lock retry until memcached.sess_lock_wait_max
26
; is reached, after which any further retries will take sess_lock_wait_max seconds.
27
; Default is 150.
28
;memcached.sess_lock_wait_min = 150;
29
 
30
; The maximum time, in milliseconds, to wait between session lock attempts.
31
; Default is 150.
32
;memcached.sess_lock_wait_max = 150;
33
 
34
; The number of times to retry locking the session lock, not including the first attempt.
35
; Default is 5.
36
;memcached.sess_lock_retries = 5;
37
 
38
; The time, in seconds, before a lock should release itself.
39
; Setting to 0 results in the default behaviour, which is to
40
; use PHP's max_execution_time.
41
;memcached.sess_lock_expire = 0;
42
 
43
; memcached session key prefix
44
; valid values are strings less than 219 bytes long
45
; the default value is "memc.sess.key."
46
;memcached.sess_prefix = "memc.sess.key."
47
 
48
; Whether or not to re-use the memcached connections corresponding to the value(s)
49
; of session.save_path after the execution of the script ends.
50
; Don't use this if certain settings (e.g. SASL settings, sess_binary_protocol) would
51
; be overridden between requests.
52
; Default is Off.
53
;memcached.sess_persistent = Off
54
 
55
; memcached session consistent hash mode
56
; if set to On, consistent hashing (libketama) is used
57
; for session handling.
58
; When consistent hashing is used, one can add or remove cache
59
; node(s) without messing up too much with existing keys
60
; default is On
61
;memcached.sess_consistent_hash = On
62
 
63
; memcached session consistent hash type
64
; if set to 'ketama', consistent hashing (libketama) is used
65
; for session handling (default for php-memcached 3.x)
66
; if set to 'ketama_weighted', weighted consistent hashing (libketama) is used
67
; for session handling (default for php-memcached 2.x)
68
;memcached.sess_consistent_hash_type = "ketama"
69
 
70
; Allow failed memcached server to automatically be removed.
71
; Default is Off. (In previous versions, this setting was called memcached.sess_remove_failed)
72
;memcached.sess_remove_failed_servers = Off
73
 
74
; Set this value to enable the server be removed after
75
; configured number of continuous times connection failure.
76
;memcached.sess_server_failure_limit = 0
77
 
78
; Write data to a number of additional memcached servers
79
; This is "poor man's HA" as libmemcached calls it.
209 - 80
; If this value is positive and sess_remove_failed_servers is enabled
208 - 81
; when a memcached server fails the session will continue to be available
82
; from a replica. However, if the failed memcache server
83
; becomes available again it will read the session from there
84
; which could have old data or no data at all
85
;memcached.sess_number_of_replicas = 0
86
 
87
; Use the memcached binary protocol for memcached sessions (Instead of the text protocol)
88
; libmemcached replicas work only if binary mode is enabled.
89
; However, certain proxies (such as twemproxy) will work only if the binary protocol is disabled.
90
; In older versions of php-memcached, this setting was Off and was called memcached.sess_binary.
91
; Default is On with libmemcached 1.0.18 or newer.
92
; Default is Off with older version.
93
;memcached.sess_binary_protocol = On
94
 
95
; memcached session replica read randomize
96
;memcached.sess_randomize_replica_read = Off
97
 
98
; memcached connect timeout value
99
; In non-blocking mode this changes the value of the timeout
100
; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
101
;memcached.sess_connect_timeout = 1000
102
 
103
; Session SASL username
104
; Both username and password need to be set for SASL to be enabled
105
;memcached.sess_sasl_username = NULL
106
 
107
; Session SASL password
108
;memcached.sess_sasl_password = NULL
109
 
110
; Set the compression type
111
; valid values are: fastlz, zlib
112
; the default is fastlz
113
;memcached.compression_type = "fastlz"
114
 
115
; Compression factor
116
; Store compressed value only if the compression
117
; factor (saving) exceeds the set limit.
118
;
119
;  store compressed if:
120
;    plain_len > comp_len * factor
121
;
122
; the default value is 1.3 (23% space saving)
123
;memcached.compression_factor = "1.3"
124
 
125
; The compression threshold
126
;
127
; Do not compress serialized values below this threshold.
128
; the default is 2000 bytes
129
;memcached.compression_threshold = 2000
130
 
131
; Set the default serializer for new memcached objects.
132
; valid values are: php, igbinary, json, json_array, msgpack
133
;
134
; json - standard php JSON encoding. This serializer
135
;        is fast and compact but only works on UTF-8
136
;        encoded data and does not fully implement
137
;        serializing. See the JSON extension.
138
; json_array - as json, but decodes into arrays
139
; php - the standard php serializer
140
; igbinary - a binary serializer
141
; msgpack - a cross-language binary serializer
142
;
143
; The default is igbinary if available, then msgpack if available, then php otherwise.
144
;memcached.serializer = "igbinary"
145
 
146
; The amount of retries for failed store commands.
147
; This mechanism allows transparent fail-over to secondary servers when
148
; set/increment/decrement/setMulti operations fail on the desired server in a multi-server
149
; environment.
209 - 150
; the default is 0
151
;memcached.store_retry_count = 0
208 - 152
 
153
; Sets the default for consistent hashing for new connections.
154
; (To configure consistent hashing for session connections,
155
; use memcached.sess_consistent_hash instead)
156
;
157
; If set to On, consistent hashing (libketama) is used
158
; for session handling.
159
; When consistent hashing is used, one can add or remove cache
160
; node(s) without messing up too much with existing keys
161
; default is Off
162
;memcached.default_consistent_hash = Off
163
 
164
; Sets the default memcached protocol for new connections.
165
; (To configure the memcached protocol for connections used by sessions,
166
; use memcached.sess_binary_protocol instead)
167
;
168
; If set to On, the memcached binary protocol is used by default.
169
; If set to Off, the memcached text protocol is used.
170
; Default is Off
171
;memcached.default_binary_protocol = Off
172
 
173
; Sets the default memcached connection timeout for new connections.
174
; (To configure the memcached connection timeout for sessions,
175
; use memcached.sess_connect_timeout instead)
176
; In non-blocking mode this changes the value of the timeout.
177
; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
178
; Specifying 0 means using the memcached library's default connection timeout.
179
; Default is 0.
180
;memcached.default_connect_timeout = 0