Skip to content

Add IO tracking option for job objects#1459

Merged
dcantah merged 2 commits intomicrosoft:masterfrom
dcantah:fix-hpc-storage-stats
Jul 20, 2022
Merged

Add IO tracking option for job objects#1459
dcantah merged 2 commits intomicrosoft:masterfrom
dcantah:fix-hpc-storage-stats

Conversation

@dcantah
Copy link
Copy Markdown
Contributor

@dcantah dcantah commented Jul 14, 2022

HCS enables this to get more in depth IO stats for the silo of the
container, and is what is returned when asking for stats for the container.
I'd swapped hostprocess containers to querying for these stats, but without
the prerequisite of actually enabling them :)

This change adds a new option on jobobject.Options{} to enable this
functionality and adds a new test to ensure we can actually call
StorageStats now (It would return Element Not Found previously).

@dcantah dcantah requested a review from a team as a code owner July 14, 2022 09:00
Copy link
Copy Markdown
Contributor

@helsaawy helsaawy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nits

Comment thread internal/jobobject/jobobject.go Outdated
Comment thread internal/jobobject/jobobject_test.go
@dcantah dcantah force-pushed the fix-hpc-storage-stats branch from c4c4aee to 19a7223 Compare July 19, 2022 19:17
dcantah added 2 commits July 19, 2022 12:20
HCS enables this to get more in depth IO stats for the silo of the
container. I'd swapped hostprocess containers to querying for
these stats but without the prerequisite of actually enabling them :)

This change adds a new option on jobobject.Options{} to enable this
functionality and adds a new test to ensure we can actually call
StorageStats now.

Signed-off-by: Daniel Canter <[email protected]>
- Add test to ensure IO tracking needs to be enabled or querying for storage
stats will return an error.
- Make wording on what needs to be toggled for querying storage stats more
clear.

Signed-off-by: Daniel Canter <[email protected]>
@dcantah dcantah force-pushed the fix-hpc-storage-stats branch from 19a7223 to 01a65f3 Compare July 19, 2022 19:20
@dcantah dcantah merged commit 598ea47 into microsoft:master Jul 20, 2022
dcantah added a commit to dcantah/hcsshim that referenced this pull request Jul 21, 2022
* Add IO tracking option for job objects

HCS enables this to get more in depth IO stats for the silo of the
container. I'd swapped hostprocess containers to querying for
these stats but without the prerequisite of actually enabling them :)

This change adds a new option on jobobject.Options{} to enable this
functionality and adds a new test to ensure we can actually call
StorageStats now.

Signed-off-by: Daniel Canter <[email protected]>
(cherry picked from commit 598ea47)
Signed-off-by: Daniel Canter <[email protected]>
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
* Add IO tracking option for job objects

HCS enables this to get more in depth IO stats for the silo of the
container. I'd swapped hostprocess containers to querying for
these stats but without the prerequisite of actually enabling them :)

This change adds a new option on jobobject.Options{} to enable this
functionality and adds a new test to ensure we can actually call
StorageStats now.

Signed-off-by: Daniel Canter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants