Edge configuration for constrained hardware & networks
When the ClearBade Edge is used on constrained hardware (i.e. with limited CPU and Memory resources) or in environments with constrained networks (e.g. with bad cellular connectivity), there are certain configuration settings that are recommended to improve connectivity, improve performance and reduce resource utilization.
NOTE:
These changes are made in the config.toml file used by the edge.
If a mentioned section is missing it can simply be added to the config.toml.
If a mentioned parameter is missing then the default value is currently in use.
If a mentioned parameter is missing it can simply be added and its value set to a non-default value.
Recommended changes:
[RPC] section (RPC = Remote Procedure Call):
RPCConnectionTimeout
Amount of time an edge will try to establish connection with the platform before timing out
Default: 30 (seconds)
RECOMMENDATION: Set this to 1000 or greater. This has been seen to help in environments with constrained communication
RPCTimeout
Amount of time an edge will wait for an RPC call to complete before timing out.
Default: 120 (seconds)
RECOMMENDATION: Set this to 1000 or greater. This has been seen to help in environments with constrained communication
RPCKeepaliveInterval
Period of heartbeat from edge to let platform know it is still connected
Default: 60 (seconds)
RECOMMENDATION: Set this to 120 or greater. This has been seen to help in environments with constrained communication
[LeanMode] section:
LeanMode
When true, runs edge with minimal logging
Default: false
RECOMMENDATION: Set this to true to reduce disk usage. Set this to false temporarily when troubleshooting.
NOTE: Setting this parameter to true causes other parameters in the section to be ignored. Setting this to true overrides all settings that increase logging.
StoreAnalytics
When true, causes MQTT message history to be stored
Default: true
RECOMMENDATION: If LeanMode cannot be set to false, then set this to false to reduce disk usage
StoreCodeLogs
When true, causes storage of logs for code-services where logging is enabled
Default: true
RECOMMENDATION: If LeanMode cannot be set to false, then set this to false to reduce disk usage
MaxCodeLogs
Max. number of most recent code logs to keep
Default: 25
RECOMMENDATION: Leave as is
MaxAuditTrailDays
Number of days of audit trail to keep
Default: 7
RECOMMENDATION: Leave as is