raise the bar! reloaded

23
Raise the Bar! Alessandro Franceschi CodeMotion 2014 Milan A journey towards infrastructure automation Reloaded License: Creative Commons 3.0 by-nc-sa

Upload: alessandro-franceschi

Post on 12-Jul-2015

1.248 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: Raise the bar! Reloaded

Raise the Bar!

Alessandro Franceschi CodeMotion 2014 Milan

A journey towardsinfrastructure automation

Reloaded

License: Creative Commons 3.0 by-nc-sa

Page 2: Raise the bar! Reloaded

Alessandro Franceschi @alvagante github.com/alvagante www.example42.com

Page 3: Raise the bar! Reloaded

they tell about infrastructures

like this

Page 4: Raise the bar! Reloaded

but some infrastructures

look more like this...

Page 5: Raise the bar! Reloaded

we are probably

somewhere in the middle

Page 6: Raise the bar! Reloaded

What can we do?

Hold on.Where are we?

Look around.Choose a path.

Move. Step by step.

Page 7: Raise the bar! Reloaded

Where are we?

Where things fail? Where time is wasted? What works well? What's critical?What's strategical?What are the available skills?

Learn from failure. Learn from success!

Page 8: Raise the bar! Reloaded

Choose a Path

Analyse and evaluate solutions Share vision and goals Draw a general roadmap Be ready for corrections

Choose the automation tools: - Configuration Management - Applications Deployment - Continuous Integration - Infrastructure Awareness

Page 9: Raise the bar! Reloaded

Step by StepGet guidance from expertsTrain the team on the jobDo or Know It YourselfPrioritise time saversBuild things to be reused Communicate, always Test, act, verify. Reiterate.

Step the dots, then connect them

Page 10: Raise the bar! Reloaded

Scenarios

nil => NEWBrand new project

OLD => NEW

Infrastructure migration

OLD => OLDInfrastructure update

Page 11: Raise the bar! Reloaded

Brand New Project

Faster and easier Freedom on technical choicesStandard and updated OS Modern architecture No mess with production

Page 12: Raise the bar! Reloaded

Infrastructure Migration

New systems replace existing ones Gradual migration of services Start from what is most needed New setups should be automated

Page 13: Raise the bar! Reloaded

Infrastructure update

Harder and more dangerous Probably different OS to manage Undetermined existing setup procedures Manual configurations accumulated over time

Evaluate agent setup on older systems Evaluate effort and benefits, for edge casesEvaluate the migration alternative

Page 14: Raise the bar! Reloaded

Infrastructure update

We need a gradual approachDefine a minimal baseline to apply to all nodesBe careful of OS variations

Raise the Bar, step by step:Vertically: add services to the minimal baseline Horizontally: cover more OS and add nodes

Page 15: Raise the bar! Reloaded

Mind the steps

How easy and quickly can be done How stable are systems What maintenance efforts they require Number of nodes involvedMigration risks and impactWhat's worth to automate Future benefits

Page 16: Raise the bar! Reloaded

Priorities

Integrate what already works well Automate servers deployment (*)Automate common systems configurations (*) Automate your most important stacks (*) Refine testing and apps deploy, then automate (*)Automate or delegate monitoring

(*) Time spent here is rarely wasted.

Page 17: Raise the bar! Reloaded

Application Deployments

Use the tool you prefer (Capistrano, Fabric, Puppi, OS packages, scripts…)

Be able to run it unattended

Configure it via CM

Run it in via local CLI, CI pipelines, cronjobs, orchestration engines…

YMMV

Page 18: Raise the bar! Reloaded

Rollouts

Notify and communicateHave some way to test what you change Control the propagation of rolloutsWatch logs, monitors and reports

During migrations don't be surprised of skeletons

Page 19: Raise the bar! Reloaded

CI and OrchestrationPut together your steps: configuration, testing and deployment

Be in control

Refine over time

ChatOps

Page 20: Raise the bar! Reloaded

Infrastructure Awareness

Monitoring of systems and business metrics Logs trending and analysisData Visualisation and correlation Proactive Security Smart infrastructure

Page 21: Raise the bar! Reloaded

Mind-set change

When infrastructure is code: - you need to version it- you can test it- you use it (as many times as necessary)- you refine it over time - you, sysadm, are a developer

and you don't mess up with the runtime.

Page 22: Raise the bar! Reloaded

Now, RUN!Automation means: - repeatability - consistency - scaling - reduced human errors - velocity - more time to do interesting things

Page 23: Raise the bar! Reloaded

small steps

and a vision Thank you, @alvagante