Welcome! Log In Create A New Profile

Advanced

MQTT client id in Haproxy

Posted by CJ 
CJ
MQTT client id in Haproxy
December 01, 2017 02:50PM
Hi All,

Is it possible to get client id in haproxy in tcp mode just like http mode.

I'm trying to get mqtt client id in haproxy tcp mode

Similar case in nginx:

https://www.nginx.com/blog/nginx-plus-iot-load-balancing-mqtt/


Regards,

CJ
Aleksandar Lazic
Re: MQTT client id in Haproxy
December 02, 2017 12:30PM
Hi.

------ Originalnachricht ------
Von: "CJ" <[email protected]>
An: haproxy@formilux.org
Gesendet: 01.12.2017 14:38:07
Betreff: MQTT client id in Haproxy

>Hi All,
>
>Is it possible to get client id in haproxy in tcp mode just like http
>mode.
>
>I'm trying to get mqtt client id in haproxy tcp mode
>
>Similar case in nginx:
>
>https://www.nginx.com/blog/nginx-plus-iot-load-balancing-mqtt/
As nginx uses the nginScript ( mqtt.js ), which is a very cool solution
IMHO, I think in haproxy could you try to build the solution with
req.payload or lua.

http://cbonte.github.io/haproxy-dconv/1.8/configuration.html#7.3.5-req.payload
http://cbonte.github.io/haproxy-dconv/1.8/configuration.html#7.3.5-req.payload_lv
http://www.arpalert.org/src/haproxy-lua-api/1.7/index.html

It would be helpful to have some fetch methods for this mqtt stuff, e.
g. mqtt.[ch] ;-)

But this is another feature request.

>Regards,
>
>CJ

Regards
Aleks
Sorry, only registered users may post in this forum.

Click here to login