TCP request redirection in HAProxy
-
Hi
how can we redirect TCP request to specifice backed server ?
Actually i have to redirect the mysql request to specific backed depending on database name jdbc request, Is there any option like url_beg for TCP, I have tried url_beg and hdr_beg but no success.
Is there any way for this ?
Thanks
Dnyaneshwar -
TCP does not have a notion of a "request". TCP is just a binary stream of data, like a file stream. What you would need is a reverse proxy that could forward based on mysql protocol.
My guess is this has not been done as it sounds like there is a better way to handle this, but I could be wrong. Hopefully someone can help you with if this can be done.