Raspberry Pi Zero W with mosquitto, node-red, influxdb, grafana, pivpn


i would like to put these(mosquitto, node-red, influxdb, grafana, pivpn) on my Rasp Pi hardware.

i have tried with my Raspberry Pi Zero W but i guess it is not capable of handling all this stuff(single CPU). After some time it gets really hot and it shutdown. So i have used cmd "top" to see load average. After some time it is above 5. Good is under 1. See image.

So my question is which hardware do i need to run all this stuff.

In my local store i can get Rasp Pi 4 with 1Gb. Is this enough? It is in stock.


I can wait for Rasp Pi 4 with 2gb. There is no stock.

To free up space & resources on your Pi Zero, and assuming your Pi Zero is connected to the Internet, have you considered using the free cloud versions of InfluxDB and Grafana?

No i will not use any free cloud ever again. I want to have everything local.

My question is if Pi Zero is capable of handling all mentioned services or not. And if not is Pi 4 1Gb enough or i need Pi 4 2gb or more?

I found node-red, grafana and influx was more than my Pi (3B) was happy with but I have no actual measurements of memory/CPU usage or I/O.

I think a Pi 4 would handle all these services, especially if you run it on a well matched SATA SSD.
Don't know about memory requirements though; I dropped influxdb and grafana.

1 Like

A pi4 should do it with no problems, though as always it depends on the data rate. If you were trying to save thousands of points a second to influx, for example, then probably not. 1GB would likely be enough, but the extra cost for 2GB is small, if I remember correctly, so probably worth going for that, for future proofing.

Further to this I advise against using influx on the SD card, use an external USB disk.

Not sure if this is of use...

I have had Node-Red, Mosquitto, Influxdb and Grafana running on my 2Gb RPi 4 since January 2021, this was to replace the RPi 3 Model B. Installed OS on external disk drive to save wear on an SD card and it has run with no problems. Batch of data sent to Influxdb about every second (on average).

There really is no need to install the OS on an external disc. It is the influx data that is better there, unless you have only a small database that is not updated too rapidly.

As mentioned in another thread, I've had a lot more than that running happily on a Pi2. My Pi3 ran the whole stack minus the VPN for some years.

The VPN I wouldn't personally try to run with everything else. It is likely to be quite heavy on resources since it has to handle the encryption in software as well has all of the routing of the network traffic. I don't believe that the smaller Pi's handle network traffic well along side dealing with the SD-Card interface (share the same bus?)

Again, I had no issues running this on an SD-Card for several years. Just get an oversized card that has wear levelling such as the Samsung EVO/EVO-Pro.

Of course this was a fairly small requirement with a dozen or so sensors and switches plus all of the Pi system data, MQTT, etc.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.