relay icon indicating copy to clipboard operation
relay copied to clipboard

[statsd] Relay's statsd take up 20% CPU

Open jernejstrasner opened this issue 2 years ago • 2 comments

Something in the way that we emit metrics is inefficient and fishy. I suspect we don't aggregate any metrics in-process, and as a result spend way too much CPU on emitting metrics.

Anton Ovchinnikov claimed 20% CPU increase by turning on metrics collection. More CPU usage than normal in both Relay and the statsd collector.

We also likely drop metrics as a result of that.

jernejstrasner avatar Jan 19 '23 16:01 jernejstrasner

What do we want to do with this? I think the best course of action at this point in time is to not emit many metrics, see investigation doc.

iker-barriocanal avatar Mar 13 '23 14:03 iker-barriocanal

@jan-auer what's your take since this is metrics related?

jernejstrasner avatar Mar 20 '23 14:03 jernejstrasner

Not a problem at the moment, with the addition of statsdproxy this already got a lot better.

Dav1dde avatar Dec 11 '24 13:12 Dav1dde