Advertisement
Guest User

t2

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