Replies: 2 comments
-
FYI, the lockfile is managed by the driver, not zwavejs2mqtt, and you can set the It's not necessarily the case that the lockfile updates are translating to SD card writes. I believe the updates to the lockfiles are just changing the file mtime. Sometimes this only involves a memory operation. For example, the root filesystem for my RPi is configured with ext4 mount option Still, I opted to set the lock directory for my installation to a directory that is on tmpfs. In my docker compose file I have: environment:
- "ZWAVEJS_LOCK_DIRECTORY=/run/lock/zwave-js"
...
volumes:
- /run/lock/zwave-js:/run/lock/zwave-js
...
You would still want the lock directory to be stored on the host somewhere to prevent multiple docker instances from accessing the cache files at the same time. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the informations. |
Beta Was this translation helpful? Give feedback.
-
Checklist
Deploy method
Docker
Zwavejs2Mqtt version
6.5.2
ZwaveJS version
8.11.6
Describe the bug
My zwave network consists of only 3 sensors and 3 relays, but data is still written to the SD card every second. The modification date of the directories ....metadata.jsonl.lock and ....values.jsonl.lock changes every second. This behavior should be changed for the durability of the SD card.
To Reproduce
docker with -v /yourpath:/usr/src/app/store and monitor the modification date
Expected behavior
The lock status should be saved in main memory and only saved to disk when the data changes.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions