marcoCasamento / Hangfire.Redis.StackExchange

HangFire Redis storage based on original (and now unsupported) Hangfire.Redis but using lovely StackExchange.Redis client
Other
460 stars 109 forks source link

Job history is causing high memory consumption of Redis #106

Closed walter-psjr closed 2 years ago

walter-psjr commented 3 years ago

Hi!

I have an application running Hangfire with this library for storage on Redis for about a month. We noticed that the memory consumption is increasing more and more, now we have 2 million keys in Redis and this has become a problem. I realized that most of these keys are history records.

I would like to know if there is any configuration or if this is a problem, to limit or eliminate these history, because this way our Redis instance is already at the limit and we will not be able to continue using it like this.

Thanks

marcoCasamento commented 2 years ago

sorry I forgot about this, I'm sure you found the solution yourself, if not, have a look at: https://discuss.hangfire.io/t/how-to-configure-the-retention-time-of-job/34