load balancing ?

Status
Not open for further replies.

priviet02

Active Member
747
2008
12
895
hi guys

i think i understand what load balancing is......but i was wandering is it very beneficial for a site and whether it is easy to set up
 
12 comments
of course it is beneficial for a site. (if you have a small site, you may not notice a difference, but bigger sites it helps tremendously).

and it depends what kind of load balancing you do, it could be easy but get complicated fast.

however, if you are asking that kind of question, maybe you should not attempt to do it yourself.
 
oh i would have probably paid someone to do it but just wanted to get some feedback on the level of difficulty of it

well you can attempt to do it yourself and play around with it (as you sound like a novice -- no offense). however it may be something you want to pay someone to do as you just said.
 
Its beneficial in certian cases. But I disagree that it helps tremendously with larger sites.

For example, if you run a wordpress site that gets a considerable amount of visitors load balancing is one option. However depending on the size of your webservers, you still have to cache the shit out of each www server to maintain speed. As such you will probably end up using something like memcached (so the cache files are the same for each www server.

Speaking from experiance with load balancing a wordpress blog that recieves massive traffic, I don't consider it to be an amazing solution. I actually found it easier to simply have the blog on one server and impliment loads of different caches.

I use nginx for everything and the load balencing it does is pretty good, but if you haven't used it before it might be a bit tricky. There are plenty of tuts around though.

That being said, perhaps an easier way to instantly speed up a site is to install an opcode cache, such as apc or xcache. If you are on a debian flavored distro, these are pretty easy to install. Compiling from source is not hard either with phpize.
 
Well usually you balance a webserver, I've never heard of load balancing SQL because surely it would be more beneficial to cluster.
 
is it possible to load balance the bandwidth or is it not

yes, if you configure your website so when a guest goes to your website it chooses a random server to access (in your cluster). -- for example when you go to www.hidemyass.com -- it says 3.hidemyass.com for proxy, or 2.hidemyass.com , etc. It sends you to a different server.
If you are concerned about bandwidth you can also make it so that only a certain amount of people can go on 1 server, and or if you are at XX bandwidth, to switch over to another server.
 
Its certianly easier to switch to a bigger server, but that depends on how much you have to spend.

Be aware that if you load balance between the webservers, your SQL is going to either have to be on one of them or a seperate server. So to avoid latency they really need to be in the same datacenter.

But load balancing is a pretty drastic change to any setup and I would suggest you fine tune your current setup before you consider it.
 
ok ill use that as a last resort then


thanks guys....and yes sandino dw i am a novice ........just finding out better was for different things
 
Status
Not open for further replies.
Back
Top