Top Banner
Christophe Marchal | Software Architect DevOps e a nova Cultura
47
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Devops e a nova cultura - TDC Florianopolis 2015

Christophe Marchal | Software Architect

DevOps e a nova Cultura

Page 3: Devops e a nova cultura - TDC Florianopolis 2015

www.ilegra.com

Page 4: Devops e a nova cultura - TDC Florianopolis 2015

What DevOps is not

❏ Process

❏ Methodology

❏ Set of Practices

❏ Set of Tools

❏ Certification

❏ Team / Role / Department

❏ SaaS

❏ Framework

Page 5: Devops e a nova cultura - TDC Florianopolis 2015

What DevOps is

❏ A journey to a desirable state

❏ A way of thinking

❏ A continuous transformation process

❏ The result of experiences

❏ A movement ...

Page 6: Devops e a nova cultura - TDC Florianopolis 2015

Start up example

Let’s deploy!

Page 7: Devops e a nova cultura - TDC Florianopolis 2015

Start up example

Open a ticket

Page 8: Devops e a nova cultura - TDC Florianopolis 2015

Start up example

Page 9: Devops e a nova cultura - TDC Florianopolis 2015

Start of the success

Page 10: Devops e a nova cultura - TDC Florianopolis 2015

Application grow

Let’s deploy!

Page 11: Devops e a nova cultura - TDC Florianopolis 2015

Application grow

Too unstable!

Page 12: Devops e a nova cultura - TDC Florianopolis 2015

Start some XP Practices

Only commit in trunk

Use of SCM toolContinuous Integration

➔ unit tests #compilation➔ integration tests #runtime➔ acceptance tests #runtime

Page 13: Devops e a nova cultura - TDC Florianopolis 2015

Continuous Integration

CompilationUnit Tests

Deploy em Staging

Integration Tests

Automatic AcceptanceTests

UserAcceptanceTests

Page 14: Devops e a nova cultura - TDC Florianopolis 2015

Quality Improvement

Page 15: Devops e a nova cultura - TDC Florianopolis 2015

Team and Application keep growing

❏ Time spent merging

❏ Time spent compiling

❏ Time spent testing

❏ Time to put a feature in production

❏ Application Response time

❏ Hardware consumption

Page 16: Devops e a nova cultura - TDC Florianopolis 2015

Isolation via Modularization

Page 17: Devops e a nova cultura - TDC Florianopolis 2015

Move dependency from Compilation

to Runtime

Page 18: Devops e a nova cultura - TDC Florianopolis 2015

New Deploy

Service

Service

Page 19: Devops e a nova cultura - TDC Florianopolis 2015

Application grow

I cannot deploy separately!

This is safe! Only 1 line of code changed

Service Service

Service Service

Page 20: Devops e a nova cultura - TDC Florianopolis 2015

Service dependencies

Service

ServiceService

Service

Service

Page 21: Devops e a nova cultura - TDC Florianopolis 2015

SOA

Page 22: Devops e a nova cultura - TDC Florianopolis 2015

SOA

Service Service

Contract

Service

➔ Dependency only depends on service contract➔ Service contract has versions➔ No branch

Service

ContractContract

Service

Contract

Contract

➔ unit tests #compilation➔ contract tests #compilation➔ integration tests #runtime➔ acceptance tests #runtime➔ performance tests #runtime

Page 23: Devops e a nova cultura - TDC Florianopolis 2015

Update one service

I only deploy 1 service

This is safe! Only 1 line of code changed

ServiceContract

Page 24: Devops e a nova cultura - TDC Florianopolis 2015

Conway’s Law

“Organizations which design systems … are constrained to produce designs which are

copies of this communication

structures of these organizations”Melvin Conway, 1968

Page 25: Devops e a nova cultura - TDC Florianopolis 2015

Organize teams around services

User

User

User

BA

BA

BA

Page 26: Devops e a nova cultura - TDC Florianopolis 2015

Every team working as a Lean Startup

Page 27: Devops e a nova cultura - TDC Florianopolis 2015

Number of tickets

Need to automatize

➔ unit tests #compilation➔ contract tests #compilation➔ integration tests #runtime➔ acceptance tests #runtime➔ performance tests #runtime➔ deploy automation tests #infra

Infrastructure as a code

Page 28: Devops e a nova cultura - TDC Florianopolis 2015

Continuous Deployment

➔ Availability

➔ Rollback

➔ Data synchronization

➔ Scalability

➔ Cost/Benefit

Page 29: Devops e a nova cultura - TDC Florianopolis 2015

Continuous Delivery

CompilationUnit Tests

Deploy Staging

Integration Tests

Automatic AcceptanceTests

UserAcceptanceTests

Stress Test

Deploy Production

Page 30: Devops e a nova cultura - TDC Florianopolis 2015

Monitor Everything

Page 31: Devops e a nova cultura - TDC Florianopolis 2015

Feature Toggle

Page 32: Devops e a nova cultura - TDC Florianopolis 2015

Isolation Build once, Deploy everywhere

Page 33: Devops e a nova cultura - TDC Florianopolis 2015

Configuration Management

REST Service

Key Value databaseFilesystemEnvironment Variable

Page 34: Devops e a nova cultura - TDC Florianopolis 2015

Green / Blue Deployment

Page 35: Devops e a nova cultura - TDC Florianopolis 2015

Canary Deploy

Page 36: Devops e a nova cultura - TDC Florianopolis 2015

Deploy the same way everywhere

Page 37: Devops e a nova cultura - TDC Florianopolis 2015

Virtualization

Page 38: Devops e a nova cultura - TDC Florianopolis 2015

Provisioning

Operation System

Virtual box images

Page 39: Devops e a nova cultura - TDC Florianopolis 2015

Local Machine

Operational System

Operational System Application

Application

Operational System

Application

Page 40: Devops e a nova cultura - TDC Florianopolis 2015

Still not there

Production Local Machine

Page 41: Devops e a nova cultura - TDC Florianopolis 2015

Still not there

Kernel Linux

Docker Repository

Page 42: Devops e a nova cultura - TDC Florianopolis 2015

Scripting

Page 43: Devops e a nova cultura - TDC Florianopolis 2015

Many, many, many servers

➔ job scheduling

➔ bind containers to physical servers

Page 44: Devops e a nova cultura - TDC Florianopolis 2015

New Operational System

Page 45: Devops e a nova cultura - TDC Florianopolis 2015

Failure Everywhere

Page 46: Devops e a nova cultura - TDC Florianopolis 2015

Test in Production

Page 47: Devops e a nova cultura - TDC Florianopolis 2015

Christophe Marchal | Software Architect

Thanks for your Attention