Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

load balancing a web application

Posted on 2013-12-03
10
Medium Priority
?
870 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 2000 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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
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 2000 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

927 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