Hi there,
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.
Then I did:
※My Linux distributions is CentOS8
Then follow the install steps with "Compiling/Installing LSMCD"
1)
2)
3)
4)
5) vi /usr/local/lsmcd/conf/node.conf
6) Check activated or not
7)
8) Input
The right message should be like
But after 30~1hour
The message will be
And the CPU usage will raise to almost 100%(You can check the attachment)
9) Check LSMCD version
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? (Or maybe it's a bug?)
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.
Then I did:
Code:
systemctl stop memcached.service
systemctl disable memcached.service
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*
Code:
git clone https://github.com/litespeedtech/lsmcd.git
Code:
cd lsmcd
./fixtimestamp.sh
./configure CFLAGS=" -O3" CXXFLAGS=" -O3"
make
Code:
sudo make install
Code:
Repl.HeartBeatReq=30
Repl.HeartBeatRetry=3000
Repl.MaxTidPacket=2048000
Repl.GzipStream=YES
Repl.LbAddrs=127.0.0.1:12340
Repl.ListenSvrAddr=127.0.0.1:12340
REPL.DispatchAddr=127.0.0.1:5501
RepldSockPath=/tmp/repld.usock
CACHED.PRIADDR=127.0.0.1:11000
CACHED.ADDR=127.0.0.1:11211
#CACHED.ADDR=UDS:///tmp/lsmcd.sock
#default is 8, it can be bigger depending on cache data amount
Cached.Slices=8
Cached.Slice.Priority.0=100
Cached.Slice.Priority.1=100
Cached.Slice.Priority.2=100
Cached.Slice.Priority.3=100
Cached.Slice.Priority.4=100
Cached.Slice.Priority.5=100
Cached.Slice.Priority.6=100
Cached.Slice.Priority.7=100
Cached.ShmDir=/dev/shm/lsmcd
Cached.UseSasl=false
Cached.DataByUser=true
Cached.Anonymous=true
#Cached.SaslDB=/etc/sasllsmcd
##this is the global setting, no need to have per slice configuration.
User=nobody
Group=nobody
#depends CPU core
CachedProcCnt=1
CachedSockPath=/tmp/cached.usock.
TmpDir=/tmp/lsmcd
LogLevel=notice
#LogLevel=dbg_medium
LogFile=/tmp/lsmcd.log
Code:
systemctl status lsmcd
Code:
lsmcd.service - LSB: lsmcd
Loaded: loaded (/etc/rc.d/init.d/lsmcd; generated)
Active: active (running) since Sun 2021-06-27 07:57:00 UTC; 3h 44min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 3 (limit: 5794)
Memory: 5.3M
CGroup: /system.slice/lsmcd.service
├─1273 /usr/local/lsmcd/bin/lsmcd -f /usr/local/lsmcd/conf/node.conf
├─1280 /usr/local/lsmcd/bin/lsmcd
└─2736 /usr/local/lsmcd/bin/lsmcd
Jun 27 07:56:58 hwsrv-888106.hostwindsdns.com systemd[1]: Starting LSB: lsmcd...
Jun 27 07:57:00 hwsrv-888106.hostwindsdns.com lsmcd[1231]: start lsmcd >
Jun 27 07:57:00 hwsrv-888106.hostwindsdns.com systemd[1]: Started LSB: lsmcd.
Code:
telnet 127.0.0.1 11211
Code:
stats
Code:
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
stats
STAT pid 1300
STAT version 1.0.0
STAT pointer_size 64
STAT rusage_user 0.024294
STAT rusage_system 0.053357
STAT cmd_get 0
STAT cmd_set 0
STAT cmd_flush 0
STAT cmd_touch 0
STAT get_hits 0
STAT get_misses 0
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT touch_hits 0
STAT touch_misses 0
STAT auth_cmds 0
STAT auth_errors 0
END
The message will be
Code:
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection timed out
9) Check LSMCD version
Code:
/usr/local/lsmcd/bin/lsmcd -v
lsmcd server 1.4.24
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? (Or maybe it's a bug?)