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

Method ScheduleMetaBalance

src/load_balancer/lb_impl.cc:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void LBImpl::ScheduleMetaBalance() {
136 int schedule_period_ms = FLAGS_tera_lb_meta_balance_period_s * 1000;
137 VLOG(5) << "[lb] MetaBalance will be scheduled in: " << schedule_period_ms / 1000 << "s";
138 thread_pool_->DelayTask(schedule_period_ms, [this](int64_t) {
139 DoMetaBalance();
140 ScheduleMetaBalance();
141 });
142}
143
144void LBImpl::ScheduleUnityBalance() {
145 int schedule_period = FLAGS_tera_lb_load_balance_period_s * 1000;

Callers

nothing calls this directly

Calls 1

DelayTaskMethod · 0.80

Tested by

no test coverage detected