• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

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