3

Let say I have a dedicated server which is fully utilized by our website. Can I get another dedicated server from the same hosting company and have it both work together to provide double processing power for the website?

  • How is it fully utilized; CPU, memory, disk space, I/O? Additional details could help here. – closetnoc Jun 28 '16 at 3:19
  • @closetnoc Let say it's the CPU being fully utilized or not enough processing power during website peak hour. Can I get additional dedicated server to add extra power? – user1995781 Jun 28 '16 at 3:48
  • Seriously? You can always request a more significant server. I have a 2.4ghz 16 core and it would take 16 concurrent processes running 100% before I would run out. What are you running? What is your peak user count? I used to manage sites that were as busy as Microsoft.com and Google.com (at the time) on much less than what is easily available. You can simply upgrade the server, opt for clustering, go with the cloud, look at round-robin or load sharing against several servers, and on and on. I am not an expert on what hosts are offering, however, I am sure any good host can help easily. – closetnoc Jun 28 '16 at 4:08
4

There are two options here, one would be to upgrade to a more powerful server if that is an option for you.

The second, which is what you specifically reference is known as load balancing. This is where you have two servers running side by side and where the traffic to your application is split between the two, in effect each server takes half of the traffic to your site. This can be done in one of two ways...

Load Balancer

This is a hardware or software based solution depending on the provider whereby all traffic goes through one device and is then "balanced" between the end servers. This is the most intelligent method of doing it in the sense of machine intelligence as this can be configured to direct the user to the server with the least load at the time.

Multiple DNS A Records

This is the second way to achieve load balancing but does not assure even distribution of load across your services. With this method either server may be sent the traffic and once it has been connected to all connections from that network should go to the same server until the DNS cache expires and it hits your DNS server again.

In all honesty unless your website depends on high availability or another use case to justify the costs of a load balancer you may be better off to either upgrade your server or use DNS round-robin for load balancing.

2

There is always the option of upgrading/changing your server, or going for an n-tier solution, like @PlanetScale Networks describes in his answer.

Optimization

One thing I would like to point out though is the benefits and money you can save, if before looking for more power and server resources, you try to optimize your applications and current systems.

In many cases, an un-optimized system/software is the cause of the excessive needs in resources. A single database query or a bad written script may consume all the available power/memory of the machine. Don't be surprised if you double the resources and are still seeing the server become overloaded.

So make sure your apps/sites/software are fully optimized, before you decide that you need a more powerful server.

  • Thanks for your answer. As my server side is done with Laravel PHP, is there anyway I can measure how much resource were taken for each request and how much were being optimized? – user1995781 Jul 8 '16 at 2:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.