0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-23 00:39:58 +00:00
Commit graph

6 commits

Author SHA1 Message Date
Stelios Fragkakis
c78566b2d0
Improve agent to cloud status update process ()
* Send node update info only if the host has finished replication

* Log number of hosts replicating / pending to load context

* Remove prefix (thread name is enough)
2023-11-07 11:39:11 +02:00
Stelios Fragkakis
4c6a13e5bd
Use one thread for ACLK synchonization ()
* Remove aclk sync threads

* Disable functions if compiled with --disable-cloud

* Allocate and reuse buffer when scanning hosts
Tune transactions when writing metadata
Error checking when executing db_execute (it is already within a loop with retries)

* Schedule host context load in parallel
Child connection will be delayed if context load is not complete
Event loop cleanup

* Delay retention check if context is not loaded
Remove context load check from regular metadata host scan

* Improve checks to check finished threads

* Cleanup warnings when compiling with --disable-cloud

* Clean chart labels that were created before our current maximum retention

* Fix sql statement

* Remove structures members that of no use
Remove buffer allocations when not needed

* Fix compilation error

* Don't check for service running when not from a worker

* Code cleanup if agent is compiled with --disable-cloud
Setup ACLK tables in the database if needed
Submit node status update messages to the cloud

* Fix compilation warning when --disable-cloud is specified

* Address codacy issues

* Remove empty file -- has already been moved under contexts

* Use enum instead of numbers

* Use UUID_STR_LEN

* Add newline at the end of file

* Release node_id to prevent memory leak under certain cases

* Add queries in defines

* Ignore rc from transaction start -- if there is an active transaction, we will use it (same with commit) should further improve in a future PR

* Remove commented out code

* If host is null (it should not be) do not allocate config (coverity reports Resource leak)

* Do garbage collection when contexts is initialized

* Handle the case when config is not yet available for a host
2023-03-16 17:27:17 +02:00
Emmanuel Vasilakis
19d9a0030d
UpdateNodeCollectors message ()
* add new aclk-schemas. remove services related

* add updatenodecollectors message

* build with --disable-cloud
2022-07-07 21:50:44 +03:00
Stelios Fragkakis
c261a771cc
Schedule retention message calculation to a worker thread ()
* Move aclk_update_retention to the proper header file

* Do a scan but avoid going through all the dimensions if we have too much to delete -- do not generate a retention message in that case

* Schedule the retention calculation to a worker

* Adjust messages in the access log

* Fix compilation errors with --disable-cloud
2022-06-01 19:10:32 +03:00
Stelios Fragkakis
12f16063f5
Enable additional functionality for the new cloud architecture () 2021-10-06 20:55:31 +03:00
Stelios Fragkakis
cb405deec8
Add node message support for ACLK new architecture ()
* node info function

* Code cleanup

* Remove unnecessary strdupz / freez functions

* Fix complication error if ACLK_NG is not available
2021-09-20 18:51:50 +03:00