IMHO a better solution would be to allow the bundles to be split into more units in a single operation. Instead of splitting one bundle into 2, split it into 4 or 8….. If we do that then we can make that configurable (with a reasonable default).
On 2022/07/26 08:39:29 lordcheng10 wrote: > When the broker is just started, the traffic or QPS may not be stable at this > time. > At this time, we can solve the problem by adjusting the time interval of the > first load reporting task. > > > The time interval for executing the report task is 5 seconds, and it is not > configurable. > I can add a configuration to control the delay time of the first report > execution, such as: > > > //Add the delay time configuration for the first execution > long delayReportTime = config.getDelayReportTime(); > > > this.loadReportTask = this.loadManagerExecutor.scheduleAtFixedRate(new > LoadReportUpdaterTask(loadManager), delayReportTime, loadReportMinInterval, > TimeUnit.MILLISECONDS);