• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Redis in docker act as a not persisted cache

MaartenW

New Pleskian
Server operating system version
Ubuntu 18.04.6 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.56
Hello, I have installed the Redis instance in Docker, but I want to edit the configuration so it only runs in RAM instead of disk. But I cannot find a configuration file for redis. Does anyone know how to configure that?
 
Thank you for your answer, but I cannot find a solution for this question there. The Redis instance runs ok, but in I cannot find a way to configure it to use it a memory only cache instead of it writing to disk. You can configure this in the redis .config file, but I cannot find this anywhere.
 
Ah, sorry, I misunderstood your question. In turn I think you probably misunderstand what Redis actually is and what it does. The Redis website explains it as:
Redis is an in-memory but persistent on disk database, [...] data served from memory, disk used for storage.

Meaning that Redis keeps datasets entirely in memory, but also writes those to disk for storage (to be persistent). There is no additional configuration needed to store data in memory, because thats what Redis does by default.
 
I'm also interested in this topic. I only want to use the RAM (but not the disk).

The default-setting of Redis is the snapshotting, where the RAM is written on the disk: Redis persistence

But through the redis.conf (redis/redis.conf at unstable · redis/redis), it is possible to deactivate that snapshotting:
# Snapshotting can be completely disabled with a single empty string argument
# as in following example:
#
# save ""

Is there an option, when Redis is installed via Plesk's docker-extension, to disable this snapshotting via the Plesk-interface?

I found the following - but it doesn't work (setting for the environment variables):
REDIS_ARGS --save 86400 1

Are there maybe similiar approaches that work?
 
Back
Top