Inotify - Einstellungen für Scan des consume-Ordners

Hallo,
ich habe gestern paperless ngx auf meinem Synology NAS installiert. Seitdem läuft die Festplatte alle 3-4 s an, um den consume-Ordner nach neuen Dokumenten zu scannen:

[2024-07-07 13:49:35,152] [INFO] [paperless.management.consumer] Using inotify to watch directory for changes: /usr/src/paperless/consume

[2024-07-07 13:49:38,979] [INFO] [paperless.management.consumer] Using inotify to watch directory for changes: /usr/src/paperless/consume

[2024-07-07 13:49:42,820] [INFO] [paperless.management.consumer] Using inotify to watch directory for changes: /usr/src/paperless/consume

Der NAS steht bei mir nahe des Schreibtisch und da ich recht laute Seagate EXOS darin verbaut habe ist das deutlich zu hören. Auch läuft jetzt der Lüfters des NAS öfters an, was sonst nicht der Fall ist.

Wie kann ich die Frequenz auf vielleicht 30 oder 60 s ändern? Ich scanne nicht soviele Dokumente und kann dann gerne eine halbe Minute auf die Verarbeitung warten.

Gruß, Carlo

Das mit dem Spin Up/Down der Platten Solltest du einfach in der Systemsteuerung einstellen.
Oder du verbaust einfach zwei SSDs.

Allgemein ist es sicherlich nicht sonderlich gut auf Dauer wenn dies sehr oft passiert.

Du kannst dort einstellen das die HDDs nach X Minuten in Standby gehen uvm.
Desweiteren kannst du die Lüfter unter ich glaube Hardware einstellen auf Leistung, Lautstärke oder Normal.

Meine NAS stehen in nem IKEA TV board mit Kabeldurchführung Externen Lüfter angeschlossen und ner Glasfront.

Und wenn es nicht zufrieden stellend ist kannst du mit den Werten spielen.
Alle 300 Sekunden reicht aus.

Hallo Michael,
war vielleicht etwas missverständlich formuliert. Die Platten gehen nie in den Standby. Ich meinte, dass man den Zugriff hört und laut Protokoll ist das der Zugriff auf den consume-Ordner.
Ich hab’s vielleicht noch nicht gefunden, aber wo kann ich die Zugriffsfrequenz einstellen? Im docker-compose scheinbar nicht.

Ich würde hier mal ansetzen.

Inotify geht nicht auf jedem FileSystem wie ich mal gehört habe.

https://docs.paperless-ngx.com/configuration/#PAPERLESS_CONSUMER_POLLING

Polling
PAPERLESS_CONSUMER_POLLING=<num>
If paperless won’t find documents added to your consume folder, it might not be able to automatically detect filesystem changes. In that case, specify a polling interval in seconds here, which will then cause paperless to periodically check your consumption directory for changes. This will also disable listening for file system changes with inotify.
Defaults to 0, which disables polling and uses filesystem notifications.
PAPERLESS_CONSUMER_POLLING_RETRY_COUNT=<num>
If consumer polling is enabled, sets the maximum number of times paperless will check for a file to remain unmodified. If a file’s modification time and size are identical for two consecutive checks, it will be consumed.
Defaults to 5.
PAPERLESS_CONSUMER_POLLING_DELAY=<num>
If consumer polling is enabled, sets the delay in seconds between each check (above) paperless will do while waiting for a file to remain unmodified.
Defaults to 5.
iNotify
PAPERLESS_CONSUMER_INOTIFY_DELAY=<num>
Sets the time in seconds the consumer will wait for additional events from inotify before the consumer will consider a file ready and begin consumption. Certain scanners or network setups may generate multiple events for a single file, leading to multiple consumers working on the same file. Configure this to prevent that.
Defaults to 0.5 seconds.