From 04ca4d1aa325f9c828329e2d8089e75779f5c105 Mon Sep 17 00:00:00 2001 From: Olivier Charuel Date: Fri, 24 Nov 2023 16:31:26 +0100 Subject: [PATCH] Allow to customize cluster and zookeeper timeout settings --- Chart.yaml | 2 +- README.md | 4 ++++ configs/nifi.properties | 8 ++++---- values.yaml | 4 ++++ 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 85ec95d9..0ae6768c 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,7 +1,7 @@ --- apiVersion: v2 name: nifi -version: 1.1.5 +version: 1.6.5 appVersion: 1.23.2 description: Apache NiFi is a software project from the Apache Software Foundation designed to automate the flow of data between software systems. keywords: diff --git a/README.md b/README.md index 97b58ef5..b4842c10 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,10 @@ The following table lists the configurable parameters of the nifi chart and the | `properties.httpPort` | web properties HTTP port | `8080` | | `properties.httpsPort` | web properties HTTPS port | `null` | | `properties.clusterPort` | cluster node port | `6007` | +| `properties.clusterNodeConnectionTimeout` | cluster node connection timeout | `5 sec` | +| `properties.clusterNodeReadTimeout` | cluster node read timeout | `5 sec` | +| `properties.zookeeperConnectTimeout` | zookeeper connect timeout | `3 secs` | +| `properties.zookeeperSessionTimeout` | zookeeper session timeout | `3 secs` | | `properties.provenanceStorage` | nifi provenance repository max storage size | `8 GB` | | `properties.provenanceMaxStorageTime` | nifi provenance repository max storage time | `10 days` | | `properties.siteToSite.secure` | Site to Site properties Secure mode | `false` | diff --git a/configs/nifi.properties b/configs/nifi.properties index d98a5c16..b9d2a436 100644 --- a/configs/nifi.properties +++ b/configs/nifi.properties @@ -230,8 +230,8 @@ nifi.cluster.node.protocol.port={{.Values.properties.clusterPort}} nifi.cluster.node.protocol.threads=10 nifi.cluster.node.protocol.max.threads=50 nifi.cluster.node.event.history.size=25 -nifi.cluster.node.connection.timeout=5 sec -nifi.cluster.node.read.timeout=5 sec +nifi.cluster.node.connection.timeout={{.Values.properties.clusterNodeConnectionTimeout}} +nifi.cluster.node.read.timeout={{.Values.properties.clusterNodeReadTimeout}} nifi.cluster.node.max.concurrent.requests=100 nifi.cluster.firewall.file= nifi.cluster.flow.election.max.wait.time=1 mins @@ -240,8 +240,8 @@ nifi.cluster.flow.election.max.candidates= # zookeeper properties, used for cluster management # nifi.zookeeper.client.ensembleTracker={{.Values.properties.zkClientEnsembleTraker}} nifi.zookeeper.connect.string= -nifi.zookeeper.connect.timeout=3 secs -nifi.zookeeper.session.timeout=3 secs +nifi.zookeeper.connect.timeout={{.Values.properties.zookeeperConnectTimeout}} +nifi.zookeeper.session.timeout={{.Values.properties.zookeeperSessionTimeout}} nifi.zookeeper.root.node=/nifi # Zookeeper properties for the authentication scheme used when creating acls on znodes used for cluster management diff --git a/values.yaml b/values.yaml index e8ee8e42..faf11791 100644 --- a/values.yaml +++ b/values.yaml @@ -95,6 +95,10 @@ properties: webProxyHost: # : (If Nifi service is NodePort or LoadBalancer) clusterPort: 6007 zkClientEnsembleTraker: false # https://issues.apache.org/jira/browse/NIFI-10481 + clusterNodeConnectionTimeout: '5 sec' + clusterNodeReadTimeout: '5 sec' + zookeeperConnectTimeout: '3 secs' + zookeeperSessionTimeout: '3 secs' provenanceStorage: "8 GB" provenanceMaxStorageTime: "10 days" siteToSite: