From bd31134c80a711ddd2968a241852f41216b3e0e8 Mon Sep 17 00:00:00 2001 From: Volodymyr Babak Date: Thu, 18 Apr 2024 12:14:11 +0300 Subject: [PATCH] Added detail description of cloud paramaters: CLOUD_RPC_KEEP_ALIVE_TIME_SEC and CLOUD_RPC_KEEP_ALIVE_TIMEOUT_SEC --- application/src/main/resources/tb-edge.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/application/src/main/resources/tb-edge.yml b/application/src/main/resources/tb-edge.yml index 3ef87dcf15..d4b4649af2 100644 --- a/application/src/main/resources/tb-edge.yml +++ b/application/src/main/resources/tb-edge.yml @@ -99,8 +99,16 @@ cloud: rpc: host: "${CLOUD_RPC_HOST:localhost}" port: "${CLOUD_RPC_PORT:7070}" - timeout: "${CLOUD_RPC_TIMEOUT:5}" # Timeout in seconds for channel termination + # Timeout in seconds for channel termination + timeout: "${CLOUD_RPC_TIMEOUT:5}" + # Specifies the amount of time in seconds the client waits in idle (with no read operations on the connection) before sending a keepalive ping to the server. + # This setting is crucial for ensuring that the connection remains alive during periods of inactivity and helps prevent the server from closing the connection due to a timeout. + # It's used to probe the server periodically to check if it is still responsive and maintain the connection through potential network devices that might drop inactive connections (like NATs and load balancers). keep_alive_time_sec: "${CLOUD_RPC_KEEP_ALIVE_TIME_SEC:10}" + # Specifies how long the client will wait for a response to its keepalive ping. + # If the ping isn't acknowledged within this timeframe, the client assumes the connection is dead or unreachable. + # This timeout is essential for detecting when the server side might have issues or when there might be network failures preventing communication. + # If the server does not respond to a keepalive ping within this period, the client will consider the connection as lost and may attempt to reconnect or take other recovery actions. keep_alive_timeout_sec: "${CLOUD_RPC_KEEP_ALIVE_TIMEOUT_SEC:5}" ssl: enabled: "${CLOUD_RPC_SSL_ENABLED:false}"