LSMCD : Per user cache limit

Discussion in 'LiteSpeed Cache General' started by bino oetomo, Oct 4, 2018.

Tags:
  1. bino oetomo

    bino oetomo Member

    Dear All.
    Firs I apologize if this is the wrong place to ask, but I could not find any special forum for LSMCD.

    I Just compile and install LSMCD.
    Now i'm looking at the /usr/local/lsmcd/conf/node.conf.
    I want to make my lsmcd server use SASL
    Here is my current SASL part :
    Code:
    Cached.UseSasl=true
    Cached.DataByUser=true
    Cached.Anonymous=false
    #Cached.UserSize=1000
    #Cached.HashSize=500000
    #CACHED.MEMMAXSZ=0
    #CACHED.NOMEMFAIL=false
    at https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:lsmcd:configuration I only found :

    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

    My question is :
    Is 'CACHED.MEMMAXSZ' meant 'per user' or is it for the total size of all cache ?
    If it is not per user, what I have to do if I want to limit per user cache size ?

    Sincerely
    -bino-
     
    Last edited by a moderator: Oct 4, 2018
  2. Pong

    Pong Well-Known Member Staff Member

    Cached.MemMaxSz represents the maximum size of the database. If user level databases are enabled, then it's the maximum size of each user's database.
     
    bino oetomo likes this.
  3. bino oetomo

    bino oetomo Member

    Thankyou for your help.

    So, since in my config I have 'Cached.DataByUser=true', is it mean that my 'user level databases' are enabled ?
     
  4. Pong

    Pong Well-Known Member Staff Member

    yes. you are right.
     
    bino oetomo likes this.

Share This Page