Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 748 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 748 Bytes

Deploying EMQX Cluster with HAProxy MQTT Load Balancing

This is a quick example to show how to deploy EMQX Cluster with HAProxy MQTT Load Balancing.

For more information like how to configure HAProxy, please see EMQX Documentation: MQTT Load Balancing.

Useage

docker compose up -d

Open http://localhost:18083 to visit EMQX Dashboard.

Test

EMQX MQTT TCP

Create 10 clients and subscribe to topic t/{clientid} with MQTT.

mqttx bench sub --config ./mqttx_cli_emqx_tcp.json

EMQX MQTT TLS

Create 10 clients and subscribe to topic t/{clientid} with MQTT TLS.

mqttx bench sub --config ./mqttx_cli_emqx_tls.json