×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: XML
Posted by: Roman Ignatov
Added: Nov 22, 2016 4:47 PM
Views: 7
Tags: magento
  1. <config>
  2.     <global>
  3.  
  4.         <!-- other configuration nodes -->
  5.         <session_save>db</session_save>
  6.         <redis_session>                       <!-- All options seen here are the defaults -->
  7.             <host>127.0.0.1</host>            <!-- Specify an absolute path if using a unix socket -->
  8.             <port>6379</port>
  9.             <password></password>             <!-- Specify if your Redis server requires authentication -->
  10.             <timeout>2.5</timeout>            <!-- This is the Redis connection timeout, not the locking timeout -->
  11.             <persistent></persistent>         <!-- Specify unique string to enable persistent connections. -->
  12.             <db>2</db>                        <!-- Redis database number; protection from accidental loss is improved by using a unique DB number for sessions -->
  13.             <compression_threshold>2048</compression_threshold>  <!-- Set to 0 to disable compression (recommended when suhosin.session.encrypt=on); known bug with strings over 64k: https://github.com/colinmollenhour/Cm_Cache_Backend_Redis/issues/18 -->
  14.             <compression_lib>gzip</compression_lib>              <!-- gzip, lzf or snappy -->
  15.             <log_level>4</log_level>               <!-- 0 (emergency: system is unusable), 4 (warning; additional information, recommended), 5 (notice: normal but significant condition), 6 (info: informational messages), 7 (debug: the most information for development/testing) -->
  16.             <max_concurrency>6</max_concurrency>                 <!-- maximum number of processes that can wait for a lock on one session; for large production clusters, set this to at least 10% of the number of PHP processes -->
  17.             <break_after_frontend>5</break_after_frontend>       <!-- seconds to wait for a session lock in the frontend; not as critical as admin -->
  18.             <break_after_adminhtml>30</break_after_adminhtml>
  19.             <bot_lifetime>7200</bot_lifetime>                    <!-- Bots get shorter session lifetimes. 0 to disable -->
  20.         </redis_session>
  21.  
  22.         <!-- other configuration nodes -->
  23.  
  24.     </global>
  25. </config>