Skip to content
© 2026 The ThingsBoard Authors
Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Connection management

Parameter Default Env variable
Server host localhost CLOUD_RPC_HOST
Server port 7070 CLOUD_RPC_PORT
Reconnect interval 3000 ms CLOUD_RECONNECT_TIMEOUT
Keepalive ping interval 10 s CLOUD_RPC_KEEP_ALIVE_TIME_SEC
Keepalive response timeout 5 s CLOUD_RPC_KEEP_ALIVE_TIMEOUT_SEC
SSL/TLS disabled CLOUD_RPC_SSL_ENABLED
Max inbound message size 4194304 (4 MB) CLOUD_RPC_MAX_INBOUND_MESSAGE_SIZE

If the connection drops, the Cloud Manager waits CLOUD_RECONNECT_TIMEOUT milliseconds before attempting to reconnect. Events continue to accumulate in the cloud_events queue during the outage and are delivered in order once the connection is restored.

For keepalive tuning on unstable networks, see gRPC keep-alive. For TLS configuration, see gRPC over SSL.

When Edge runs behind an HTTP CONNECT proxy, set the following variables:

Variable Default Description
CLOUD_RPC_PROXY_ENABLED false Enables proxy routing for the gRPC connection.
CLOUD_RPC_PROXY_HOST (empty) Proxy hostname or IP address.
CLOUD_RPC_PROXY_PORT 0 Proxy port.
CLOUD_RPC_PROXY_USERNAME (empty) Proxy username, if authentication is required.
CLOUD_RPC_PROXY_PASSWORD (empty) Proxy password, if authentication is required.

For a step-by-step proxy setup guide, see Connect Edge behind a proxy.