Immutable servers

Post on 15-Jan-2015

472 views 3 download

Tags:

description

Presentation @ Infrastructure Coders April 2014

Transcript of Immutable servers

packer immutable@bigal

http://resilvered.blogspot.com.au/

immutableɪˈmjuːtəb(ə)l/Submitadjective1. unchanging over time or unable to be changed."an immutable fact"synonyms: unchangeable, fixed, set, rigid, inflexible, unyielding, unbending, permanent, entrenched, established, well-established, unshakeable, irremovable, indelible, ineradicable; More

The Golden Image

anti devops …. but whyQuarterly unchanged imageAny change was slow and frustratingPoor toolingMuch easier deploy and then change with config managment

Image benefits

Faster to deployStabilityTestableSecure

Source Code Binary

libA 1.0 libB 1.0 libC 1.0libA 2.0

Compile Failed

New Server Ready Server

Chef, Puppet, Shell, Ansible ….

Package Network ConfigManagement

New Server Server Setup Failed

Chef, Puppet, Shell, Ansible ….

PackageChanges Network Config

Management

New Server Server Setup Failed

Chef, Puppet, Shell, Ansible ….

Package NetworkUnreliable

ConfigManagement

New Server Server Setup Failed

Chef, Puppet, Shell, Ansible ….

Package ConfigChanges

NetworkUnreliable

New Server Ready Server

Machine Image

Ready Server

Machine image

A deployable unit that contains a pre-configured OS and software.

Config Management

How long does your puppet/chef run take?DownloadingCompilingNetwork outageFor each Machine!!

Packer

Use Packer to build machine image for multiple platforms

Package Server Image

Provision Server

Instance

Apply Configuration

Change

Apply Configuration

Change

Change! Change!

Provide Service

Package Server Image

Provision Server

InstanceProvide Service

Immutable Servers

Instead of changing or maintaining a server, replace it with a new one.Servers no longer change, they are prebuilt static images that we have tested.Automation is key

The Future is Immutable

● Big Wins, little downsides● As server become cheaper more

commoditized and more distributed immutable servers will be key

● Start small not all servers will be easily immutable

The Wins

Super fast deploymentRepeatableHigh failure toleranceImproved stability and testabilityVersioningSecure

The losses

Requires change in mindsetTooling is youngDeployment for small config changesData

packer immutable@bigal

http://www.linkedin.com/in/alanchalmershttp://resilvered.blogspot.com.au/

http://runforthekids2014.gofundraise.com.au/page/AlanChalmers