-
-
Notifications
You must be signed in to change notification settings - Fork 12
fix: Tune NiFi startup defaults (election timeout, archive retention) #936
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -344,9 +344,19 @@ pub fn build_nifi_properties( | |
| "nifi.content.repository.directory.default".to_string(), | ||
| NifiRepository::Content.mount_path(), | ||
| ); | ||
| // Cap archived content age so the archive directory stays bounded in | ||
| // file count. NiFi treats empty as Long.MAX_VALUE, leaving size-based | ||
| // purge as the only trigger; that lets the archive grow to whatever | ||
| // half the PVC holds, and the startup directory scan in | ||
| // FileSystemRepository.initializeRepository scales with file count. | ||
| // 3 days covers a Friday-incident-investigated-Monday window for | ||
| // content replay; users with longer requirements can extend via | ||
| // configOverrides. The percentage-based threshold below acts as a | ||
| // safety net if write rate outpaces time-based purge. | ||
| // Also see https://github.com/stackabletech/nifi-operator/issues/354 | ||
| properties.insert( | ||
| "nifi.content.repository.archive.max.retention.period".to_string(), | ||
| "".to_string(), | ||
| "3 days".to_string(), | ||
| ); | ||
| properties.insert( | ||
| "nifi.content.repository.archive.max.usage.percentage".to_string(), | ||
|
|
@@ -599,11 +609,6 @@ pub fn build_nifi_properties( | |
| "nifi.cluster.node.protocol.port".to_string(), | ||
| PROTOCOL_PORT.to_string(), | ||
| ); | ||
| // TODO: set to 1 min for testing (default 5) | ||
| properties.insert( | ||
| "nifi.cluster.flow.election.max.wait.time".to_string(), | ||
| "1 mins".to_string(), | ||
| ); | ||
|
Comment on lines
-603
to
-606
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I often lower this as it's a real blocker for development.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gentle ping @lfrancke :)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For that usecase there's a better property
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is great news! It makes so much sense to just set |
||
| properties.insert( | ||
| "nifi.cluster.flow.election.max.candidates".to_string(), | ||
| "".to_string(), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.