0AyanamiRei opened a new pull request, #65690: URL: https://github.com/apache/doris/pull/65690
### What problem does this PR solve? Issue Number: None Related PR: #65420 Problem Summary: CpuInfo::num_cores() is a startup snapshot and cannot reflect online CPU or cgroup allocation changes after BE starts. This PR adds an atomic current core count that applies cgroup and configured limits, initializes it during CpuInfo startup, and refreshes it from the BE daemon every five seconds. The generic CPU refresh capability is submitted separately from its S3 rate limiter consumer in #65420. ### Release note Support periodically refreshed CPU core availability in BE. ### Check List (For Author) - Test: No test run per request; build-support/check-format.sh passed - Behavior changed: Yes (BE refreshes the current available CPU core count every five seconds) - Does this need documentation: No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
