Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Feb 19, 2012 5:20 pm 
Offline
Senior Newbie

Joined: Fri Oct 15, 2010 12:18 pm
Posts: 11
I am trying to understand load balancing. Seems like the system allows you to balance traffic over a number of independent servers... correct? So, given that, what is the best practice for deploying identical code to multiple servers simultaneously?

Thanks for any input.

Matt.


Top
   
 Post subject:
PostPosted: Sun Feb 19, 2012 7:20 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
There's three major goals when making a multi-instance system:

1) Deploy each instance correctly.
2) Make sure the instance's software and configuration stays correct.
3) Keep each instance informed of changes to the rest of the system topology that impact it.

The first can be as simple as cloning a "gold master" instance every time you need a new one, but that starts sucking when it gets out of date (and when you have more than a handful of different instance types). Building a StackScript or using something like fabric to automate initial deployment is better.

As far as ongoing maintenance goes, my favorite tool for #2 and #3 is currently Chef.

Other things of paramount importance:

1) Thou shall maintain your code, templates, and other such assets in a version control system (e.g. SVN, git, hg, ...).
2) Thou shall think about your data and where it shall live, and what shall happen if that home goes away suddenly.
3) Thou shalt not design distributed single points of failure.
4) Thou shall recall that PHP is a vulgar language, and those that spake forth its blasphemous trills tend not to think in the object-oriented and modular forms which indeed make many things easier, and the use of the PHP here will lead thee to the inherent problems of excessive consumption of the fermented vine and grass-fruit.

... that last one might be editorializing a bit, but the important point is that your application's limits and assumptions will have to be considered when designing a system, too!

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


Top
   
 Post subject:
PostPosted: Sun Feb 19, 2012 10:47 pm 
Offline
Senior Newbie

Joined: Fri Oct 15, 2010 12:18 pm
Posts: 11
Very helpful, thanks! That is just what I was looking for.


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