Skip to content

Tune Redis COUNT modifier for HSCAN

Timo Furrer requested to merge redis-hscan-count into master

This change set tunes the COUNT modifier for the HSCAN Redis command that is in the Expiring Hash types.

We have Redis hashes that have thousands of entries which with the default COUNT of 10 would require a significant amount of HSCAN commands to be issued. This is a problem on may even saturate the CPU on the Redis servers, as we've experienced in #415.

The "downside" of larger COUNT is that the Redis server will be blocked for the amount of time it requires to collect all the hash entries. However, a COUNT of 1000 should be okay, see !1393 (merged) (comment 1831547449).

Refs #415

Edited by Timo Furrer

Merge request reports