Selection guide
Choosing DIN-rail Linux hardware for a Node-RED gateway
Short answer
A Modbus and MQTT Node-RED flow set idles in the low hundreds of MB of RAM, so CPU rarely decides the purchase. Choose DIN-rail hardware on 24 VDC input, eMMC endurance and mounting, and pick x86-64 only if something besides Node-RED will ever run on the box.
On this page
Buy the DIN-rail box for its 24 VDC input, its eMMC endurance and its mounting, not for CPU: a typical Node-RED flow set idles in the low hundreds of MB of RAM, so almost any fanless embedded PC or industrial Raspberry Pi controller has compute to spare. The real decision is organizational. If only Node-RED will ever run on it, an industrial Raspberry Pi controller on DIN rail next to the PLC is the cabinet-native answer. If the box might later carry a local database, an OPC UA server or a Windows-only vendor utility, buy a fanless x86-64 industrial mini PC instead.
What Node-RED actually demands #
Node-RED is a Node.js single-process flow engine. A production flow set doing Modbus TCP polling, MQTT bridging, a dashboard and periodic SQL inserts sits at single-digit CPU percent and low hundreds of MB of RAM. That is why CPU selection is rarely the binding constraint. The constraints that decide the purchase are:
- Power — direct 24 VDC input from the cabinet rail, with an input window wide enough for supply tolerance and brownout.
- Mounting — DIN rail in a control cabinet; clips on general-purpose embedded PCs are often a separate accessory.
- Storage endurance — flow context, logs and any local buffer write continuously to flash.
- Boot media capacity — onboard eMMC is small; the OS image must fit with room for logs.
- Supportability — whether IT accepts a Linux endpoint on the plant network.
Specify the box for those five, then treat spare CPU as insurance for whatever gets added later.
Two hardware classes #
| Criterion | Fanless x86-64 embedded PC | Industrial Raspberry Pi controller |
|---|---|---|
| Architecture | x86-64; any x64 OS boots | ARM, Raspberry Pi Compute Module class |
| OS flexibility | Debian, Ubuntu, Windows IoT, custom images | Vendor-maintained Raspberry Pi OS derivative |
| Mounting | DIN clip or VESA bracket, often ordered separately | Native DIN-rail, cabinet form factor |
| Field I/O | None native; USB, serial and Ethernet gateways | Expandable digital and analog I/O modules |
| Boot media | eMMC plus M.2 or 2.5-inch SSD on most models | Onboard eMMC, no SD card |
| Compute headroom | Large: browser, database, OPC UA server | Modest: gateway and logic workloads |
| Containers | Full amd64 image ecosystem | arm64 image variants only |
| Typical fit | Node-RED plus something else later | Node-RED only, in a cabinet, near field wiring |
Both classes exist as fanless industrial hardware. Purpose-built DIN-rail edge computers ship with IP4X-rated chassis, wide 12 to 28 VDC input ranges and, on some models, Node-RED pre-installed on Ubuntu; check the vendor's page for the specific model. The Revolution Pi family, for example, runs a Raspberry Pi Compute Module with onboard eMMC instead of an SD card, fanless, on a 24 V supply, rated from -25 °C to +55 °C.
The practical read: any chance the box runs a local historian buffer, an OPC UA server, a Windows-only utility or a signage browser session? Buy x86-64 — the same industrial mini PC class then serves those roles too. Requirement fixed at "small Linux gateway on DIN rail beside a PLC"? The industrial Pi controller is the leaner answer.
The eMMC sizing trap #
The most common commissioning failure on this class is finding the OS image does not fit the eMMC, or fits with nothing left for logs. Verify the capacity of the specific SKU, not the product family page — eMMC size varies within one family.
Budget the storage like this:
- Minimal Debian or Ubuntu server: verify against the distribution's published minimum for that release.
- Node.js, Node-RED and installed palettes: the
~/.node-red/node_modulestree grows with every palette install; leave several hundred MB free. - Flows, credentials and context: small, but a filesystem context store writes on every
set. - Journald: cap it explicitly; unbounded logs are the classic way a small eMMC fills.
- Wear-leveling and upgrade reserve: keep at least 25 to 30 percent of the device free.
Capping journald on an 8 GB eMMC gateway #
Inputs: an eMMC boot device of 8 GB (8000 MB usable, a typical size for this class); a 30 percent free-space reserve from the rule above; and the journal caps from the vendor-standard systemd configuration.
The rule in words: the free-space reserve comes off the top, everything else (OS, Node.js, palettes, context) shares the remainder, and the journal gets a hard ceiling in /etc/systemd/journald.conf so it can never consume its share.
The arithmetic:
- Reserve: 30 percent of 8000 MB = 2400 MB kept free for wear leveling and upgrades.
- Remaining for OS, runtime and logs: 8000 - 2400 = 5600 MB.
- Persistent journal cap
SystemMaxUse=200M, split asSystemMaxFileSize=20Mper archived file, plusRuntimeMaxUse=50Min memory: the journal can therefore never exceed 250 MB, about 4.5 percent of the 5600 MB.
Apply it and restart the journal daemon:
# /etc/systemd/journald.conf
Storage=persistent
SystemMaxUse=200M
SystemMaxFileSize=20M
RuntimeMaxUse=50M
sudo systemctl restart systemd-journald
journalctl --disk-usage
Decision: with the journal bounded at 250 MB and 2400 MB held free, a gateway flow set fits comfortably on 8 GB of eMMC. Below 4 GB of boot flash, do not boot the OS from eMMC at all — use an x86-64 unit with an SSD bay.
Keeping writes off the flash #
On an x86-64 unit, boot from eMMC and move /var/log, the Node-RED context store and any local database onto the SSD. On an eMMC-only controller, reduce write volume instead of relocating it: mount the root filesystem with noatime,commit=60 in /etc/fstab to cut write amplification, and route chatty services to memory-only logging.
One habit matters more than any mount option: do not leave debug nodes configured with console output enabled in production. A 200 ms polling loop printing to the journal produces millions of lines per week and is a leading cause of premature flash wear on eMMC-only devices.
Winning the IT conversation #
IT groups usually resist Linux endpoints because their imaging, patching and endpoint-security tooling is Windows-only, not because of technical risk. Three paths, in order:
- Golden image. Clone an appliance image — OS, Node.js, Node-RED, flows, configuration — to identical hardware and restore in minutes. Present it as an appliance, not a server IT administers.
- Network scope. On an isolated control VLAN with no domain join and no inbound internet, the patching and agent objections largely fall away. Document the firewall rules and the update procedure you own. For securing the Node-RED side of that device, see what secures a Node-RED dashboard on an industrial controller.
- Windows compromise. Node-RED runs on Windows IoT, which a Windows-centric IT group will support; it works, at the cost of more resources and more storage.
For a fresh deployment, the install steps themselves are the same on either class of hardware — installing Node-RED natively on a Linux edge computer covers the Debian path.
Powering from the cabinet rail #
Most DIN-rail controllers take the 24 VDC control-power rail directly. Check that the documented input window covers your supply's tolerance — purpose-built units commonly advertise a wide range such as 12 to 28 VDC, which absorbs brownout and sag. If you select a unit that runs on a lower rail, you will need a converter module; the choice between them is worked through in selecting the right DIN-rail 24 VDC to 12 VDC converter. One safety note: feed the gateway from a fused branch, not direct from the supply output, and treat the controller as a powered appliance under the cabinet's existing electrical design, not as a second supply.
Commissioning checklist #
- Confirm the OS: for x86-64, any x64 OS should boot, but verify vendor drivers for the specific NIC, serial ports and watchdog on your kernel; for ARM controllers, use the vendor image.
- Verify eMMC capacity per SKU and that your image fits with the 25 to 30 percent free-space reserve.
- Confirm the 24 VDC input window against your supply tolerance, and order the DIN clip kit with the unit if it is an accessory.
- Count the ports you actually need: a second Ethernet port separates control and business networks; RS-485 serves legacy serial devices; USB for dongles.
- Check the rated operating temperature against the cabinet's worst case, remembering fanless units derate.
- Cap journald, add
noatime, and disable console debug output before the box goes into service.
The decision, restated: eMMC-only industrial Pi controller for a permanent, single-purpose gateway beside the PLC; fanless x86-64 mini PC the moment anything beyond Node-RED is even possible. Everything else — RAM, cores, clock speed — is insurance you should not be shopping by.
Questions asked
How much RAM does a typical Node-RED gateway actually need?
A plant-floor flow set doing Modbus TCP polling, MQTT bridging and periodic SQL inserts is a single Node.js process and idles in the low hundreds of megabytes of RAM with single-digit CPU percent. Two gigabytes is comfortable for the gateway role; the reason to buy more is a second application on the same box, not Node-RED itself.
Will any Linux distribution run on an x86-64 DIN-rail PC?
Any OS designed for an x64 CPU should boot, but confirm vendor drivers exist for that specific model's network controller, serial ports and watchdog on your kernel version before you commit. On ARM-based industrial Raspberry Pi controllers, plan on the vendor-maintained image rather than a generic distribution.
Why cap journald on an eMMC gateway?
Unbounded logs are the classic way a small eMMC device fills up, and constant writes wear flash. Setting SystemMaxUse=200M, SystemMaxFileSize=20M and RuntimeMaxUse=50M in /etc/systemd/journald.conf bounds the journal, and restarting systemd-journald applies it. Verify with journalctl --disk-usage after the change.
Is an industrial Raspberry Pi controller reliable enough for production?
Purpose-built units are designed for it: a Revolution Pi uses a Raspberry Pi Compute Module with onboard eMMC instead of an SD card, in a fanless DIN-rail housing on a 24 V supply, rated from -25 °C to +55 °C. The limitation is scope: it is sized for gateway and logic workloads, not for a database, OPC UA server or browser-based HMI.
What if corporate IT will not approve a Linux endpoint?
Present the gateway as a golden-image appliance you own: OS, Node-RED, flows and configuration cloned to identical hardware, on an isolated control VLAN with no inbound internet and a documented update procedure you maintain. That removes the patch and endpoint-agent objections that stop a general-purpose Linux server, without paying the resource cost of running Node-RED on Windows.