Skip to content

Commit 353f720

Browse files
committed
oob/tcp: Adjust TCP keepalive default values
Signed-off-by: Joshua Hursey <[email protected]> (cherry picked from commit df0f8e9) Signed-off-by: Joshua Hursey <[email protected]>
1 parent 8e165c8 commit 353f720

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

orte/mca/oob/tcp/oob_tcp_component.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
1717
* Copyright (c) 2013-2014 Intel, Inc. All rights reserved.
1818
* Copyright (c) 2014 NVIDIA Corporation. All rights reserved.
19+
* Copyright (c) 2017 IBM Corporation. All rights reserved.
1920
* $COPYRIGHT$
2021
*
2122
* Additional copyrights may follow
@@ -400,27 +401,26 @@ static int tcp_component_register(void)
400401
&mca_oob_tcp_component.disable_ipv6_family);
401402
#endif // OPAL_ENABLE_IPV6
402403

403-
// Default to keepalives every 60 seconds
404-
mca_oob_tcp_component.keepalive_time = 60;
404+
// Wait for this amount of time before sending the first keepalive probe
405+
mca_oob_tcp_component.keepalive_time = 300;
405406
(void)mca_base_component_var_register(component, "keepalive_time",
406407
"Idle time in seconds before starting to send keepalives (keepalive_time <= 0 disables keepalive functionality)",
407408
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
408409
OPAL_INFO_LVL_5,
409410
MCA_BASE_VAR_SCOPE_READONLY,
410411
&mca_oob_tcp_component.keepalive_time);
411412

412-
// Default to keepalive retry interval time of 5 seconds
413-
mca_oob_tcp_component.keepalive_intvl = 5;
413+
// Resend keepalive probe every INT seconds
414+
mca_oob_tcp_component.keepalive_intvl = 20;
414415
(void)mca_base_component_var_register(component, "keepalive_intvl",
415416
"Time between successive keepalive pings when peer has not responded, in seconds (ignored if keepalive_time <= 0)",
416417
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
417418
OPAL_INFO_LVL_5,
418419
MCA_BASE_VAR_SCOPE_READONLY,
419420
&mca_oob_tcp_component.keepalive_intvl);
420421

421-
// Default to retrying a keepalive 3 times before declaring the
422-
// peer kaput
423-
mca_oob_tcp_component.keepalive_probes = 3;
422+
// After sending PR probes every INT seconds consider the connection dead
423+
mca_oob_tcp_component.keepalive_probes = 9;
424424
(void)mca_base_component_var_register(component, "keepalive_probes",
425425
"Number of keepalives that can be missed before declaring error (ignored if keepalive_time <= 0)",
426426
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,

0 commit comments

Comments
 (0)