Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic

Am I better off doing separating the web and database functions into two separate 1024MB servers, or should I use one 2048MB server for the app?
Separate 1024MB servers for app and db  93%  [ 14 ]
One 2048MB server with both app and db on it  7%  [ 1 ]
Total votes : 15
Author Message
PostPosted: Sat Jan 21, 2012 8:13 am 
Offline

Joined: Sat Jan 21, 2012 8:06 am
Posts: 1
Howdy Friends,

I'm working on an application using Django (Python), Apache, and MySQL. Right now everything is on one server, but we're about to go live so I'm looking at infrastructure.

Question: am I better off doing separating the web and database functions into two separate 1024MB servers, or should I use one 2048MB server for the app?

I'd usually vote for separating them, but I'm concerned about doubling my failure points since a failure in either the app or the db causes a system failure. Then again, my previous experience with Linode is that things don't go down. :)


Top
   
 Post subject:
PostPosted: Sat Jan 21, 2012 11:18 am 
Offline
Junior Member
User avatar

Joined: Wed Nov 16, 2011 11:41 am
Posts: 37
Website: http://empoweringmedia.com
Location: United States
Answer is... it depends. It depends upon the amount of traffic you are currently getting and expected growth.

Also it depends upon what you are bound by. Are you bound by CPU? If so then multiple instances would help since by default Linode gives you access to 4 CPUs. Getting one instance would only give you access to 4 CPUs while two instances would give you access to 4 on each.

Though do make sure the instances are on multiple hosts. For reliability (not all eggs in one basket) and for CPU performance.

_________________
Larry Ludwig
Empowering Media
Managed Cloud Services and Managed VPS


Top
   
 Post subject:
PostPosted: Sat Jan 21, 2012 2:14 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Whenever possible, I plan for separate web and database servers. That makes scaling (or redundacation of) either pretty easy. If things get busy, it's probably not the time you'd want to have to deal with factoring out your database so you can have two web servers.

Good news is that Django supports multiple database servers (hooray!), so you can add read-only slaves relatively easily, too.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Sat Jan 21, 2012 2:51 pm 
Offline
Senior Member
User avatar

Joined: Tue Mar 17, 2009 5:11 am
Posts: 129
Location: UK
I believe that the django book suggests that you separate out onto different nodes for scalability, i.e. 1 node for webserver, another for db server, another node for static files and so on...

I'd go that way.


Top
   
 Post subject:
PostPosted: Mon Jan 23, 2012 12:32 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Linode services don't tend to go down, no, but it has been known to happen. Even the best companies have the occasional downtime when they take an arrow to the knee.


Top
   
 Post subject:
PostPosted: Mon Jan 23, 2012 12:49 pm 
Offline
Senior Member
User avatar

Joined: Tue Mar 17, 2009 5:11 am
Posts: 129
Location: UK
Guspaz wrote:
Linode services don't tend to go down, no, but it has been known to happen. Even the best companies have the occasional downtime when they take an arrow to the knee.


I used to be an adventurer like you...


Top
   
 Post subject:
PostPosted: Mon Jan 23, 2012 3:36 pm 
Offline
Senior Member

Joined: Mon Dec 07, 2009 6:46 am
Posts: 331
http://youtu.be/mSDfxde8fSg (nsfw)


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


Who is online

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