Solved

load balancing a web application

Posted on 2013-12-03
10
793 Views
Last Modified: 2013-12-09
I am developing an ASP.NET web application with will run with A10 Model AX3030 for load balancing.

The users will connect to a computer through VPN or Terminal Server and from there they will click on a IE shortcut with URL pointing to the load balancer.

Since all the request to load balancer will originate from the same machine,
do I need to do anything special in the web application that will help the load balancer ?
0
Comment
Question by:vu3lmg
  • 5
  • 5
10 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 39693112
Not familiar with the AX3030.  How does it choose to load balance the traffic?

As to your web application, do you have to authenticate?  If so do all http requests from a single user have to go back to the same server?  That is do you require sticky/persistent  sessions?

If so they somehow between your app and the AX3030 you will need to differentiate between user#1 and user#2 when the have the same IP address.
0
 
LVL 1

Author Comment

by:vu3lmg
ID: 39693216
Dear giltjr

Thanks for the quick response.

Yes my application does authenticate each user.  
Yes all http requests from a single user have to go to the same web-server.

Can A10 load balancer use the ASP.NET_SessionId cookie to distinguish requests from different users ?
0
 
LVL 57

Assisted Solution

by:giltjr
giltjr earned 500 total points
ID: 39693319
Not sure, I've never used an A10.  I've only used BigIP F5's and they can.    

The F5 would do this via what they call iRules, which is a script that is run for each connection that it is load balancing.  It would setup an internal session persistence record that would map the ASP.NET_SessionId  to the back end server.  We do this today using the JSESSIONID for Java.

I found an pdf on how to setup the AX to load balance Exchange.  I know its not what you are doing, but I did find that the A10 AX stuff has what it calls "aFlex Script".  Looking at it it looks almost exactly like F5's iRules.  Even down to have a persist function uie.  

http://www.a10networks.com/resources/files/DG_Exchange.pdf

So based on that I am sure that somebody has an aFlex Script to use the ASP.NET_SessionId for uie persistance.
0
 
LVL 1

Author Comment

by:vu3lmg
ID: 39693609
Dear giltjr

I am studying the document you've mentioned. In the mean time can you please reply my last question above (do I need to do anything special in the web application that will help the load balancer ?).
0
 
LVL 57

Expert Comment

by:giltjr
ID: 39693696
No.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 1

Author Comment

by:vu3lmg
ID: 39693744
Dear giltjr
Thanks for the above reply.

I am planning to write an aFlex script that will check for value of the cookie named ASP.NET_SessionId for persistence.  
Is that a correct approach ?
0
 
LVL 57

Expert Comment

by:giltjr
ID: 39693764
Yes.  If A10 does not provide samples, I'll point you to a F5 sample that you you should be able to convert easily.
0
 
LVL 1

Author Comment

by:vu3lmg
ID: 39694073
Please send me the links to F5 sample.
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 39694215
You may need to create a id on the site.  Of couse you need to tweak this to meet coding requirements of your load balancer, but you should get the idea.

https://devcentral.f5.com/wiki/iRules.Universal-Persistence-iRule-based-upon-ASP-NET-SessionId.ashx
0
 
LVL 1

Author Closing Comment

by:vu3lmg
ID: 39706461
Got the concept.  Will get back if I have more questions.
Thanks for the quick replies.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now