apache / helix

Mirror of Apache Helix
Apache License 2.0
454 stars 218 forks source link

ClusterStatusMonitor is a bottleneck in BestPossibleStateCalcStage.process #2117

Closed richardstartin closed 2 years ago

richardstartin commented 2 years ago

This profile was taken from an Apache Pinot controller:

Screenshot 2022-05-25 at 09 53 04

About 18% of the samples were in ClusterStatusMonitor.setPerInstanceResourceStatus (zoomed in)

Screenshot 2022-05-25 at 09 53 22

The root causes are:

desaikomal commented 2 years ago

Richard, great finds. If you don't mind asking me, what profiling tool are you using?

richardstartin commented 2 years ago

Richard, great finds. If you don't mind asking me, what profiling tool are you using?

I'm using JFR, visualised with JMC