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.

Example:

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

If referrer != app.yourdomain.com and the request ~ /rest:
If the page requested == /login.jsp:
Direct traffic to Node 1 or Node 2 or Node 3 //normal traffic
Else:
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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

162 views 0 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you