• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Apache Load Balancing

npsken

Member
I am currently researching apache load balancing and I was wondering if anybody could tell me an extremely general idea about when it is necessary to load balance in terms of hits, memory usage, and cpu usage.

If anybody was able to decipher what I'm asking and knows an answer that could help, please reply!

Thanks,
- Ken
 
First you need to figure out if you even need to do any load balancing.

Are you having performance issues with your site that clients are complaining about? First I would examine your current apache setup and make sure it is optimized for your site and hardware.

What is your hosting setup like? Running a full LAMP stack on one server? Shared hosting?
 
You don't normally load balance based on cpu/memory usage because that isn't a good indication of response time. It can be done, but it's not a good way to go about it. You will need a load balancer such as F5's Big-IP or Cisco's ACE. The load balancer can distribute the load to as many real servers as you like based on a whole slew of criteria like response time, least connections, round robin, least loaded, least bandwidth.

http://www.f5.com/products/big-ip/
 
Starting out I was going to run a LAMP stack on the RackspaceCloud (CloudServers). I was just curious for the worst case scenario when upscaling doesn't work anymore and I have to use more servers.

Thanks!
 
Depending on your site moving the database off your web server and using a caching store like memcached on the web server might have a much bigger impact on your performance(especially if it's read heavy).

If you are getting a managed service Rackspace should be able to help you come up with a design for your servers. You really won't be able to do anything until you can get accurate performance metrics of your site though.
 
Moving the database to a separate server was another alternative I was looking at. Do you think that would really make a big difference (along with memcached)?
 
Moving the database to a separate server was another alternative I was looking at. Do you think that would really make a big difference (along with memcached)?

Like I've said in every post, it depends on YOUR site and what it is doing.

There is no way anybody can make any sort of solid recommendations without first knowing what your site is doing and having current performance metrics.
 
Like I've said in every post, it depends on YOUR site and what it is doing.

There is no way anybody can make any sort of solid recommendations without first knowing what your site is doing and having current performance metrics.

Exactly. Hell, some sites can get away with just using DNS round-robining for simple load balancing.
 
reverse proxy server like squid could handle static and pass through dynamic content if you want. maybe they've even added ssl acceleration so the ssl is handled by the proxy and your core web server just sees everything as non-ssl.
 
Back
Top