Re: MQTT client id in Haproxy

2017-12-02 Thread Aleksandar Lazic

Hi.

-- Originalnachricht --
Von: "CJ" <augustin@gmail.com>
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




MQTT client id in Haproxy

2017-12-01 Thread CJ
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