summaryrefslogtreecommitdiffstats
path: root/aclk
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2022-07-06 09:40:49 +0200
committerGitHub <noreply@github.com>2022-07-06 09:40:49 +0200
commit8d5850fd49bf6308cd6cab690cdbba4a35505b39 (patch)
treed7e0459e0b324e7952a2fb73e32fe4a99d6e2b7e /aclk
parent36280fc2cfbc637038ddad004d26d55ac12e5f03 (diff)
Use new MQTT as default (revert #13258)" (#13287)
Diffstat (limited to 'aclk')
-rw-r--r--aclk/README.md4
-rw-r--r--aclk/aclk.c2
-rw-r--r--aclk/aclk_api.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/aclk/README.md b/aclk/README.md
index f595726e3d..a6a4feeb2c 100644
--- a/aclk/README.md
+++ b/aclk/README.md
@@ -50,12 +50,12 @@ You can configure following keys in the `netdata.conf` section `[cloud]`:
[cloud]
statistics = yes
query thread count = 2
- mqtt5 = no
+ mqtt5 = yes
```
- `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.
- `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).
-- `mqtt5` enables the new MQTT5 protocol implementation in the Agent. Currently a technical preview.
+- `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.
## Disable the ACLK
diff --git a/aclk/aclk.c b/aclk/aclk.c
index efbcc5fec9..2489d02c3c 100644
--- a/aclk/aclk.c
+++ b/aclk/aclk.c
@@ -660,7 +660,7 @@ void *aclk_main(void *ptr)
if (wait_till_agent_claim_ready())
goto exit;
- use_mqtt_5 = config_get_boolean(CONFIG_SECTION_CLOUD, "mqtt5", CONFIG_BOOLEAN_NO);
+ use_mqtt_5 = config_get_boolean(CONFIG_SECTION_CLOUD, "mqtt5", CONFIG_BOOLEAN_YES);
if (!(mqttwss_client = mqtt_wss_new("mqtt_wss", aclk_mqtt_wss_log_cb, msg_callback, puback_callback, use_mqtt_5))) {
error("Couldn't initialize MQTT_WSS network library");
diff --git a/aclk/aclk_api.c b/aclk/aclk_api.c
index a48594715a..9446b407f2 100644
--- a/aclk/aclk_api.c
+++ b/aclk/aclk_api.c
@@ -61,7 +61,7 @@ void add_aclk_host_labels(void) {
}
- int mqtt5 = config_get_boolean(CONFIG_SECTION_CLOUD, "mqtt5", CONFIG_BOOLEAN_NO);
+ int mqtt5 = config_get_boolean(CONFIG_SECTION_CLOUD, "mqtt5", CONFIG_BOOLEAN_YES);
rrdlabels_add(labels, "_mqtt_version", mqtt5 ? "5" : "3", RRDLABEL_SRC_AUTO);
rrdlabels_add(labels, "_aclk_impl", "Next Generation", RRDLABEL_SRC_AUTO);