Solved

How to create a active/active load balancing in Windows 2003 server

Posted on 2015-02-05
3
79 Views
Last Modified: 2015-04-28
Hi,

I have a custom php based web application created, which I need to run from a cluster of servers i.e. all the servers are running the same web application and the load on to them is controlled by a load balancer. But the actual thing that I want to configure is that all the servers are running the same code of the application. I need not go on to each server and make the changes in the application everytime.

Kindly let me know if anything else is required.

Thanks in advance.
0
Comment
Question by:Vipin Kumar
  • 2
3 Comments
 
LVL 34

Assisted Solution

by:gr8gonzo
gr8gonzo earned 500 total points
ID: 40591461
You can do it in a number of ways:

1. Put the to-be-shared-code on a shared NAS. This, however, could create a resource bottleneck that partially defeats the purpose of load-balancing.

2. Use an automatic file-sharing-updating mechanism like OneDrive/SkyDrive (whatever it's called these days), so when you make changes to the code base, it gets automatically pushed to the other servers. The caveat here is that the application isn't very I/O friendly. So you'll have an application that is hitting the filesystem a fair amount throughout the day and it can be performance-degrading. (It hooks into explorer.exe, so that's where you'll start seeing I/O spikes if you're watching the resource usage through something like Process Explorer).

3. Don't change code directly on the servers - use a deployment tool to push the code directly to all servers at the same time. For example, have a development box that has the master code. When it's ready to be pushed, have the tool send the changed files to all the servers via SFTP or something like that (not regular FTP - NEVER regular FTP).

4. Similar to #3, but use a version control system like Git. Once you reach a point where the new code is tested and ready to go, commit that code to the repository and tag it as the next version. Then send some kind of signal (a dozen ways to do this part) to all of the production servers and tell them to do a git checkout of that new tagged commit. They should get all of the new code and be in perfect sync. This approach also lets you rollback to previous code easily in case the new code has an unexpected disastrous effect. Just send the same kind of signal but send the previous tag version and they'll all check out the previous code and be instantly rolled back.

#4 takes a little bit of setup time, but it's worth the trouble.
0
 
LVL 1

Author Comment

by:Vipin Kumar
ID: 40593320
Is there no way that I can implement it locally, as the servers donot have internet access. Kindly share the implementation steps for the local method as well as the Git setup method as well.
0
 
LVL 34

Accepted Solution

by:
gr8gonzo earned 500 total points
ID: 40603395
Okay, so a lack of internet access eliminates option #2.

I would not recommend #1 - I only mentioned it because some people suggest it without realizing that it can be a bottleneck in a load-balanced situation.

Option 3 and option 4 don't need internet access - they only require that the servers are all networked together. A Git code repository can be set up on a local server and all of the other servers can communicate with it. Here is an article on Git if you are unfamiliar with it:

http://www.experts-exchange.com/Programming/Project_Management/Version_Control_CVS/A_12235-Git-101.html
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Know what services you can and cannot, should and should not combine on your server.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

23 Experts available now in Live!

Get 1:1 Help Now