Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

DEPRECATED An Azure role that configures ARR as a sticky session load balancer

License

Notifications You must be signed in to change notification settings

azure-contrib/AzureStickySessions

Repository files navigation

DEPRECATED

Client IP affinity is now a feature of the Azure platform.

AzureStickySessions

A Web Role which will act as a sticky session load balancer for a given Role in Azure.

How it works

Web traffic is proxied through a role which adds a cookie to the HTTP response. On subsequent requests this cookie is used to route the request back to the same server.

In the solution are three projects.

  • Two10.Azure.Arr.Cloud The Cloud project which will deploy the solution to Azure.
  • Two10.Azure.Arr A Web Role which contains the ARR installation files, and code to configure ARR to load balance requests to your servers using client affinity (sticky sessions).
  • ExampleWebApplication An example web application, which displays the Azure the name of the machine your connected to, allowing you to check that the load (un)balancing works. This should be replaced by your application.

Requests coming in to Azure will be handled by one of the Two10.Azure.Arr instances. If this is the first request made by the client, they will be directed to an ExampleWebApplication instance using a round robin algorithm. A cooking will be written, which will provide a hint in subsequent requests, so the client is redirected to the same instance (i.e. a sticky session).

The Two10.Azure.Arr application continually queries the instances in your deployment belonging to the WebRole1 role. These instances will be added to a web farm configured in IIS on this role. Instances that are removed from Azure will likewise be removed from the farm.

Configuration

The role being load balanced much have an internal HTTP endpoint configured, called 'Internal' (case sensitive).

License

MIT

About

DEPRECATED An Azure role that configures ARR as a sticky session load balancer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published