Version: 2.5.0
mqtt-proxy
Summary#
Name#
The plugin mqtt-proxy only works in stream model, it help you to dynamic load
balance by client_id of MQTT.
And this plugin both support MQTT protocol 3.1.* and 5.0.
Attributes#
| Name | Type | Requirement | Default | Valid | Description |
|---|---|---|---|---|---|
| protocol_name | string | required | Name of protocol, should be MQTT in normal. | ||
| protocol_level | integer | required | Level of protocol, it should be 4 for MQTT 3.1.*. it should be 5 for MQTT 5.0. | ||
| upstream.ip | string | required | IP address of upstream, will forward current request to. | ||
| upstream.port | number | required | Port of upstream, will forward current request to. |
How To Enable#
To enable this plugin, we need to enable the stream_proxy configuration in conf/config.yaml first.
For example, the following configuration represents listening on the 9100 TCP port.
Then send the MQTT request to port 9100.
Creates a stream route, and enable plugin mqtt-proxy.
Delete Plugin#
The mqtt-proxy plugin has been deleted now.