fixed size hashtable for redis?

18 views
Skip to first unread message

ZHOU Yuan

unread,
Dec 19, 2018, 1:50:02 AM12/19/18
to Redis DB
Hello Redis gurus, 

New to redis, is it possible to use a fixed size(say 3M keys) hash table through some configuration on redis start? I understand using smaller hashtable can improve performance when # of keys are small. for my current workload stable performance is more important and I'm willing to suffer low performance in the beginning 

Sincerely, Yuan

hva...@gmail.com

unread,
Dec 19, 2018, 7:58:17 AM12/19/18
to Redis DB
It sounds like you're talking about the config parameters hash-max-zipmap-entries and hash-max-zipmap-value, as found in the comments in the redis.conf config file that's provided with the source code, and discussed in the documentation page https://redis.io/topics/memory-optimization

ZHOU Yuan

unread,
Dec 20, 2018, 12:38:43 AM12/20/18
to redi...@googlegroups.com
On Wed, Dec 19, 2018 at 8:58 PM <hva...@gmail.com> wrote:
It sounds like you're talking about the config parameters hash-max-zipmap-entries and hash-max-zipmap-value, as found in the comments in the redis.conf config file that's provided with the source code, and discussed in the documentation page https://redis.io/topics/memory-optimization

Hi Hvarzan, 

Sorry for the confusion, I actually meant for the internal dict table used in Redis server [1]. Currently I can prefill some dummy keys and then flushall. Want to see if there's some configuration to get a big hash table on start. 



Thanks, -yuan
 
On Tuesday, December 18, 2018 at 10:50:02 PM UTC-8, ZHOU Yuan wrote:
Hello Redis gurus, 

New to redis, is it possible to use a fixed size(say 3M keys) hash table through some configuration on redis start? I understand using smaller hashtable can improve performance when # of keys are small. for my current workload stable performance is more important and I'm willing to suffer low performance in the beginning 

Sincerely, Yuan

--
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.
Reply all
Reply to author
Forward
0 new messages