hubot-redis-brain icon indicating copy to clipboard operation
hubot-redis-brain copied to clipboard

Too much user data

Open daniel-beard opened this issue 3 years ago • 1 comments

I am filing this since I have the same issue as #37 which was closed by its reporter:

My work's slack workspace has over 7000 users. As the bot runs for a while, it caches all of those users in the brain, which gets written to and read from Redis. The JSON blob gets up over 10MB, which isn't a lot, but moving that back and forth so much between the bot process and Redis starts taking a lot of time, causing the bot to be sluggish. Is there a way to disable caching the user info in Redis? My current solution is to wipe the brain user cache ever 15 min, but it feels hacky.

daniel-beard avatar Nov 19 '20 21:11 daniel-beard

I am having the same issue, except it is causing my app to crash because I am using all my allotted memory (30MB). Is there any progress on this issue?

@daniel-beard What did you do to wipe the user cache every 15 minutes?

kieran-barry-disney avatar Apr 11 '22 16:04 kieran-barry-disney