Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): Changed defaults documentation (23.7) #547

Merged
merged 2 commits into from
Dec 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 9 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,10 @@

== 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.
fhennig marked this conversation as resolved.
Show resolved Hide resolved
It is recommended that you configure these volume requests according to your needs.

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

Expand All @@ -16,19 +19,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 +40,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
----
Loading