Redis max memory limit and eviction policy (#11836)
# Introduction Redis [eviction policy](https://redis.io/docs/latest/operate/rs/databases/memory-performance/eviction-policy/) and [Key eviction](https://redis.io/docs/latest/develop/reference/eviction/) [Bullmq eviction recommendations](https://docs.bullmq.io/guide/going-to-production#max-memory-policy) We might need a dedicated bullmq redis instance, as sharing engine/metadata keys and bull will someday become problematic close https://github.com/twentyhq/core-team-issues/issues/452 About to open a PR for our internal IaC Ps: Did not set a `--maxmemory` that could be leading to undetermined OOOM errors at runtime. Should be user provided or should define a default value ?
This commit is contained in:
@ -134,6 +134,7 @@ services:
|
||||
redis:
|
||||
image: redis
|
||||
restart: always
|
||||
command: ["--maxmemory-policy", "noeviction"]
|
||||
|
||||
volumes:
|
||||
docker-data:
|
||||
|
||||
Reference in New Issue
Block a user