Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Mqtt + acl + lua fetch

$
0
0

I would like to clarify one point related to fetches and data availability.

I have the following setup related to MQTT backed sharding:

acl data_in_buffer req.len ge 4
tcp-request content set-var(txn.clientid)  req.payload(0,0),mqtt_field_value(connect,client_identifier) if data_in_buffer

and later I would like to do:

use_backend %[lua.shard_selection('mqtt', txn.clientid)]

what is not clear for me, is how all of that will behave with partial data, it might be not a complete MQTT packet, it might be proxy protocol, obviously, I want to select a backend iff client_identifier is extracted,
so I have to use ACL there, but I’m, not sure how to link extraction of client_identifier to txn.clientid to this?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>