Commit 27671a7
fix: Tune NiFi startup defaults (election timeout, archive retention)
- Remove the operator override of nifi.cluster.flow.election.max.wait.time,
letting NiFi's upstream default of 5 mins take effect. The previous 1-min
override was left over from a "for testing" TODO in the operator and may
have caused flow election to settle on incomplete vote sets in cold-start
scenarios.
- Set nifi.content.repository.archive.max.retention.period to "3 days".
Previously empty, which NiFi interprets as Long.MAX_VALUE and disables
time-based archive purge entirely. Without a time-based ceiling the
content archive directory can accumulate millions of files, which makes
the synchronous startup directory scan in FileSystemRepository very slow.
Users requiring a longer content-replay window can override via
configOverrides. The provenance audit trail is stored separately and is
unaffected by this setting.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e691312 commit 27671a7
4 files changed
Lines changed: 26 additions & 6 deletions
File tree
- docs/modules/nifi/pages/usage_guide
- operations
- rust/operator-binary/src/config
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
347 | 357 | | |
348 | 358 | | |
349 | | - | |
| 359 | + | |
350 | 360 | | |
351 | 361 | | |
352 | 362 | | |
| |||
599 | 609 | | |
600 | 610 | | |
601 | 611 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | 612 | | |
608 | 613 | | |
609 | 614 | | |
| |||
0 commit comments