Set Node.js Options for Remote Instances

Cloud All tiers Self-Hosted All tiers
Back to the Changelog

FlowFuse Device Agent v3.8.1 adds support for setting Node.js command line arguments for Remote Instances.

This allows things like:

  • Setting the Node.js heap size for memory-intensive flows
  • Enabling --use-openssl-ca (Linux) or --use-system-ca (Windows and macOS) to use private CA certificates

Node.js options can be configured in two ways:

1. Via the device agent command line

Use the --node-options argument. This argument may be specified multiple times:

flowfuse-device-agent -c /opt/flowfuse-device-agent/device.yml \
--node-options='--max-old-space-size=256' \
--node-options='--use-openssl-ca'

2. Via the device.yml file

Add a nodeOptions section:

deviceId: xxxxxxx
forgeURL: https://app.flowfuse.com
token: xxxxxxxx
credentialSecret: xxxxx
nodeOptions:
- '--max-old-space-size=256'
- '--use-openssl-ca'

For more details, see Configuring Node.js Options.

Written By:

Senior Software Developer

Published on:

Related GitHub Issues

Recent Updates:

Sign up for updates