Is it possible to increase Redis `maxmemory` configuration option?

I tried bumping up cluster size to L and adding a configuration: { maxmemory: 134217728 } to redis service but I did not manage to change the default 28MB limit.

0

Comments

4 comments
Date Votes
  • Official comment

    yes, and no. Source: https://docs.platform.sh/add-services/redis.html#persistent-redis
     

    Platform.sh sets the maximum amount of memory (maxmemory) Redis can use for the data set, and it cannot be amended. It is defined by comparing the following values and keeping the lower of the two:

    For instance, if your Redis container has 3072 MB of disk space and 1024 MB of memory, only 512 MB of RAM are actually available to the service (3072/6 = 512).

    But if your Redis container has 3072 MB of disk space and 256 MB of memory, only 256 MB of RAM are actually available to the service (as per the container limit).

  • Unfortunately the answer is no, the maxmemory for Redis isn’t configurable. However, you could try increasing the container size, which should increase the maxmemory for the service. The Redis service will use all the available memory in the container, so container sizing is the way to increase that.

    0
  • Hi, is this still the same situation in 2022 ?

    0
  • Do we have any update on this issue?

    0

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post