I need to balance the load on server which is Linux server having load avg of 4-5 in last two months.
We have two such servers on Linux and one newly perchased on freeBsd...
Can anyone please tell me how to start with ?How do I utilise all the three to share load ...
My client also says that it is good if we don't need a load balancer device separately such as CISCO's load balancer.
So I need to share load on servers 3 in number among themsleves without using a separate device,out of the three two are Linux and one is FreeBsd.
Is this for one site or many sites? If it is for many sites I would suggest getting seperate servers, no need to load balance for this. If it is for one site, you may be able to get by with a Dual Xeon (using HT this becomes 4).
crucialparadigm- Affordable, Reliable, Professional :
Web Hosting • 24/7 Support • Web Hosting • Reseller Hosting • Cloud/VPS Plans • Dedicated Servers •
The server hosts only two sites and out of that only one is generating traffic,So according to you I should dedicate one server to site ...but it is all set.. I mean how do i do that?
Can you explain?
Well, its the kind of thing where it really depends on your specific scenario. It would take someone who knows what they are doing to look at your specific setup... its not really something I can just say "here, do this" without logging into your server etc.
You don’t give enough information to help you. What is causing load? How many visitors etc..
Still here are some things I can recommend to do with 3 machines. First setup http://www.acme.com/software/thttpd/ on one server and place all static files there (images…htmls that don’t change, media if you serve any) and from main machine where php files reside link to secondaty machine. Then setup mysql (or any other SQL server you use) on third machine and make sure you allow sql ports only to own machines (only LAN). Also make sure you use persistent connections in mysql to reduce load on server while opening and closing connections.
Here is how it would work:
We have worked with, and continue to work with, client's who use hardware load balancing.
Each site is assigned a virtual IP from the load balancing hardware. That IP is what is used in the DNS et all.
That IP is then NAT (network address translation) to a private IP.
The hardware load balancer knows all of the private IP's that correlate to the one virtual IP the outside world sees.
The hardware load balancing picks the private IP to use based on various critiera.
Each server's content is replicated; and when a visitor gets sent to that server they see what the next visitor sees (presuming static content) if the other visitor is hitting a separate physical server.
Also, the good hardware load balancers will know about sessions so that a visitor will stay on the same physical server per session.
If you are not using a db and sessions are not an issue what you can do is do DNS load balancing. This is where you have multiple A records for your website. This works well for email because sessions are not usually required. Also with DNS loadbalancing you can decentralize your infrastructure.
Thanks for all replies...
and sorry I didn't supplied information..
The domains is studiotraffic.com and what is more irritatating on this servers is that number of visitors on this site are huge ..sometimes 4000-5000 at a time...
This is causing problme and continuous load ...
I read about DNS round-robin etc methods...
But As I don't have experince with Load balancing I don't know where to start from and how it should go ahead?
We even did the indexing of database but still load seems to be increasing...
Please I need good suggestions and guidlines from you people..
I would recommend separating your web server from your database server. Also, if you have enough ram on the DB server you can looking into loading the database into memory for SERIOUS performance gains.