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

Fix: Remove infinite loop in LWD plugin #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cbouchar
Copy link
Contributor

@cbouchar cbouchar commented Jun 4, 2020

Under given circumstances, it is possible for one of the
local watchdog plugins 20_sysinfo to fall into an infinite
loop. Changes were made to reduce the number of loops and
to reduce the loop to no more than 2 minutes. Additionally,
unnecessary sleep operations have been eliminated. As a result,
the plugin will take less time to run. Older RHEL releases
like RHEL5 take about 45 seconds to complete reporting while
RHEL7 takes about 5 seconds. A max wait time
of 2 minutes waiting for system resource reporting is to
account for many more processes running than I had and for
older operating systems. If still not enough time,
an error message will be reported.

Fix: #86

@cbouchar cbouchar force-pushed the issue86-rm-lwd-infinite-loop branch from 9b0aa2c to 8cec43b Compare June 8, 2020 13:37
@StykMartin
Copy link
Contributor

/test

@cbouchar cbouchar force-pushed the issue86-rm-lwd-infinite-loop branch 2 times, most recently from 1e07f87 to 5b22a2b Compare June 9, 2020 17:21
p3ck
p3ck previously approved these changes Jun 9, 2020
Copy link
Contributor

@p3ck p3ck left a comment

Choose a reason for hiding this comment

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

lgtm

Under given circumstances, it is possible for one of the
local watchdog plugins `20_sysinfo` to fall into an infinite
loop.  Changes were made to reduce the number of loops and
to reduce the loop to no more than 2 minutes.  Additionally,
unnecessary sleep operations have been eliminated.  As a result,
the plugin will take less time to run.  Older RHEL releases
like RHEL5 take about 45 seconds to complete reporting while
RHEL7 takes about 5 seconds.  A max wait time
of 2 minutes waiting for system resource reporting is to
account for many more processes running than I had and for
older operating systems.  If still not enough time,
an error message will be reported.

Issue: 86
@cbouchar cbouchar force-pushed the issue86-rm-lwd-infinite-loop branch from 5b22a2b to fa87a4a Compare June 19, 2020 10:51
@cbouchar
Copy link
Contributor Author

/test

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.

Remove infinite loop from Local Watchdog (LWD)
4 participants