Rusnak PHP
New Member
Hello,
I've got a bit of a problem that maybe someone more familiar with hosting than myself can help me with. I currently have a website hosted on a low to midrange VPS system. I am happy with this provider and for the most part my website works well on this server. During peak hours, however, my website will receive spikes in traffic, which will slow down the site for everyone, increase MySQL load as well as increase server load to over 10x the normal levels. These high server loads can occur a few times a week. These spikes in traffic are getting worse and causing my site to be slow for visitors more often as well as causing high CPU utilization when they occur.
So, here's my question, should I upgrade my existing VPS, purchase a second VPS and offload part of the processing to that second VPS, or get a low range (around $100 / month) dedicated server?
If I were to get a second VPS I would put part of the site on the second VPS and remotely connect to the database on the first VPS. The way the site currently is half of the requests to the VPS are to image files, which is what would be moved to the second VPS server. So the first VPS would host the website and database and the second one would serve the images, relieving the first server from some of the load of serving these images thousands of times a day.
So, I am wondering what would give me a better performance boost, moving the site to a single dedicated server or subdividing the site into the two VPS servers and linking them in this way? Also, if I did go the two VPS route, since the second VPS would need to remotely connect to the database on the first VPS, would I experience any lag from this due to the connection? How important would it be for the second VPS to be in a physical location close to the first VPS? Also, does just simply upgrading the VPS to have more RAM seem like an option, when the real issue is more so CPU as well as RAM?
Any opinions would be appreciated.
Thanks.
I've got a bit of a problem that maybe someone more familiar with hosting than myself can help me with. I currently have a website hosted on a low to midrange VPS system. I am happy with this provider and for the most part my website works well on this server. During peak hours, however, my website will receive spikes in traffic, which will slow down the site for everyone, increase MySQL load as well as increase server load to over 10x the normal levels. These high server loads can occur a few times a week. These spikes in traffic are getting worse and causing my site to be slow for visitors more often as well as causing high CPU utilization when they occur.
So, here's my question, should I upgrade my existing VPS, purchase a second VPS and offload part of the processing to that second VPS, or get a low range (around $100 / month) dedicated server?
If I were to get a second VPS I would put part of the site on the second VPS and remotely connect to the database on the first VPS. The way the site currently is half of the requests to the VPS are to image files, which is what would be moved to the second VPS server. So the first VPS would host the website and database and the second one would serve the images, relieving the first server from some of the load of serving these images thousands of times a day.
So, I am wondering what would give me a better performance boost, moving the site to a single dedicated server or subdividing the site into the two VPS servers and linking them in this way? Also, if I did go the two VPS route, since the second VPS would need to remotely connect to the database on the first VPS, would I experience any lag from this due to the connection? How important would it be for the second VPS to be in a physical location close to the first VPS? Also, does just simply upgrading the VPS to have more RAM seem like an option, when the real issue is more so CPU as well as RAM?
Any opinions would be appreciated.
Thanks.