Skip to content
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

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

stepanblyschak
Copy link
Collaborator

Why I did it

To improve boot time and stabilize boot time as well as fast-reboot downtime consistency.

Work item tracking
  • Microsoft ADO (number only):

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:

admin@sonic:~$ sudo show system-health summary
System status summary

  System status LED  green
  Services:
    Status: OK
  Hardware:
    Status: OK

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202405

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)

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@volodymyrsamotiy
Copy link
Collaborator

@bingwang-ms, @vaibhavhd , could you please help to review?

@bingwang-ms
Copy link
Contributor

@saiarcot895 Could you please help review? Thanks

@bingwang-ms
Copy link
Contributor

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azpw run Azure.sonic-buildimage

@@ -5,6 +5,9 @@
System health monitor daemon for SONiC
"""

from swsscommon.swsscommon import RestartWaiter
RestartWaiter.waitAdvancedBootDone()
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

@yxieca yxieca merged commit f94d4f8 into sonic-net:master Dec 2, 2024
22 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Dec 2, 2024
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>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #20995

mssonicbld pushed a commit that referenced this pull request Dec 4, 2024
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>
VladimirKuk pushed a commit to Marvell-switching/sonic-buildimage that referenced this pull request Jan 21, 2025
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants