5
donuts
7y

Technical question that I just cant find the answer to anywhere.

I have a load balancer and want it to pass the IP of the original caller to the server. Usually it is done by modifying the header? of the Request HTTP packet? and adding X-Forwarded-For: ....

The LB team though says it needs to modify X-Originating-IP and somehow causes a noticeable impact of the speed of all requests.

I don't know the details but it should only modify the first Packet that has the HTTP headers and should be appending X-Forwarded-For. If only need to modify the Header packet, how can it slow down the whole interaction so much:

-Adds 100ms to a 200ms request
-Increases a 10 minute download to like 20-30 minutes

Comments
  • 1
    Something is going wrong. That sounds more like they wrote the loadbalancer themselves. A normal loadbalancer would never need 100ms
  • 0
    @Noren to add the header? the key point is only affected if the header function is turned on
  • 0
    Do you have control of the LB or the web servers ?
  • 0
  • 0
    Is a webmail app ?
  • 0
    @elgringo its an internal enterprise system by we don't handle the network setup. Request network team to do the LB but dunno if there doing it wrong BC logically there should be no way adding an IP address header would cause such a performance hit
Add Comment