Skip to content

Commit

Permalink
Changed defaults documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig committed Dec 27, 2023
1 parent 0846cb2 commit f7eff38
Showing 1 changed file with 8 additions and 35 deletions.
43 changes: 8 additions & 35 deletions docs/modules/nifi/pages/usage_guide/resource-configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

== Volume storage

By default, a NiFi cluster will create five different persistent volume claims for flow files, provenance, database, content and state folders. These PVCs will request `2Gi`. It is recommended that you configure these volume requests according to your needs.
By default, a NiFi cluster will create five different persistent volume claims for flow files, provenance, database, content and state folders.
The example below shows how to configure the sizes of the individual volumes.
The volume sizes are the defaults used by the Operator.

Storage requests can be configured at role or group level, for one or more of the persistent volumes as follows:

Expand All @@ -16,19 +18,17 @@ nodes:
resources:
storage:
flowfileRepo:
capacity: 12Gi
capacity: 1024Mi
provenanceRepo:
capacity: 12Gi
capacity: 2048Mi
databaseRepo:
capacity: 12Gi
capacity: 1024Mi
contentRepo:
capacity: 12Gi
capacity: 4096Mi
stateRepo:
capacity: 12Gi
capacity: 1024Mi
----

In the above example, all nodes in the default group will request `12Gi` of storage the various folders.

== Resource Requests

include::home:concepts:stackable_resource_requests.adoc[]
Expand All @@ -39,30 +39,3 @@ A minimal HA setup consisting of 2 NiFi instances has the following https://kube
* `5000m` CPU limit
* `8448Mi` memory request and limit
* `18432Mi` persistent storage

Corresponding to the values above, the operator uses the following resource defaults:

[source,yaml]
----
nodes:
roleGroups:
default:
config:
resources:
cpu:
min: "500m"
max: "2000m"
memory:
limit: '4096Mi'
storage:
flowfileRepo:
capacity: 1024Mi
provenanceRepo:
capacity: 2048Mi
databaseRepo:
capacity: 1024Mi
contentRepo:
capacity: 4096Mi
stateRepo:
capacity: 1024Mi
----

0 comments on commit f7eff38

Please sign in to comment.