0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 09:11:50 +00:00

Allows ACLK-NG to grow MQTT buffer ()

* bumps mqtt_websockets to allow buffer growth on buffer full error
This commit is contained in:
Timotej S 2021-07-26 17:55:08 +02:00 committed by GitHub
parent 1bc3051f8e
commit f124400595
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -562,7 +562,8 @@ static int aclk_attempt_to_connect(mqtt_wss_client client)
.will_topic = "lwt",
.will_msg = NULL,
.will_flags = MQTT_WSS_PUB_QOS2,
.keep_alive = 60
.keep_alive = 60,
.drop_on_publish_fail = 1
};
#ifndef ACLK_DISABLE_CHALLENGE
@ -715,6 +716,11 @@ void *aclk_main(void *ptr)
goto exit;
}
// Enable MQTT buffer growth if necessary
// e.g. old cloud architecture clients with huge nodes
// that send JSON payloads of 10 MB as single messages
mqtt_wss_set_max_buf_size(mqttwss_client, 25*1024*1024);
aclk_stats_enabled = config_get_boolean(CONFIG_SECTION_CLOUD, "statistics", CONFIG_BOOLEAN_YES);
if (aclk_stats_enabled) {
stats_thread = callocz(1, sizeof(struct aclk_stats_thread));

@ -1 +1 @@
Subproject commit 6a64ebadf19871acda156d0b5b4b0ee2e50153c5
Subproject commit 7849ed2a1980d821cc708fc88fd2ca3d27149d23