Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Aug 06, 2015 9:58 am 
Offline
Senior Newbie

Joined: Fri Jul 31, 2015 1:09 pm
Posts: 5
Let's say I currently have 2 websites that each get 5-10 million pageviews per month. More websites will be coming online in the future, and will eventually generate similar numbers. These sites are blogs on a PHP/MySQL platform. Content is updated once daily, and there are no public user logins or anything like that (just the admin). Basically, they are ideal for caching with long (relatively) expiration.

So here's what I'm thinking - the actual sites will be hosted on a single Linode running Debian/Apache/MySQL/PHP with an Apache virtual host for each site. Pretty simple/typical. On another Linode, I have Varnish. This is a larger Linode that only runs Varnish (on Debian) and is tuned to be optimized for this purpose. The caching server obviously points to the LAMP server that houses the sites. As mentioned earlier, expiration times are set long (several hours) so that actual hits to the LAMP server should be few and the Varnish server should take the brunt of the load. As traffic grows, I can scale the Varnish server or even add additional dedicated Varnish servers.

Does anyone see a problem with a structure like this or have any additional ideas/input that may work better?


Top
   
PostPosted: Thu Aug 06, 2015 10:17 am 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
What happens when the Varnish Linode goes down, or you need to take it down for maintenance?

What happens when the webserver Linode goes down, or you need to take it down for maintenance?

- Les


Top
   
PostPosted: Thu Aug 06, 2015 11:06 am 
Offline
Senior Newbie

Joined: Fri Jul 31, 2015 1:09 pm
Posts: 5
akerl wrote:
What happens when the Varnish Linode goes down, or you need to take it down for maintenance?

What happens when the webserver Linode goes down, or you need to take it down for maintenance?

- Les


When the webserver Linode goes down for maintenance, the Varnish grace period should serve as a backup and continue serving pages even if the server isn't responding. In the case that the Varnish server needs to be taken down, I would probably spin another one up to take it's place. I suppose the best solution would be to have 2 synced web servers and 2 or more Varnish servers with a loadbalancer distributing the load between them. That way everything is redundant and any one part being down wouldn't affect availability.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group