The following guide describes high level best practices for running a Stream Node as a node operator.
Regular Updates
STANDBYONSTART
to true in your environment variables if you are running blue green deployments behind a proxy or network load balancer. This will allow you to bring up a new instance of the FE in standby mode, and once it is passing health checks, it will automatically switch to primary.STANDBYONSTART=true
. A node started in this manner will not attach to Storage layer or shutdown if it is not registered yet on the Towns Chain.Backups
Monitoring
METRICS__ENABLED=true
in your node’s environment, you can enable detailed metrics collection for your node. Metrics are instrumented using Open Telemetry and can be used to monitor your node’s performance and health by navigating to the metrics endpoint at https://<node-hostname>/metrics
. See node observability for more information.Common Issues
Diagnostic Tools
DEBUGENDPOINTS__PPROF=true
in your environment variables to enable pprof endpoints.Then either set DEBUGENDPOINTS__PRIVATEDEBUGSERVERADDRESS
to a specific address (i.e. ‘127.0.0.1:8080’) and port or DEBUGENDPOINTS__MEMPROFILEDIR
to a directory to save the memory profile files periodically.pprof
endpoints available:Access Control
Encryption and Network Security
Regular Security Audits