emqx/apps
Kjell Winblad 1cf01197bb fix: increase heartbeat time to avoid extreme MongoDB logging
Our MongoDB driver creates a new temporary connection, for every active
connection, to just do a single heartbeat test. There is configurable
delay between every heartbeat test. When the user has an EMQX cluster
with a MongoDB bridge (to a MongoDB replica set), there will be a lot of
connections. Furthermore, as MongoDB creates a log entry every time a
new connection is created, the log will be flooded with info about new
connection. One user have reported more than 1MB of log data in a 10
minute period.

This commit tries to fix this by increasing the default delay between
heartbeats. A better fix would be to change the MongoDB driver so that
it does not create a new connection just to do a heartbeat check, but
this is more complicated so we leave this to the future. We might also
swap out the current MongoDB driver to something better.

Fixes:
https://github.com/emqx/emqx/issues/9851
2023-03-13 14:58:53 +01:00
..
emqx Merge pull request #9893 from lafirest/feat/filiter_banned 2023-03-13 09:58:39 +08:00
emqx_authn chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_authz Merge pull request #10098 from kjellwinblad/kjell/fix/mongo_authz_crash 2023-03-13 10:46:49 +01:00
emqx_auto_subscribe docs: fix bad i18n files 2023-02-08 17:25:22 +01:00
emqx_bridge chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_conf chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_connector fix: increase heartbeat time to avoid extreme MongoDB logging 2023-03-13 14:58:53 +01:00
emqx_ctl chore: change 'emqx_ctl' usage to 'emqx ctl' 2023-02-22 13:57:55 +01:00
emqx_dashboard chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_exhook chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_gateway chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_machine Merge remote-tracking branch 'origin/release-50' into 0308-merge-release-50-back-to-master 2023-03-08 16:46:45 +01:00
emqx_management chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_modules chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_plugin_libs chore: bump apps version 2023-02-14 22:04:29 +08:00
emqx_plugins fix(schema): binary string for default values 2023-02-21 09:09:51 +01:00
emqx_prometheus chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_psk ci: add i18n style check script 2023-02-09 11:41:52 +01:00
emqx_resource chore: bump app versions following last merge-back 2023-03-10 16:44:15 +03:00
emqx_retainer chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_rule_engine chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_slow_subs chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00
emqx_statsd chore(mria): Bump version to 0.4.0 2023-03-11 00:37:25 +01:00