-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[system-health] delay system-health service start #20771
Conversation
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@bingwang-ms, @vaibhavhd , could you please help to review? |
@saiarcot895 Could you please help review? Thanks |
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run Azure.sonic-buildimage |
@@ -5,6 +5,9 @@ | |||
System health monitor daemon for SONiC | |||
""" | |||
|
|||
from swsscommon.swsscommon import RestartWaiter | |||
RestartWaiter.waitAdvancedBootDone() |
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.
Does this call need to be at this point? Can it be in the main method?
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.
@saiarcot895 no, we prefer to wait before application starts importing python modules since importing some can be pretty CPU expensive as some run code at import time.
Why I did it To improve boot time and stabilize boot time as well as fast-reboot downtime consistency. How I did it Delay system-health daemon till boot is finished, same as other daemons. Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Cherry-pick PR to 202405: #20995 |
Why I did it To improve boot time and stabilize boot time as well as fast-reboot downtime consistency. How I did it Delay system-health daemon till boot is finished, same as other daemons. Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Why I did it To improve boot time and stabilize boot time as well as fast-reboot downtime consistency. How I did it Delay system-health daemon till boot is finished, same as other daemons. Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Why I did it
To improve boot time and stabilize boot time as well as fast-reboot downtime consistency.
Work item tracking
How I did it
Delay system-health daemon till boot is finished, same as other daemons.
How to verify it
Boot the system, verify system-health service starts with a delay, execute command:
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)