Koji Kawamura created NIFI-3373:
-----------------------------------

             Summary: Add nifi.flow.configuration.archive.max.count property
                 Key: NIFI-3373
                 URL: https://issues.apache.org/jira/browse/NIFI-3373
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
            Reporter: Koji Kawamura


Currently we can limit the number of flow.xml.gz archive files by:

* total archive size (nifi.flow.configuration.archive.max.storage)
* archive file age (nifi.flow.configuration.archive.max.time)

In addition to these conditions to manage old archives, there's a demand that 
simply limiting number of archive files regardless time or size constraint.
https://lists.apache.org/thread.html/4d2d9cec46ee896318a5492bf020f60c28396e2850c077dad40d45d2@%3Cusers.nifi.apache.org%3E

We can provide that by adding new property 
'nifi.flow.configuration.archive.max.count', so that If specified, only N 
latest config files can be archived.

Make those properties optional, and process in following order:

- If max.count is specified, any archive other than the latest (N-1) is removed
- If max.time is specified, any archive that is older than max.time is removed
- If max.storage is specified, old archives are deleted while total size is 
greater than the configuration
- Create new archive, keep the latest archive regardless of above limitations



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to