I have 2 servers located at different locations. My purpose is when connection to 1st server's too much (such as 5000 connections), i want to redirect all queries to 2nd server. Can you help me? I think maybe there're solutions at both php code and system (such as install a software on server). My server is running linux.
Thanks for your help.
Help with Load Balancing problem!
Moderator: General Moderators
- lonelywolf
- Forum Commoner
- Posts: 28
- Joined: Tue Jun 10, 2008 6:15 am
- maliskoleather
- Forum Contributor
- Posts: 155
- Joined: Tue May 15, 2007 2:19 am
- Contact:
Re: Help with Load Balancing problem!
load balancing on the code level is usally not the best idea, because of the amount of processing power that's generally used to make that sort of determination.
Personally, I'd just set my DNS up as a round-robin, and have it rotate users out between the two servers.
Personally, I'd just set my DNS up as a round-robin, and have it rotate users out between the two servers.
Re: Help with Load Balancing problem!
You can send selects to the slave, updates, inserts deletes to the master.
- lonelywolf
- Forum Commoner
- Posts: 28
- Joined: Tue Jun 10, 2008 6:15 am
Re: Help with Load Balancing problem!
which techniques do you use to implement slave/master model, thanks you all!astions wrote:You can send selects to the slave, updates, inserts deletes to the master.
Re: Help with Load Balancing problem!
+1maliskoleather wrote:lPersonally, I'd just set my DNS up as a round-robin, and have it rotate users out between the two servers.
There are 10 types of people in this world, those who understand binary and those who don't