matrix-appservice-gitter icon indicating copy to clipboard operation
matrix-appservice-gitter copied to clipboard

Expire idle matrix-side ghosts out of memory

Open leonerd opened this issue 8 years ago • 1 comments

Currently, every matrix-side ghost user maintains presence state for all of time. If you don't restart the bridge for a while, this constant accumulation of users starts creating even more presence traffic in the HS.

It would help to reduce the amount of meaningless presence spam, if we start expiring these ghosts if they haven't been active for a while; maybe a day or so. The users already keep last-active timestamps, for exporting the active-users metrics, so it should be simple enough to expire based on these.

leonerd avatar May 02 '17 13:05 leonerd

/cc @erikjohnston This should help reduce gitter-user presence spam

leonerd avatar May 02 '17 13:05 leonerd