Subversion Repositories configs

Rev

Go to most recent revision | Details | 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
16
; http://php.net/manual/en/memcached.configuration.php
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.
80
; If this value is positive and sess_remove_failed is enabled
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
; In addition to this memcached.use_sasl needs to be on
106
;memcached.sess_sasl_username = NULL
107
 
108
; Session SASL password
109
;memcached.sess_sasl_password = NULL
110
 
111
; Set the compression type
112
; valid values are: fastlz, zlib
113
; the default is fastlz
114
;memcached.compression_type = "fastlz"
115
 
116
; Compression factor
117
; Store compressed value only if the compression
118
; factor (saving) exceeds the set limit.
119
;
120
;  store compressed if:
121
;    plain_len > comp_len * factor
122
;
123
; the default value is 1.3 (23% space saving)
124
;memcached.compression_factor = "1.3"
125
 
126
; The compression threshold
127
;
128
; Do not compress serialized values below this threshold.
129
; the default is 2000 bytes
130
;memcached.compression_threshold = 2000
131
 
132
; Set the default serializer for new memcached objects.
133
; valid values are: php, igbinary, json, json_array, msgpack
134
;
135
; json - standard php JSON encoding. This serializer
136
;        is fast and compact but only works on UTF-8
137
;        encoded data and does not fully implement
138
;        serializing. See the JSON extension.
139
; json_array - as json, but decodes into arrays
140
; php - the standard php serializer
141
; igbinary - a binary serializer
142
; msgpack - a cross-language binary serializer
143
;
144
; The default is igbinary if available, then msgpack if available, then php otherwise.
145
;memcached.serializer = "igbinary"
146
 
147
; The amount of retries for failed store commands.
148
; This mechanism allows transparent fail-over to secondary servers when
149
; set/increment/decrement/setMulti operations fail on the desired server in a multi-server
150
; environment.
151
; the default is 2
152
;memcached.store_retry_count = 2
153
 
154
; Sets the default for consistent hashing for new connections.
155
; (To configure consistent hashing for session connections,
156
; use memcached.sess_consistent_hash instead)
157
;
158
; If set to On, consistent hashing (libketama) is used
159
; for session handling.
160
; When consistent hashing is used, one can add or remove cache
161
; node(s) without messing up too much with existing keys
162
; default is Off
163
;memcached.default_consistent_hash = Off
164
 
165
; Sets the default memcached protocol for new connections.
166
; (To configure the memcached protocol for connections used by sessions,
167
; use memcached.sess_binary_protocol instead)
168
;
169
; If set to On, the memcached binary protocol is used by default.
170
; If set to Off, the memcached text protocol is used.
171
; Default is Off
172
;memcached.default_binary_protocol = Off
173
 
174
; Sets the default memcached connection timeout for new connections.
175
; (To configure the memcached connection timeout for sessions,
176
; use memcached.sess_connect_timeout instead)
177
; In non-blocking mode this changes the value of the timeout.
178
; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
179
; Specifying 0 means using the memcached library's default connection timeout.
180
; Default is 0.
181
;memcached.default_connect_timeout = 0