I have been using NiFi 1.9 for over 3 years on a Docker instance with custom processors. After migrating to Kubernetes, I started seeing the following error after about a month of testing:
o.a.n.c.repository.FileSystemRepository Unable to write to container default due to archive file size constraints; waiting for archive cleanup
I compared the NiFi configuration from the previous Docker setup with the new Kubernetes instance and found no differences. To troubleshoot, I made a couple of changes in nifi.properties on the Kubernetes instance:
nifi.flow.configuration.archive.max.storage=2048 MB
This increased the archive storage from the default 500MB to 2GB. After restarting, NiFi worked for about 30 minutes before the error reoccurred.
Then I tried disabling the archive with the following change:
nifi.flow.configuration.archive.enabled=false
However, the issue still reappeared after roughly 30 minutes.
Is there a server-level issue or a configuration oversight in NiFi? Or should I monitor specific processors on the NiFi UI to identify the problem?