The QueueStatisticsCollector class manages a hashset called redisques:stats to store statistics for every queue. The items in the hashset do not expire and can only be removed when the corresponding method is called for a specific queue.
We found in our redis database the redisques:stats hset having over 500k entries which caused the used hvals command to take around 400ms.
Many of the queues still in this hash were very old and never deleted.
The
QueueStatisticsCollectorclass manages a hashset calledredisques:statsto store statistics for every queue. The items in the hashset do not expire and can only be removed when the corresponding method is called for a specific queue.We found in our redis database the
redisques:statshset having over 500k entries which caused the usedhvalscommand to take around 400ms.Many of the queues still in this hash were very old and never deleted.