| 218 | } |
| 219 | |
| 220 | bool ExecutorGroup::IsHealthy() const { |
| 221 | int num_executors = NumExecutors(); |
| 222 | if (num_executors < min_size_) { |
| 223 | LOG(WARNING) << "Executor group " << name_ << " is unhealthy: " << num_executors |
| 224 | << " out of " << min_size_ << " are available."; |
| 225 | return false; |
| 226 | } |
| 227 | return true; |
| 228 | } |
| 229 | |
| 230 | bool ExecutorGroup::CheckConsistencyOrWarn(const BackendDescriptorPB& be_desc) const { |
| 231 | // Check if the executor's group configuration matches this group. |
no outgoing calls