Resources usage of Node RED on Raspberry Pi 4B

Hello dude,
I'd like to know the information of the resources (RAM and CPU) of Node RED which is running on Raspberry Pi 4B.

I'm planning to run Pi 4B on the battery for some IoT projects.

On Node RED, I'll use the built-in nodes plus sqlite node only in order to reduce power consumption.

For the devices to Pi communication is mqtt and data will be saved with sqlite database.

Is there any way to configure Node RED to reduce the power consumption?

Any advice or suggestions would be greatly appreciated.

Best regards,
Aung

Resource usage is going to be entirely dependent on the flow you deploy.

Yes!... consider another SBC ..
Pi4 arent exactly low powered.. I would guess the pull of a Pi4 running node-red and some light database at an average of 800mA +++ more if using wifi

maybe consider something like this .. 2 watts total power draw

Thank you for fast response.

Is there ways to make the selection of the nodes at the start up of the Node RED or something like lite version of Node RED?

Because of high power consumption of Pi 4B, I'll downgrade the Pi 4B to Pi zero 2W, the RAM usage of Node RED is very crucial.

Best regards,
Aung

Reducing what nodes are available (which is possible by excluding them in settings.js) in the palette will not change the resources (it may reduce memory usage by a very small amount) used by Node-RED.

None of the core nodes do any thing unless they are processing a message.

It is possible to write nodes that do consume resources just by loading the into the palette, but these are pretty rare.

You have not said how long you want this device to run from or what size of battery you were planning to use, as suggested by @leftymuller a Raspberry Pi 4 may not be the best fit for what ever larger problem you are trying to solve here.

1 Like

I find that Node-red and sqlite run happily on a Pi Zero 2.
Everything depends on how many messages you expect per second of course, and the quality of your code.

Use RPiOS Lite and access Node-red from a browser on a proper computer.
Micro SD cards are not all created equal. Get a quality one such as Sandisk Ultra or Samsung Evo Plus

Hmmm maybe NOT anything x86 based as I’m not sure how long nodejs (and thus Node-RED) will support 32 bit hardware

The LattePanda I linked to is a 64 bit machine