preetika tyagi
2018-10-19 02:51:15 UTC
Hi all,
I'm experimenting with Redis to understand its behavior when maxmemory is
set to <some value in bytes> and maxmemory_policy is set to no_eviction.
I set multiple key-value pairs and run "info" command along with below
redis configuration.
In Redis.conf:
maxmemory: 419430400 (apprx 400MB)
maxmemory_policy: no_eviction
The info command output:
Before data insertion:
used_memory_dataset: 12338 (this is in bytes and it makes sense since it is
very small)
After data insertion:
used_memory_dataset: 1621456212 (this is approx 1.6GB)
What I am not able to understand, why does the redis server not start
throwing errors once it reaches 400MB usage threshold as set in maxmemory
configuration and reject any further data insertion commands?
Could anyone please explain this behavior or I'm missing something here?
Thanks,
Preetika
I'm experimenting with Redis to understand its behavior when maxmemory is
set to <some value in bytes> and maxmemory_policy is set to no_eviction.
I set multiple key-value pairs and run "info" command along with below
redis configuration.
In Redis.conf:
maxmemory: 419430400 (apprx 400MB)
maxmemory_policy: no_eviction
The info command output:
Before data insertion:
used_memory_dataset: 12338 (this is in bytes and it makes sense since it is
very small)
After data insertion:
used_memory_dataset: 1621456212 (this is approx 1.6GB)
What I am not able to understand, why does the redis server not start
throwing errors once it reaches 400MB usage threshold as set in maxmemory
configuration and reject any further data insertion commands?
Could anyone please explain this behavior or I'm missing something here?
Thanks,
Preetika
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.