@cryptotaxi247 / netdata-1 / commits / 862c5a969

Use new mqtt implementation as default (#13132)

flips mqtt5 to be default instead of mqtt3

Timotej S committed Jun 27, 2022 at 09:18 UTC 862c5a9694be2069997408326f9cf7ee9403dce4
3 files changed +4 -4
aclk/README.md
+2 -2
@@ -50,12 +50,12 @@ You can configure following keys in the `netdata.conf` section `[cloud]`:
50 [cloud]
51 statistics = yes
52 query thread count = 2
53 - mqtt5 = no
53 + mqtt5 = yes
54 ```
55
56 - `statistics` enables/disables ACLK related statistics and their charts. You can disable this to save some space in the database and slightly reduce memory usage of Netdata Agent.
57 - `query thread count` specifies the number of threads to process cloud queries. Increasing this setting is useful for nodes with many children (streaming), which can expect to handle more queries (and/or more complicated queries).
58 -- `mqtt5` enables the new MQTT5 protocol implementation in the Agent. Currently a technical preview.
58 +- `mqtt5` allows disabling the new MQTT5 implementation which is used now by default in case of issues. This option will be removed in future stable release.
59
60 ## Disable the ACLK
61
aclk/aclk.c
+1 -1
@@ -801,7 +801,7 @@ void *aclk_main(void *ptr)
801 if (wait_till_agent_claim_ready())
802 goto exit;
803
804 - use_mqtt_5 = config_get_boolean(CONFIG_SECTION_CLOUD, "mqtt5", CONFIG_BOOLEAN_NO);
804 + use_mqtt_5 = config_get_boolean(CONFIG_SECTION_CLOUD, "mqtt5", CONFIG_BOOLEAN_YES);
805
806 #ifdef ENABLE_NEW_CLOUD_PROTOCOL
807 if (!(mqttwss_client = mqtt_wss_new("mqtt_wss", aclk_mqtt_wss_log_cb, msg_callback, puback_callback, use_mqtt_5))) {
aclk/aclk_api.c
+1 -1
@@ -71,7 +71,7 @@ void add_aclk_host_labels(void) {
71 break;
72 }
73
74 - int mqtt5 = config_get_boolean(CONFIG_SECTION_CLOUD, "mqtt5", CONFIG_BOOLEAN_NO);
74 + int mqtt5 = config_get_boolean(CONFIG_SECTION_CLOUD, "mqtt5", CONFIG_BOOLEAN_YES);
75 rrdlabels_add(labels, "_mqtt_version", mqtt5 ? "5" : "3", RRDLABEL_SRC_AUTO);
76 rrdlabels_add(labels, "_aclk_impl", "Next Generation", RRDLABEL_SRC_AUTO);
77 rrdlabels_add(labels, "_aclk_proxy", proxy_str, RRDLABEL_SRC_AUTO);