feat: bump version to 1.2.18 and fix CPU process stats collection#1737
Merged
feat: bump version to 1.2.18 and fix CPU process stats collection#1737
Conversation
Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
CormickKneey
approved these changes
Mar 19, 2026
hhhhsdxxxx
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces improvements to system resource monitoring, adds container-awareness to host announcements, and enhances logging for debugging. The changes include making CPU monitoring asynchronous, improving accuracy in CPU usage calculations, and ensuring cgroup stats are included when running in a container environment. Additionally, the pull request updates workspace versions and improves error messages.
Resource monitoring improvements:
CPUstruct indragonfly-client-util/src/sysinfo/cpu.rsto store physical and logical core counts, and updated methods (get_stats,get_process_stats) to be asynchronous for more accurate CPU usage measurements. CPU usage calculations now account for logical cores, and debug logging was added for detailed stats. [1] [2] [3] [4] [5] [6]Container environment awareness:
SchedulerAnnouncerindragonfly-client/src/announcer/mod.rsto detect if running in a container and include cgroup CPU and memory stats in host announcements, using new fields and logic. [1] [2] [3] [4] [5]Dependency and version updates:
1.2.17to1.2.18inCargo.tomlfor all relevant crates. [1] [2]Error handling improvements:
dragonfly-client/src/grpc/dfdaemon_download.rsfor clarity.Related Issue
Motivation and Context
Screenshots (if appropriate)