thingsboard / thingsboard-edge

Apache License 2.0
101 stars 76 forks source link

Cloud events efficiency seems to be very slow #44

Closed WingedKitten closed 1 year ago

WingedKitten commented 1 year ago

How can I improve his speed?

I only access the 19 sets of equipment, they once every 5 seconds to send data

But after a period of time the edge and thingsboard data latency for eight hours

Environment

image

WingedKitten commented 1 year ago

@volodymyr-babak Please tell me how to optimize the problem

volodymyr-babak commented 1 year ago

@WingedKitten

hello, so in your case your 19 devices send timeseries data only every 5 seconds and you have lag on edge side for 8 hours? Here are the default setting for the batch size and timeout to send data to cloud: https://thingsboard.io/docs/edge/user-guide/install/config/#cloud-parameters

image

So every single second edge is able to send 50 messages to the cloud. I believe that the root cause not in this configuration, but somewhere else. Could you please attach logs from your edge instance and from your cloud instance as well?

WingedKitten commented 1 year ago

I checked the network, memory, and bandwidth, utilization rate is very low, I adjusted the CLOUD_RPC_STORAGE_MAX_READ_RECORDS_COUNT parameters, its speed faster, it should be the problem。 Thanks for your reply

volodymyr-babak commented 1 year ago

@WingedKitten closing the issue. Please reopen in case you'll face any new issues with performance.