It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to configure REST API traffic and send it to a dedicated node (or a set of nodes) that only hand Edited

we have scenario to implement Traffic distribution with Confluence Data Center.

we are using haproxy is a load balance, want to Split  REST API & Web traffic for Confluence DC . 

I have 4 nodes and I want to route REST API queries to node number 3. I tried to implemet It , but it's not working.


If referrer == and the request ~ /rest:
Direct traffic to Node 1 or Node 2 or Node 3 //normal traffic

If referrer != and the request ~ /rest:
If the page requested == /login.jsp:
Direct traffic to Node 1 or Node 2 or Node 3 //normal traffic
Direct to Node 4 //external REST API traffic

for the above example i am unable to implement this in our haproxy.cfg file. what is referrer... and other things.


Please share any details, instructions, or examples for how you'd implement this.



1 answer

1 accepted

0 votes
Answer accepted

Hello there! This request is quite different, first time I have seen it.

You should be able to redirect your traffic by using rules in your haproxy. Much like what is described here in this Stackoverflow - Serverfault post:

How can I make haproxy route requests based on URL substrings?


Also, this should also work if you send the request directly to the node's IP with the curl, for example. However, if your balancer is set to work on any request to any of your node's IPs this approach may not work.

Jagadeesh, let us know your results! Looking forward to your reply.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

4,046 views 15 38
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you