View Complete Thread
  • Round Robin with Sticky Session. Is it possible?

    Dec 03, 2018 08:44 PM|Dvijne|LINK

    Hi all,

    There is a .NET web application which must be load balanced. Most of the functions are stateless but there are a few which are stateful. The developers have implemented a Request Header which only exists in the request if the session is stateful, therefore it must use a sticky session based on this header's value. The rest of the requests could be distributed with Round Robin.

    I have two webservers which host the application and an ARR which is the load balancer. I'm looking for a way to tell the ARR that if the Sticky Header exist then use the Server Variable Hash algorithm (and set the HTTP_STICKY_HEADER variable to it) otherwise go ahead with Round Robin. It is working fine until the Sticky Header is provided in the request. But if the request doesn't contain this header than the ARR cannot use the Server Variable Hash algorithm and always goes to the same host. So my question is: Is it possible to configure ARR to use sticky session if a request header exists and use round robin if not?

    Thank you.

    Regards,

    Dvijne