config set maxmemory doesn't work under heavy traffic

35 views
Skip to first unread message

Travis Stark

unread,
May 8, 2017, 6:50:47 AM5/8/17
to Redis DB
I believe I've found a bug and could use some advice on how to work around it. It is fairly easy to reproduce, write a little script that continuously reads from redis (in my case I'm calling hget inside a loop with a very short delay). While that is running, attempt to change the maxmemory setting. It will return "OK" but the value of the setting remains unchanged. 

127.0.0.1:6379> config get maxmemory
1) "maxmemory"
2) "1053568"
127.0.0.1:6379> config set maxmemory 20000000
OK
127.0.0.1:6379> config get maxmemory
1) "maxmemory"
2) "1053568"

I'm on version 3.2.6

Jan-Erik Rediger

unread,
May 8, 2017, 7:14:21 AM5/8/17
to redi...@googlegroups.com
It seems very unlikely like a bug.
Single commands in Redis are pretty much atomic. If it returns with a
success the code ran.
We use dynamic reconfiguration extensively and never ran into these
problems.

So please confirm:

* Make sure that no external process is resetting this value.
* Check the logs
* Check that all commands are actually sent to the right instance.
> --
> 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+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

Itamar Haber

unread,
May 8, 2017, 1:01:13 PM5/8/17
to Redis DB, Jan-Erik Rediger
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.

> To post to this group, send email to redi...@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+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages