Question on Memory Usage, maxmemory and cache_mode settings #1453
Replies: 1 comment 6 replies
-
It's awesome that you've switched to Dragonfly, thanks for letting us know! Also, a side note: I see that you're binding to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
We have successfully switched from Redis to DragonflyDB (1.4.0) on our production web application after testing it in our pre-production environment for sometime. So far we are very happy with it but I just have one thing that we have noticed. Previously, with Redis, memory usage was around 25GB (with maxmemory setting of 64GB and key eviction set to "volatile-lru") after we run a cache priming script.
With dragonflydb, memory usage hovers around 1GB-1.5GB after priming. Having said this, I'm not entirely sure if it's actually caching stuff or the cache_mode setting is doing something with it. But as I understand it, based on the documentation, cache_mode should only kick in when the maxmemory is reached (also set to 64gb on dragonflydb).
Can someone help enlighten me? Thank you in advance! Config of dragonflydb is below:
--pidfile=/var/run/dragonfly/dragonfly.pid
--log_dir=/var/log/dragonfly
--dir=/var/lib/dragonfly
--version_check=true
--bind=localhost
--maxmemory=64g
--cache_mode=true
--dbnum=16
--dbfilename=dump.rdb
--df_snapshot_format=false
Beta Was this translation helpful? Give feedback.
All reactions