Closed szymonpk closed 9 years ago
these values are hardcoded in the template. We should probably move these to attributes
Erm... sorry you got this wrong. I'm trying to set max_memory to 512 and only 512 values I've found were these two default mentioned above.
# grep maxmemory /etc/redis/redis_prime.conf # WARNING: maxmemory can be a good idea mainly if you want to use Redis as a # to upgrade. With maxmemory after the limit is reached you'll start to get # MAXMEMORY POLICY: how Redis will select what to remove when maxmemory # maxmemory-samples 3
My max_memory override isn't applied.
Forget about this issue, I've used wrong keys. With these two below everything works fine:
node.set.redis2.instances.prime.maxmemory = '512mb' node.set.redis2.instances.prime.maxmemory_policy = 'allkeys-lru'
It just wasn't documented.
Code I've used
Result
I've also tried overwrite with
node.default
, doesn't work either.