-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delay child disconnect update #18712
Conversation
58b900f
to
ece8858
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR is working as expected. LGTM!
Dealing with an issue on older systems... |
Assume the child will return at 125% of that time Add timers to handle scheduluing of the node update events to the cloud Handle faster reconnection and reschedule timer to correct state
ece8858
to
1a99ba0
Compare
It looks like our sqlite has an issue: In function 'sqlite3Strlen30',
inlined from 'sqlite3ColumnSetColl' at /home/thiago/Netdata/tests_netdata/src/database/sqlite/sqlite3.c:121492:10:
/home/thiago/Netdata/tests_netdata/src/database/sqlite/sqlite3.c:34720:28: warning: 'strlen' reading 1 or more bytes from a region of size 0 [-Wstringop-overread]
34720 | return 0x3fffffff & (int)strlen(z);
| ^~~~~~~~~ We should update it when it is possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything is fine. On local dashboard and cloud I had the child set as stale
.
Summary
When a child node disconnects from a parent delay sending the disconnect message to the cloud expecting the child
will be restarting.
The parent will use information from the child (start and shutdown times) to calculate when the child is expected to reconnect before sending out the message to the cloud.
It will wait
(start + shutdown) * 1.25
seconds (max of 30 seconds) before sending the message.