| 142 | } |
| 143 | |
| 144 | void 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 | |
| 154 | void LBImpl::DoMetaBalance() { |
| 155 | static uint64_t round = 0; |