Page 1 of 1
Help with Load Balancing problem!
Posted: Wed Jul 09, 2008 2:42 am
by lonelywolf
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.
Re: Help with Load Balancing problem!
Posted: Wed Jul 09, 2008 4:08 pm
by maliskoleather
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.
Re: Help with Load Balancing problem!
Posted: Wed Jul 09, 2008 4:27 pm
by Benjamin
You can send selects to the slave, updates, inserts deletes to the master.
Re: Help with Load Balancing problem!
Posted: Thu Jul 10, 2008 7:46 am
by lonelywolf
astions wrote:You can send selects to the slave, updates, inserts deletes to the master.
which techniques do you use to implement slave/master model, thanks you all!
Re: Help with Load Balancing problem!
Posted: Thu Jul 10, 2008 9:04 am
by VladSun
maliskoleather wrote:lPersonally, I'd just set my DNS up as a round-robin, and have it rotate users out between the two servers.
+1