Comments (12)
Hi,
I'm so sorry that we missed your earlier messages. This is a terrible oversight on our side and we'll work to address our approach to seeing messages in the github environment.
Yes, this is a bug - 0 should mean that the value is not used and the code will be updated shortly to reflect that. You should see an update here today.
If you decide to use lsmcd again, please feel free to contact me directly via email and we can avoid this kind of issue in the future.
Sorry once again, and be sure that your voice is heard!
Bob Perper
[email protected]
from lsmcd.
You just need one additional parameter on nc:
nc -U /tmp/lsmcd.sock -C
Let me know how that works out for you.
Bob Perper
[email protected]
from lsmcd.
I can see it's using this:
lsmcd/src/memcache/lsmemcache.h
Line 376 in baddf74
And it's using:
Line 702 in baddf74
Overall, it's defined here, right?
lsmcd/src/lcrepl/lcreplconf.cpp
Line 42 in baddf74
lsmcd/src/lcrepl/lcreplconf.cpp
Line 134 in baddf74
So, what's going on :-D ?
from lsmcd.
By checking the documentation, I found this.
Cached.ValMaxSz
The maximum size of any individual entry in the cache. 0 disables the limit, the default is 1000000.
What will the impact be, if I'm bumping it to ten times the value, or maybe something else?
I hope someone are able to guide me.
And so, maybe it's a good ideΓ‘ to add a comment in the logs, that DEF_VALMAXSZ ~ Cached.ValMaxSz
can be configured in the configs, and the notice is related to that.
from lsmcd.
I've changed it to 10000000 (Adding 0 to the end), but I would still like to know, why it started as a problem.
from lsmcd.
I trashed lsmcd, and replaced it with memcached. Way better performance and caching numbers. I'll close this one... I would really like to use the default option - but without any answers, it's hard to do that :-D
Thanks for a great product, anyway! π
from lsmcd.
Prioritizing it always a hard thing to master, from time to time. No hard feelings from my end. Maybe I could give it another try.
Lsmcd reported 'error' to all commands i provided to it, and therefore we switched to memcached.
Should there be a performance increasement, by using Lsmcd, instead of memcached? It won't take long time to upgrade and switch back π
from lsmcd.
There should be little performance difference between memcached and lsmcd. There are a number of advantages of lsmcd:
- Supports SASL security verification
- Supports user separation of data if using SASL.
- Designed to scale by using multiple slices.
- Persists data after a shutdown/restart as it stores it's cache in shared memory.
from lsmcd.
Hi,
I've now updated to the last version (compiled the code, and secured it's updated and so on...)
But it keeps reporting ERROR
if I connect to the socket, and trying something like stats
:
nc -U /tmp/lsmcd.sock
stats
ERROR
The service looks fine (not enabled yet, cause I need to know if it's now working as it should):
# systemctl status lsmcd -l
β lsmcd.service - LSB: lsmcd
Loaded: loaded (/etc/rc.d/init.d/lsmcd; bad; vendor preset: disabled)
Active: active (running) since Fri 2020-11-13 15:28:15 CET; 15s ago
Docs: man:systemd-sysv-generator(8)
Process: 71095 ExecStop=/etc/rc.d/init.d/lsmcd stop (code=exited, status=0/SUCCESS)
Process: 71112 ExecStart=/etc/rc.d/init.d/lsmcd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/lsmcd.service
ββ71131 ./bin/lsmcd -f /usr/local/lsmcd/conf/node.conf
ββ71133 ./bin/lsmcd
ββ71134 ./bin/lsmcd
ββ71135 ./bin/lsmcd
ββ71136 ./bin/lsmcd
ββ71137 ./bin/lsmcd
Nov 13 15:28:14 centos-16gb-fsn1-2 systemd[1]: Starting LSB: lsmcd...
Nov 13 15:28:15 centos-16gb-fsn1-2 lsmcd[71112]: start lsmcd [ OK ]
Nov 13 15:28:15 centos-16gb-fsn1-2 systemd[1]: Started LSB: lsmcd.
And the config looks normal, too.
What can that be? That part of the problem was also present. before i switched our system to memcached.
from lsmcd.
Are there any issues with our (almost default) configuration?
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=false
#Cached.SaslDB=/etc/sasllsmcd
##this is the global setting, no need to have per slice configuration.
User=nobody
Group=nobody
#depends CPU core
CachedProcCnt=4
CachedSockPath=/tmp/cached.usock.
TmpDir=/tmp/lsmcd
LogLevel=notice
#LogLevel=dbg_medium
LogFile=/tmp/lsmcd.log
from lsmcd.
Hi,
Interesting, I've not tried the nc method to connect to a UDS socket. Let me check that out...
Thanks.
Bob
from lsmcd.
I guess I've missed that parameter, after using memcached. The command for socat is socat - UNIX-CONNECT:/tmp/lsmcd.sock,crnl
(Just checked what the -C
parameter was).
Thanks for the help again, rperper :-) Everything is now wkring as expected. Cleared the shared memory file was required.
For people who find this issue in the future, here's a few things to secure the proper traffic from Google - and the solution, too.
After updating the lsmcd-service, the following error was reported:
2020-11-13 16:12:58.914 [WARN] [__root] [SHM] [-1-13:0xd03150] alloc2 cross large page boundary, offset: FD000, size: 15392, split to 12288/3104 release
So fix this, I stopped lsmcd (systemctl stop lsmcd
), hereafter I removed the shared files used by lsmcd: sudo rm -rf /dev/shm/lsmcd
, and finally, started lsmcd again (systemctl start lsmcd
). Use sudo, if you need that.... :-)
And oh:
Try and connect with the service hereafter. It's done with nc -U /tmp/lsmcd.sock -C
or socat - UNIX-CONNECT:/tmp/lsmcd.sock,crnl
if it's connected with UDS. If lsmcd are configed to listed on TCP, use telnet 127.0.0.1 11211
. Try and type stats
, and check if everything are running as expected.
The output should look something like this:
stats
STAT pid 76627
STAT version 1.0.0
STAT pointer_size 64
STAT rusage_user 1.191186
STAT rusage_system 1.749438
STAT cmd_get 90260
STAT cmd_set 17598
STAT cmd_flush 0
STAT cmd_touch 0
STAT get_hits 75903
STAT get_misses 14357
STAT delete_misses 22
STAT delete_hits 74
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
from lsmcd.
Related Issues (20)
- lscmd not started HOT 12
- stats items not working HOT 4
- FATAL ERROR alloc2 cross large page boundary HOT 2
- LSMCD is filling up the /tmp/lsmcd folder after the latest update HOT 9
- Benefits over Memcached? HOT 3
- Update LSMCD codebase to Memcached v1.6 for meta protocol and syscall batching support HOT 1
- Clearing object cache for a single WP site HOT 1
- update and version HOT 1
- ip HOT 1
- LogLevel not being honored HOT 3
- Unable to locate package lsphp74-memcached
- lsmcd systemd stops randomly HOT 39
- LSMCD not work with unix socket HOT 3
- sasl PHP Fatal error HOT 8
- uninstall.sh HOT 1
- Make install error centos7 HOT 2
- Compile error HOT 4
- Differences with Memcached: CACHESIZE and stats
- Sasl user database HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsmcd.