Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Dec 14, 2013 10:24 pm 
Offline
Senior Newbie

Joined: Sat Dec 14, 2013 7:59 pm
Posts: 7
This setup will be for a purely PHP based video website, running a CDN for the video storage/bandwidth. Projecting very fast growth for the site.

Which do you think is better/wiser? In terms of performance, redundancy, security, scaling, etc.




1. Two 4GB Linode servers (One MySQL, One Apache'PHP).

OR

2. Four 2GB Linode servers (Two MySQL, TWO Apache'PHP, linked together via Two Nodebalancers).




The costs for the servers will be exactly the same for both setups, BUT the Four server setup will cost more due to needing 2 Nodebalancers + More backups + more maintenance time, and possibly the Linode Managed service.

Want to set it up right from the start, so scaling is a breeze later, and performance/uptime is critical. Which setup would you go with?


Top
   
PostPosted: Sat Dec 14, 2013 10:36 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Arteia wrote:
Which setup would you go with?

I'd go with whatever setup your system architect, your system admin, and your program lead decides is best for the project.

You provide almost zero details, and then expect someone to make some type of useful comment? Anything anyone says here would be a total guess (pick up a Magic 8 Ball, it will be less stressful and just as accurate).

Also "projected very fast growth" is almost a sure sign it won't. Focus on today, get something actually working, then worry about growth when and if it happens.

Since you're having trouble setting up a simple lamp stack (this thread), I'd concentrate on the basics before worrying about huge growth and node balancers.

YMMV

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Sat Dec 14, 2013 11:18 pm 
Offline
Senior Newbie

Joined: Sat Dec 14, 2013 7:59 pm
Posts: 7
Appreciate the input.

There is no system architect/admin/etc. It's just me.

Please tell me what kind of detail would allow the community to give a better answer. Will be happy to provide it.



vonskippy wrote:
Arteia wrote:
Which setup would you go with?

I'd go with whatever setup your system architect, your system admin, and your program lead decides is best for the project.

You provide almost zero details, and then expect someone to make some type of useful comment? Anything anyone says here would be a total guess (pick up a Magic 8 Ball, it will be less stressful and just as accurate).

Also "projected very fast growth" is almost a sure sign it won't. Focus on today, get something actually working, then worry about growth when and if it happens.

Since you're having trouble setting up a simple lamp stack (this thread), I'd concentrate on the basics before worrying about huge growth and node balancers.

YMMV


Top
   
PostPosted: Sun Dec 15, 2013 7:25 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Two MySQL servers == you're going to need master-slave or master-master replication. If you do master-slave replication, your PHP app needs to be ready to write to the master and read from the slave. If that sounds like some alien gibberish, you should probably stick with one MySQL server. It it sounds like English, you should still probably stick with one MySQL server.

Also remember that there's always a third option:

3. One 8GB Linode server (Apache + PHP + MySQL)

Infinitely easier to deal with, all communication between PHP and MySQL will be localhost (very fast), and no need to manage firewall rules for the internal network. You could even afford a 16GB instance since you'll be saving a bunch of money on load balancing, backup and server management.

Yeah, the website will go down if your single server goes down. But most of the time, if the server goes down, it will be because you did something wrong. With just one or two servers, it's much less likely that you'll do something wrong. Take that into consideration.


Top
   
PostPosted: Sun Dec 15, 2013 7:34 am 
Offline
Junior Member

Joined: Sun Jan 02, 2011 4:38 pm
Posts: 23
To keep in mind: If downtime is something you really want to avoid, you should set up either the nodebalancer or something of your own with a floating IP.
Otherwise, reboots (at least to activate Linode's free upgrades!) or drastic config changes will result in downtime.


Top
   
PostPosted: Mon Dec 16, 2013 1:41 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Separating MySQL and Apache/PHP on two boxes is almost trivially easy... it's the lowest of the low hanging fruit. If the projected traffic is high, you might as well start out at least doing that out of the gate.


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


Who is online

Users browsing this forum: No registered users and 6 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