ARTEMIS-3915 Add support for proxy protocol on broker acceptors#4179
ARTEMIS-3915 Add support for proxy protocol on broker acceptors#4179rtista wants to merge 1 commit into
Conversation
|
Couple of things:
I'm not quite sure what you're asking here. The broker can be run locally standalone using the normal distribution available from the website. The broker can be embedded and run just as you're doing in the test code you pasted. The broker can also be run via Docker as described here.
A basic sanity check for each messaging protocol would be a good place to start. Something that just sends and consumes a message. Of course, you'd start first with manual testing. I'd recommend using your own instance of HAProxy with the Ultimately, though, we need tests in the test-suite to validate the functionality for each release and to mitigate against regressions. However, this may be difficult as I don't see any kind of Java implementation for HAProxy which you could embed and use for testing. You may need to implement something of your own here to act like HAProxy using Netty and Hope that helps! |
|
@rtista, any updates on this? |
|
@rtista, I think this would be a worthwhile feature to add, but I'm going to close the PR for now since it appears it's been abandoned. Feel free to re-open the PR if you return to it. Thanks! |
|
Replaced by #5908. |
Hey guys,
As discussed in a thread on the developers mailing list, I've created ARTEMIS-3915 and have started developing support for HAProxy PROXY protocol on Artemis acceptors.
I think I've modified all the right places, and the changes are fairly simple to review, I'm a bit unsure about the channel pipeline modification, but I think it makes sense for the PROXY protocol handler, if configured, to be the first in the pipeline as it represents the frontier protocol, sicne any other handler will need the packets to first be decoded from PROXY protocol into something else that they understand.
My work is mostly based on the examples from Netty.
However I have some doubts:
I still intend to add some documentation about the this theme, and maybe an example of a cluster deployed with an HAProxy instance which should be of great aid to new users which require a robust high availability solution, but I'd like to first close the implementation details.
@jbertram, since you were the one you led me here, could I ask for some advice? 😄