I have a site that's getting about 4k uniques and 35k pageviews a day on a Smart VPS with a single core cpu and 2gb ram. It's an image-sharing site that also allows users to vote and comment on images, see the most popular ones of the day, etc. so there are quite a lot of MySQL queries. Users also receive notifications in a Facebook-style notification panel whenever someone comments on their image or replies to their comment on another user's image (originally I also notified whenever people voted on images too, but it lagged the site so hard that I had to disable that).
Whenever there are more than about 150 people on the site simultaneously, it slows down to the point where it's almost unusable (or at least to where new users would get pissed off and leave). I'm also using about 20gb of bandwidth a day (out of a 1000gb monthly quota) which seems like a lot.
The host recommended staying on the Smart VPS's rather than switching to a dedicated because they said it looks like I'll have to constantly upgrade it to keep up with the traffic growth. They also recommended moving MySQL onto a separate server and having the site itself / Apache on the main server, which is something I've never done before.
I'm curious if this is typical for sites like this or if there's something coded incorrectly or not fully optimized, and it's bogging down the server more than it should. I've been considering hiring someone who specializes in database optimization (is that even a real thing?) to go through the site, the database, the notification system, etc and make sure it's all done correctly. This is the first site I've run in this niche and most of my "sites" up to now have just been redirects and landers where I never had to worry about usage stats and things like that. Any thoughts?
Whenever there are more than about 150 people on the site simultaneously, it slows down to the point where it's almost unusable (or at least to where new users would get pissed off and leave). I'm also using about 20gb of bandwidth a day (out of a 1000gb monthly quota) which seems like a lot.
The host recommended staying on the Smart VPS's rather than switching to a dedicated because they said it looks like I'll have to constantly upgrade it to keep up with the traffic growth. They also recommended moving MySQL onto a separate server and having the site itself / Apache on the main server, which is something I've never done before.
I'm curious if this is typical for sites like this or if there's something coded incorrectly or not fully optimized, and it's bogging down the server more than it should. I've been considering hiring someone who specializes in database optimization (is that even a real thing?) to go through the site, the database, the notification system, etc and make sure it's all done correctly. This is the first site I've run in this niche and most of my "sites" up to now have just been redirects and landers where I never had to worry about usage stats and things like that. Any thoughts?