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

Change polling and timeout mechanism #80

Open
s-takeuchi opened this issue Sep 25, 2021 · 2 comments
Open

Change polling and timeout mechanism #80

s-takeuchi opened this issue Sep 25, 2021 · 2 comments
Assignees
Milestone

Comments

@s-takeuchi
Copy link
Owner

s-takeuchi commented Sep 25, 2021

Current polling and timeout mechanism has problems in performance perspective.

SERVAL server keeps handling particular agent connection permanently.
Therefor SERVAL server needs a lot of thread for processing agents.
Huge number of threads need huge memory resources on Linux.

In order to use resources effectively current mechanism needs to be changed.

Before change
(1) SERVAL server receives agent's GetCommand request.
(2) SERVAL server waits the timing to response (Depends on polling interval)
(3) SERVAL server responses the command related to the request.

After change
(1) SERVAL server receives agent's GetCommand request.
(2) SERVAL server responses wait-request (polling interval) or the command (if it is time) to agent.

@s-takeuchi s-takeuchi added this to the 1.0.0 milestone Sep 25, 2021
@s-takeuchi s-takeuchi self-assigned this Sep 25, 2021
@s-takeuchi
Copy link
Owner Author

image

@s-takeuchi
Copy link
Owner Author

s-takeuchi commented Sep 26, 2021

Different approach

Certain fixed wait time is set (wait time = polling interval).
In case it takes us saInterval time from previous update, then executes the status acquisition.

@s-takeuchi s-takeuchi modified the milestones: 1.0.0, Future Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant