-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Memory Statistics Host-Services #167
base: master
Are you sure you want to change the base?
Support for Memory Statistics Host-Services #167
Conversation
@qiluo-msft @prgeor @FengPan-Frank. Please help review our feature's hld and linked code PRs. |
tests/hostcfgd/test_vectors.py
Outdated
"enabled": "true", | ||
"retention_time": "15", | ||
"sampling_interval": "5" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FengPan-Frank , thank you for your feedback! I've adjusted the indentation for better readability. Please let me know if there are any other improvements needed.
scripts/hostcfgd
Outdated
self.restart_memory_statistics() # Start or restart the daemon | ||
else: | ||
self.shutdown_memory_statistics() # Stop the daemon if disabled | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to validate key strictly, otherwise any input not equals to "enable" will trigger reload.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your feedback, @FengPan-Frank . I've added stricter validation for configuration keys in the Memory_StatisticsCfg class to ensure only valid keys trigger updates. We'll also implement input checks in the command line utilities folder. Let me know if you have any further suggestions!
Signed-off-by: Arham-Nasir <[email protected]>
Signed-off-by: Arham-Nasir <[email protected]>
Signed-off-by: Arham-Nasir <[email protected]>
Signed-off-by: Arham-Nasir <[email protected]>
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
@qiluo-msft @xincunli-sonic @zbud-msft @FengPan-Frank Please help review the feature. |
Signed-off-by: Arham-Nasir <[email protected]>
Signed-off-by: Arham-Nasir <[email protected]>
@qiluo-msft @xincunli-sonic pls help review this feature |
/azpw run sonic-net.sonic-host-services |
Signed-off-by: Arham-Nasir <[email protected]>
Signed-off-by: Arham-Nasir <[email protected]>
Signed-off-by: Arham-Nasir <[email protected]>
This PR provides hostservice demon functionality. It handles the configuration updates for the MemoryStatisticsd process, and listens to the ConfigDB changes and applies them by restarting, shutting down, or reloading the MemoryStatisticsd process.