• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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