codelipenghui opened a new pull request #8686:
URL: https://github.com/apache/pulsar/pull/8686


   ### Motivation
   
   Currently, if enable the proxy in the pulsar cluster and client connect to 
the cluster through the proxy, when we get topic stats, the consumer address 
and producer address are not the real client address. This PR fix this problem 
by leverage HAProxy proxy protocol since this is a more general approach.  more 
details about the proxy protocol see 
   https://www.haproxy.com/blog/haproxy/proxy-protocol/
   
https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html
   http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
   
   ### Modifications
   
   Allow enable proxy protocol on proxy or broker.
   
   ### Verifying this change
   
   Tests added
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (yes)
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to