You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7582ddc
Browse filesBrowse the repository at this point in the historyBrowse files
NIFI-16611 Add connect timeout to load balancing client sockets
- Connect load balancing client sockets with a timeout instead of blocking for the OS TCP connect timeout against unreachable peers.
- Add nifi.cluster.load.balance.connection.timeout with a default of 5 sec.
Copy file name to clipboardExpand all lines: nifi-docs/src/main/asciidoc/administration-guide.adoc
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3772,6 +3772,7 @@ Subject Alternative Names included on the server certificate configured in the a
3772
3772
3773
3773
*NOTE:* Increasing this value will allow additional threads to be used for communicating with other nodes in the cluster and writing the data to the Content and FlowFile Repositories. However, if this property is set to a value greater than the number of nodes in the cluster multiplied by the number of connections per node (`nifi.cluster.load.balance.connections.per.node`), then no further benefit will be gained and resources will be wasted.
3774
3774
|`nifi.cluster.load.balance.comms.timeout`|When communicating with another node, if this amount of time elapses without making any progress when reading from or writing to a socket, then a TimeoutException will be thrown. This will then result in the data either being retried or sent to another node in the cluster, depending on the configured Load Balancing Strategy. The default value is `30 sec`.
3775
+
|`nifi.cluster.load.balance.connection.timeout`|The maximum amount of time to wait when establishing a connection to another node in the cluster for load balancing. If the connection cannot be established within this time, the connection attempt fails. Keeping this value low limits how long data transfers to other nodes are delayed when a node is unreachable, for example after it has been restarted with a new network address. The default value is `5 sec`.
Copy file name to clipboardExpand all lines: nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FlowController.java
Copy file name to clipboardExpand all lines: nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/client/async/nio/NioAsyncLoadBalanceClient.java
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ public class NioAsyncLoadBalanceClient implements AsyncLoadBalanceClient {
Copy file name to clipboardExpand all lines: nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/client/async/nio/NioAsyncLoadBalanceClientFactory.java
Copy file name to clipboardExpand all lines: nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/queue/clustered/LoadBalancedQueueIT.java
Copy file name to clipboardExpand all lines: nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/queue/clustered/client/async/nio/TestNioAsyncLoadBalanceClient.java
Copy file name to clipboardExpand all lines: nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/queue/clustered/client/async/nio/TestNioAsyncLoadBalanceClientRegistry.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ public boolean isRebalanceOnFailure() {
0 commit comments