Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:lsmcd:configuration [2018/07/23 19:55]
Robert Perper [Cached.DataByUser]
litespeed_wiki:lsmcd:configuration [2019/11/07 22:26] (current)
Robert Perper [Cached.Anonymous]
Line 65: Line 65:
 <​code>​CACHED.USESASL=TRUE</​code>​ <​code>​CACHED.USESASL=TRUE</​code>​
  
 +Once you have changed this value, you must delete your existing LSMCD files: <​code>​rm -rf /​dev/​shm/​lsmcd</​code>​
 ==== Cached.DataByUser ==== ==== Cached.DataByUser ====
-Can only be used if CACHED.USESASL=TRUE and if no replication is used.  If set to '​true',​ each SASL user will be allocated an individual set of data within the data pool.  When memcached requests are preceded by a user authorization (which is always the case unless you are using legacy code and enable the Cached.Anonymous option) the request is always for the user specified in the request whether it's a get, put, or stats.+Can only be used if CACHED.USESASL=TRUE and if no replication is used.  If set to '​true',​ each SASL user will be allocated an individual set of data within the data pool.  When memcached requests are preceded by a user authorization (which is always the case unless you are using legacy code and enable the Cached.Anonymous option) the request is always for the user specified in the request whether it's a get, put, or stats.  See the SASL wiki (above) for details on use. 
 + 
 +==== Cached.Anonymous ==== 
 +Can only be used if CACHED.USESASL=TRUE and if no replication is used.  While legacy apps (those without user/​password validation) can be made to work with this option until they'​ve all been updated, it makes the most sense if you've specified Cached.DataByUser=true. ​ If set to '​true',​ users without validation code can access the system, but operate within the common area and do not affect the user specified data areas. ​ See the SASL wiki (above) for details on use. 
 + 
 +==== Cached.SaslDB ==== 
 +Can only be used if CACHED.USESASL=TRUE and if no replication is used.  Allows you to specify a database name other than the default sasl database of /​etc/​sasldb2. ​ Recommended in very secure sensitive environments. ​ See the SASL section for use of this option, particularly with ''​saslpasswd2''​ and ''​sasldblistusers2''​.
 ==== Cached.MemMaxSz ==== ==== Cached.MemMaxSz ====
-If set to a non-zero value, it is the number of bytes that will be stored in the hash before least recently used items begin to be purged. ​+If set to a non-zero value, it is the number of bytes that will be stored in the hash before least recently used items begin to be purged. The default is 64000000. 
 +==== Cached.UserSize ==== 
 +If user level databases are turned on, the initial size of each user's database. ​ The default is 1000.
  
 ==== Cached.HashSize ==== ==== Cached.HashSize ====
 The default initial cache entry size in bytes. ​ Defaults to 500000. ​ The maximum size is controlled with Cached.MemMaxSz. The default initial cache entry size in bytes. ​ Defaults to 500000. ​ The maximum size is controlled with Cached.MemMaxSz.
 +
 +==== Cached.ValMaxSz ====
 +The maximum size of any individual entry in the cache. ​ 0 disables the limit, the default is 1000000.
 +
 +
 ===== Replicator Configurations ===== ===== Replicator Configurations =====
  
  • Admin
  • Last modified: 2018/07/23 19:55
  • by Robert Perper