MCPcopy Create free account
hub / github.com/apache/impala / GetClusterSize

Method GetClusterSize

be/src/scheduling/admission-controller.cc:3274–3281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3272}
3273
3274int64_t AdmissionController::GetClusterSize(
3275 const ClusterMembershipMgr::Snapshot& membership_snapshot) {
3276 int64_t sum = 0;
3277 for (const auto& it : membership_snapshot.executor_groups) {
3278 sum += it.second.NumExecutors();
3279 }
3280 return sum;
3281}
3282
3283int64_t AdmissionController::GetMaxMemForPool(const TPoolConfig& pool_config) {
3284 return pool_config.max_mem_resources;

Callers

nothing calls this directly

Calls 1

NumExecutorsMethod · 0.80

Tested by

no test coverage detected