Set NodeJS Options for Remote Instances
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:
bash 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:
yaml deviceId: xxxxxxx forgeURL: https://app.flowfuse.com token: xxxxxxxx credentialSecret: xxxxx nodeOptions: - '--max_old_space_size=256' - '--use-openssl-ca'
Written By:
Senior Software Developer
Published on:
Related GitHub Issues
Recent Updates:
- Restoring snapshots to developer-mode Remote Instances
- HA Hosted Instance Rolling Restart
- Immersive Mode for Remote Instances
- FlowFuse Expert: Palette Queries