LSMCD activated short time, after 30 mins Connection Test will be failed.

#1
Sorry for my poor English.
I tried to use LSMCD for the object cache.
But it something wrong that after 30 mins Connection Test will be failed.

Here is the step list what I did.
1. Use CyberPanel then install OpenLiteSpeed for webpage server.
2. While install OpenLiteSpeed , also install Memcached Extension and Redis Extension .
3. According to some webpages, I should stop Memcached Extension first that prevent some problems.

Code:
systemctl stop memcached.service
systemctl disable memcached.service
※My distributions is CentOS8

Then follow the install steps with "Compiling/Installing LSMCD"
  1. Code:
    yum groupinstall "Development Tools"
    yum install autoconf automake zlib-devel openssl-devel expat-devel pcre-devel libmemcached-devel cyrus-sasl*
  2. Code:
    git clone https://github.com/litespeedtech/lsmcd.git
  3. Code:
    cd lsmcd
    ./fixtimestamp.sh
    ./configure CFLAGS=" -O3" CXXFLAGS=" -O3"
    make
  4. Code:
    sudo make install
  5. vi /usr/local/lsmcd/conf/node.conf
Code:
Repl.HeartBeatReq=30[/INDENT]
[INDENT=2]Repl.HeartBeatRetry=3000[/INDENT]
[INDENT=2]Repl.MaxTidPacket=2048000[/INDENT]
[INDENT=2]Repl.GzipStream=YES[/INDENT]
[INDENT=2]Repl.LbAddrs=127.0.0.1:12340[/INDENT]
[INDENT=2]Repl.ListenSvrAddr=127.0.0.1:12340[/INDENT]
[INDENT=2]REPL.DispatchAddr=127.0.0.1:5501[/INDENT]
[INDENT=2]RepldSockPath=/tmp/repld.usock[/INDENT]
[INDENT=2]CACHED.PRIADDR=127.0.0.1:11000[/INDENT]
[INDENT=2][/INDENT]
[INDENT=2]CACHED.ADDR=127.0.0.1:11211[/INDENT]
[INDENT=2]#CACHED.ADDR=UDS:///tmp/lsmcd.sock[/INDENT]
[INDENT=2]#default is 8, it can be bigger depending on cache data amount[/INDENT]
[INDENT=2]Cached.Slices=8[/INDENT]
[INDENT=2]Cached.Slice.Priority.0=100[/INDENT]
[INDENT=2]Cached.Slice.Priority.1=100[/INDENT]
[INDENT=2]Cached.Slice.Priority.2=100[/INDENT]
[INDENT=2]Cached.Slice.Priority.3=100[/INDENT]
[INDENT=2]Cached.Slice.Priority.4=100[/INDENT]
[INDENT=2]Cached.Slice.Priority.5=100[/INDENT]
[INDENT=2]Cached.Slice.Priority.6=100[/INDENT]
[INDENT=2]Cached.Slice.Priority.7=100[/INDENT]
[INDENT=2][/INDENT]
[INDENT=2]Cached.ShmDir=/dev/shm/lsmcd[/INDENT]
[INDENT=2]Cached.UseSasl=false[/INDENT]
[INDENT=2]Cached.DataByUser=true[/INDENT]
[INDENT=2]Cached.Anonymous=false[/INDENT]
[INDENT=2]#Cached.SaslDB=/etc/sasllsmcd[/INDENT]
[INDENT=2][/INDENT]
[INDENT=2]##this is the global setting, no need to have per slice configuration.[/INDENT]
[INDENT=2]User=nobody[/INDENT]
[INDENT=2]Group=nobody[/INDENT]
[INDENT=2]#depends CPU core[/INDENT]
[INDENT=2]CachedProcCnt=1[/INDENT]
[INDENT=2]CachedSockPath=/tmp/cached.usock.[/INDENT]
[INDENT=2]TmpDir=/tmp/lsmcd[/INDENT]
[INDENT=2]LogLevel=notice[/INDENT]
[INDENT=2]#LogLevel=dbg_medium[/INDENT]
[INDENT=2]LogFile=/tmp/lsmcd.log[/INDENT]
[INDENT=2][/INDENT]
[INDENT=2]6.[CODE]sudo systemctl enable lsmcd[/INDENT]
[INDENT=2]sudo systemctl start lsmcd
7.
Code:
systemctl status lsmcd
Code:
lsmcd.service - LSB: lsmcd[/INDENT]
[INDENT=2]Loaded: loaded (/etc/rc.d/init.d/lsmcd; generated)[/INDENT]
[INDENT=2]Active: active (running) since Sun 2021-06-27 07:57:00 UTC; 3h 44min ago[/INDENT]
[INDENT=2]Docs: man:systemd-sysv-generator(8)[/INDENT]
[INDENT=2]Tasks: 3 (limit: 5794)[/INDENT]
[INDENT=2]Memory: 5.3M[/INDENT]
[INDENT=2]CGroup: /system.slice/lsmcd.service[/INDENT]
[INDENT=2]         ├─1273 /usr/local/lsmcd/bin/lsmcd -f /usr/local/lsmcd/conf/node.conf[/INDENT]
[INDENT=2]         ├─1280 /usr/local/lsmcd/bin/lsmcd[/INDENT]
[INDENT=2]         └─2736 /usr/local/lsmcd/bin/lsmcd[/INDENT]
[INDENT=2][/INDENT]
[INDENT=2]Jun 27 07:56:58 hwsrv-888106.hostwindsdns.com systemd[1]: Starting LSB: lsmcd...[/INDENT]
[INDENT=2]Jun 27 07:57:00 hwsrv-888106.hostwindsdns.com lsmcd[1231]: start lsmcd         >[/INDENT]
[INDENT=2]Jun 27 07:57:00 hwsrv-888106.hostwindsdns.com systemd[1]: Started LSB: lsmcd.[/INDENT]
[INDENT=2][/INDENT]
[INDENT=2]8. [CODE]telnet 127.0.0.1 11211
then input
Code:
stats
It should be list some services(?), but right now it just only
Code:
telnet: connect to address 127.0.0.1: Connection timed out
messages.​
9.
Code:
/usr/local/lsmcd/bin/lsmcd -v
Code:
lsmcd server 1.4.24

That's all.

Did I missed something?
Actually, at the beginning it worked! But after 30 mins, the Connection Test become failed and load pages be very heavy.
I'd like to use OpenLiteSpeed (or LiteSpeed)+LiteSpeed Cache+LSMCD(For Object Cache )
Could someone help me to solve this problem?
 
Last edited:
Top