Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  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 /opt/remi/php54/root/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. ; Session spin lock retry wait time in microseconds.
  25. ; Be carefull when setting this value.
  26. ; Valid values are integers, where 0 is interpreted as
  27. ; the default value. Negative values result in a reduces
  28. ; locking to a try lock.
  29. ; the default is 150000
  30. memcached.sess_lock_wait = 150000
  31.  
  32. ; The maximum time, in seconds, to wait for a session lock
  33. ; before timing out.
  34. ; Setting to 0 results in default behavior, which is to
  35. ; use max_execution_time.
  36. memcached.sess_lock_max_wait = 0;
  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 the memcached.sess_lock_max_wait setting. If that is
  41. ; also 0, max_execution_time will be used.
  42. memcached.sess_lock_expire = 0;
  43.  
  44. ; memcached session key prefix
  45. ; valid values are strings less than 219 bytes long
  46. ; the default value is "memc.sess.key."
  47. memcached.sess_prefix = "memc.sess.key."
  48.  
  49. ; memcached session consistent hash mode
  50. ; if set to On, consistent hashing (libketama) is used
  51. ; for session handling.
  52. ; When consistent hashing is used, one can add or remove cache
  53. ; node(s) without messing up too much with existing keys
  54. ; default is Off
  55. memcached.sess_consistent_hash = Off
  56.  
  57. ; Allow failed memcached server to automatically be removed
  58. memcached.sess_remove_failed = 1
  59.  
  60. ; Write data to a number of additional memcached servers
  61. ; This is "poor man's HA" as libmemcached calls it.
  62. ; If this value is positive and sess_remove_failed is enabled
  63. ; when a memcached server fails the session will continue to be available
  64. ; from a replica. However, if the failed memcache server
  65. ; becomes available again it will read the session from there
  66. ; which could have old data or no data at all
  67. memcached.sess_number_of_replicas = 0
  68.  
  69. ; memcached session binary mode
  70. ; libmemcached replicas only work if binary mode is enabled
  71. memcached.sess_binary = Off
  72.  
  73. ; memcached session replica read randomize
  74. memcached.sess_randomize_replica_read = Off
  75.  
  76. ; memcached connect timeout value
  77. ; In non-blocking mode this changes the value of the timeout
  78. ; during socket connection in milliseconds. Specifying -1 means an infinite timeout.
  79. memcached.sess_connect_timeout = 1000
  80.  
  81. ; Session SASL username
  82. ; Both username and password need to be set for SASL to be enabled
  83. ; In addition to this memcached.use_sasl needs to be on
  84. memcached.sess_sasl_username = NULL
  85.  
  86. ; Session SASL password
  87. memcached.sess_sasl_password = NULL
  88.  
  89. ; Set the compression type
  90. ; valid values are: fastlz, zlib
  91. ; the default is fastlz
  92. memcached.compression_type = "fastlz"
  93.  
  94. ; Compression factor
  95. ; Store compressed value only if the compression
  96. ; factor (saving) exceeds the set limit.
  97. ;
  98. ; store compressed if:
  99. ; plain_len > comp_len * factor
  100. ;
  101. ; the default value is 1.3 (23% space saving)
  102. memcached.compression_factor = "1.3"
  103.  
  104. ; The compression threshold
  105. ;
  106. ; Do not compress serialized values below this threshold.
  107. ; the default is 2000 bytes
  108. memcached.compression_threshold = 2000
  109.  
  110. ; Set the default serializer for new memcached objects.
  111. ; valid values are: php, igbinary, json, json_array, msgpack
  112. ;
  113. ; json - standard php JSON encoding. This serializer
  114. ; is fast and compact but only works on UTF-8
  115. ; encoded data and does not fully implement
  116. ; serializing. See the JSON extension.
  117. ; json_array - as json, but decodes into arrays
  118. ; php - the standard php serializer
  119. ; igbinary - a binary serializer
  120. ; msgpack - a cross-language binary serializer
  121. ;
  122. ; The default is igbinary if available, then msgpack if available, then php otherwise.
  123. memcached.serializer = "igbinary"
  124.  
  125. ; Use SASL authentication for connections
  126. ; valid values: On, Off
  127. ; the default is Off
  128. memcached.use_sasl = Off
  129.  
  130. ; The amount of retries for failed store commands.
  131. ; This mechanism allows transparent fail-over to secondary servers when
  132. ; set/increment/decrement/setMulti operations fail on the desired server in a multi-server
  133. ; environment.
  134. ; the default is 2
  135. memcached.store_retry_count = 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement