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

Keepalive usr default value #701

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

rkhapov
Copy link
Collaborator

@rkhapov rkhapov commented Oct 15, 2024

No description provided.

rkhapov added 3 commits October 15, 2024 10:07
The value of tcp user timeout should be computed from keepalive values.
This patch adds advice function to machinarium for formulae of
keepalive + interval + probes - 0.5

Signed-off-by: rkhapov <[email protected]>
Now, default value of keepalive_usr_timeout will lead to
adviced value of tcp usr timeout, computed with values of keepalive.

Signed-off-by: rkhapov <[email protected]>
According to `man 7 tcp`, delay and interval values are presented
seconds.
But tcp user timeout are presented in milliseconds.
So formula fixed.

Signed-off-by: rkhapov <[email protected]>
@reshke reshke merged commit 2875a71 into yandex:master Oct 15, 2024
1 check passed
rkhapov added a commit that referenced this pull request Nov 15, 2024
* machinarium: add advice tcp usr timeout fn

The value of tcp user timeout should be computed from keepalive values.
This patch adds advice function to machinarium for formulae of
keepalive + interval + probes - 0.5

Signed-off-by: rkhapov <[email protected]>

* sources/config_reader.c: use advice tcp usr timeout

Now, default value of keepalive_usr_timeout will lead to
adviced value of tcp usr timeout, computed with values of keepalive.

Signed-off-by: rkhapov <[email protected]>

* test_advice_keepalive_usr_timeout.c: fix milliseconds

According to `man 7 tcp`, delay and interval values are presented
seconds.
But tcp user timeout are presented in milliseconds.
So formula fixed.

Signed-off-by: rkhapov <[email protected]>

---------

Signed-off-by: rkhapov <[email protected]>
Co-authored-by: rkhapov <[email protected]>
(cherry picked from commit 2875a71)
Signed-off-by: rkhapov <[email protected]>
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.

2 participants