Nitin-Kashyap opened a new issue, #47908:
URL: https://github.com/apache/doris/issues/47908

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   When nginx enables proxy_protocol, and use health `"check type=mysql"`; 
causes check to fail.
   Since, per mysql-protocol client expects server params on connect without 
any transmission from client, However, ProxyProtocol enabled case server 
expects PROXY v1/v2 header.
   
   when nginx enables health check with type=mysql; without protocol header 
connection attempt is done, which will block for 600s. Effectively deselected 
for connection from nginx.
   
   ### Solution
   
   Enable connection to Mysql with and without proxy protocol header;
   
   Peek 1 byte data on the channel"
   - direct connection with not send any data: handle this like normal 
connection
   - Proxy connection will send Proxy Header: handle according to proxyHandler
   - Peeking this data should have a small timeout (~1s), read has 600s default.
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to