EMQX 4.4 new feature: a top view of slowest subscribers

Background

As a MQTT broker admin, you may often want to know which clients are the slowest. We have a nice ‘top’ view for you. One option is perhaps to instrument the subscriber code with latency measurements. However given in MQTT world, the subscribers might be devices out in the wild which are hard to upgrade or collect metrics from.

EMQX v4.4 has a nice feature to overcome this challenge.

Quick view

The per clientid-topic latency measurements are ranked in the table view as below.

EMQX Slow subscribers Top-View

Slow subscribers Top-View

A new module named emqx_mod_slow_subs was added in this release. With this module enabled, EMQX will start measuring message transmission latency. The measurement always starts at when a message is received by EMQX, the end of the measurement is configurable. Find more details in EMQX doc Slow subscribers statistics

FAQ

How to enable it

It can be enabled from the dashboard UI, in the “modules” tab.

How to configure it

Find the configs in emqx.conf config namespace is module.slow_subs.*.

For EMQX Enterprise edition, it can be dynamically configured from the dashboard UI.

EMQX Enterprise dashboard

EMQX Enterprise dashboard

Does it affect system performance

Very little with the default configuration.

  • First of all, the module can be switched off, when switched off, it costs nothing.
  • EMQX only collects latency for statistics when over certain limit (500ms by default).
  • EMQX does not rank ALL subscribers, but the slowest top-K during the latest sliding time window. The module.slow_subs.top_k_num config value (default to 10), as long as it is not tens of thousands, the resources spent on continuous ranking adjustment is insignificant.
Try EMQX Enterprise for Free
Get Started →

Related Posts

Deploying EMQX 4.0 cluster on Kubernetes via Helm3

Helm3 was released in November 2019, which adds many new features compared to Helm2.In this article, how to deploy EMQX cluster on Kubernetes via Helm3 will be introduced.

2019-10-21
EMQX Enterprise 4.4.11 - Integrate with Google Cloud Pub/Sub, support CRL/OCSP stapling

This release includes CRL and OCSP Stapling to provide more flexible security protection for clients and integrates with Google Cloud Pub/Sub to help you create more value from IoT data using Google Cloud services.

2022-11-28
Coming soon EMQX v4.4 - EMQX Newsletter 202111

In November, EMQX teams kept optimizing the product in response to recent problems and user feedback.

2021-12-09