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

Create multithreaded script to reduce execution delay and to facilitate external requests #2

Open
g1patnaik opened this issue Jun 23, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@g1patnaik
Copy link
Owner

Reduce execution delay

  • Current script is set to sleep periodically to reduce continuous checks when not required. Because of the use of next_service_check, this periodic sleep is not required as the utility would do check only when this next_service_check is less than the current time. However adding sleep simply avoids contiously checking for this variable in loop (though it has a negligable impact I guess with smaller frequency checks like 60 sec)
  • However this added sleep delays the execution time by atleast 30 seconds, than what is configured for each service.

Facilitate external requests or reloading configuration

  • Implement a queue system with external messaging.

Idea: A queue executor thread, queue creator thread, internal/external messaging service, poller/push event mechanism

@g1patnaik g1patnaik added the enhancement New feature or request label Jun 23, 2021
@g1patnaik g1patnaik self-assigned this Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant