From 5ca6739ae93f95c6d00e636a3558d11f34279083 Mon Sep 17 00:00:00 2001 From: Gauthier FRIDIERE Date: Fri, 19 Jan 2024 15:09:42 +0100 Subject: [PATCH] Allow to customize flow storage settings (#324) --- Chart.yaml | 2 +- README.md | 2 ++ configs/nifi.properties | 4 ++-- values.yaml | 2 ++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 535998ab..b3fd5a59 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,7 +1,7 @@ --- apiVersion: v2 name: nifi -version: 1.2.0 +version: 1.2.1 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 d438658a..aff020c5 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,8 @@ The following table lists the configurable parameters of the nifi chart and the | `properties.archiveMaxUsagePercentage` | nifi content repository archive max usage | `85%` | | `properties.provenanceStorage` | nifi provenance repository max storage size | `8 GB` | | `properties.provenanceMaxStorageTime` | nifi provenance repository max storage time | `10 days` | +| `properties.flowArchiveMaxTime` | nifi flow archive max time | `30 days` | +| `properties.flowArchiveMaxStorage` | nifi flow archive max storage | `500 MB` | | `properties.siteToSite.secure` | Site to Site properties Secure mode | `false` | | `properties.siteToSite.port` | Site to Site properties Secure port | `10000` | | `properties.safetyValve` | Map of explicit 'property: value' pairs that overwrite other configuration | `nil` | diff --git a/configs/nifi.properties b/configs/nifi.properties index 5a0d67fd..35cacebc 100644 --- a/configs/nifi.properties +++ b/configs/nifi.properties @@ -17,8 +17,8 @@ nifi.flow.configuration.file=../data/flow.xml.gz nifi.flow.configuration.archive.enabled=true nifi.flow.configuration.archive.dir=../data/archive/ -nifi.flow.configuration.archive.max.time=30 days -nifi.flow.configuration.archive.max.storage=500 MB +nifi.flow.configuration.archive.max.time={{.Values.properties.flowArchiveMaxTime}} +nifi.flow.configuration.archive.max.storage={{.Values.properties.flowArchiveMaxStorage}} nifi.flow.configuration.archive.max.count= nifi.flowcontroller.autoResumeState=true nifi.flowcontroller.graceful.shutdown.period=10 sec diff --git a/values.yaml b/values.yaml index e58c2a1c..5daec4f7 100644 --- a/values.yaml +++ b/values.yaml @@ -103,6 +103,8 @@ properties: archiveMaxUsagePercentage: "85%" provenanceStorage: "8 GB" provenanceMaxStorageTime: "10 days" + flowArchiveMaxTime: "30 days" + flowArchiveMaxStorage: "500 MB" siteToSite: port: 10000 # use properties.safetyValve to pass explicit 'key: value' pairs that overwrite other configuration