ryan-williams / sensors

Home temperature + humidity metrics: custom sensors and dashboards
0 stars 0 forks source link

use usb flash drive as boot disk and swap space #9

Closed ryan-williams closed 5 years ago

ryan-williams commented 5 years ago

having a pi powering a desktop GUI with chromium or firefox (#7) showing grafana…

…seems to eventually (≈12h) use the default 100MB swap space (on the SD card) and freeze the whole pi.

This results in some data loss, since one humidity sensor is on that pi (the others buffer data correctly since #2).

This may go away with #16, but in general I probably want a story for at least one pi to power a monitor+browser+dashboard, and some good swap space would help.

There are pi-knockoffs on the market with up to 4GB memory, which I can investigate if I get desperate, but I don't think it should come to that.

ryan-williams commented 5 years ago

Other notes:

ryan-williams commented 5 years ago

I switched the influx and grafana servers to a Raspberry Pi 3 B+ booting from a 64GB USB drive with a 2GB swapfile:

Haven't tested running a long-tenured Grafana webapp client on it yet, to test graceful degradation to using swap (cf. #16), but will reopen here if further issues arise.