MCPcopy Create free account
hub / github.com/baidu/tera / ScheduleUnityBalance

Method ScheduleUnityBalance

src/load_balancer/lb_impl.cc:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void LBImpl::ScheduleUnityBalance() {
145 int schedule_period = FLAGS_tera_lb_load_balance_period_s * 1000;
146 VLOG(5) << "[lb] UnityBalance will be scheduled in: " << FLAGS_tera_lb_load_balance_period_s
147 << "s";
148 thread_pool_->DelayTask(schedule_period, [this](int64_t) {
149 DoUnityBalance();
150 ScheduleUnityBalance();
151 });
152}
153
154void LBImpl::DoMetaBalance() {
155 static uint64_t round = 0;

Callers

nothing calls this directly

Calls 1

DelayTaskMethod · 0.80

Tested by

no test coverage detected