Solved

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

Posted on 2015-02-05
3
85 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
[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
  • 2
3 Comments
 
LVL 35

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 35

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

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