Solved

load balancing a web application

Posted on 2013-12-03
10
828 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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
 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

739 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