Hi
Is it possible to prioritize a tcp frontend over an other with same or overlapping backend?
Our use-case: I have a priority and a normal tcp frontend with same config and backend servers. Now I have to make sure that the priority frontend will always be prioritized in the queue. Is there a nice solution without separation of the backends?
I assume you can use queue priority classes, as per:
http://docs.haproxy.org/2.0/configuration.html#4.2-http-request%20set-priority-class
frontend prio1
bind :100
http-request set-priority-class int(-1000)
default_backend back
frontend prio2
bind :101
http-request set-priority-class int(-500)
default_backend back
frontend prioDef
bind :102
default_backend back
My requests aren’t http. I didn’t see the same option for tcp mode.
According to the docs, it should be compatible with tcp-request content
:
tcp-request content set-priority-class int(-1000)
Ah nice. I will try it Thanks