blue green deployment

13
Blue-green deployment In practice devops Journey@LATAM

Upload: lucas-falk-beier

Post on 16-Apr-2017

58 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Blue green deployment

Blue-green deploymentIn practice

devops Journey@LATAM

Page 2: Blue green deployment

Agenda

❏¿Que es Blue-green deployment?

❏¿Cual son su beneficios y custos?

❏¿Qué cuidados tenemos que tomar?

❏Blue-green en practica

Page 3: Blue green deployment

Cómo podremos poner software en producción y minimizar el downtime?

Cómo podremos hacer rollback rapidamente?

Page 4: Blue green deployment

ver 1.0

ver 0.9

Page 5: Blue green deployment

ver 1.0

ver 1.1

Page 6: Blue green deployment

ver 1.0

ver 1.1

Page 7: Blue green deployment

Sounds good!But is there something we might need to watch out?

Page 8: Blue green deployment

Things to watch out

❏Infrastructure

❏Shared underlying infrastructures (VMs, Docker)

❏Long running transactions on current environment

❏Backward incompatible changes

❏Database migrations

❏ Changes on APIs response

Page 9: Blue green deployment

Dealing with backward incompatibility

❏Expand and contract strategy

❏Works for changes on:

❏ API contracts breaks

❏ DB Changes

❏ Dependent systems (Sabre, coordinated microservices changes)

Page 10: Blue green deployment

Changing DB schema

❏Separate deploy:

❏ Schema changes

❏ Application upgrades

❏DB refactoring + current application version = rollback point

Page 11: Blue green deployment

Expand and contract applied on DB changes

❏Apply a database refactoring

❏ expand DB

❏Deploy the database refactoring

❏ expand app

❏Remove the support to older schema

❏ contract db and app

Page 12: Blue green deployment

Live demoWhen the things usually don't work as expected...

Page 13: Blue green deployment

Muchas [email protected]

github.com/tutabeier#deliverysquad#deliverytribe