34
DevOps @ Scania Trust and some code Anders Lundsgård Mattias Järnhäll NFI Testfourm 2015, 15/4

DevOps @ Scania - Trust and some code - NFI Testforum 2015

Embed Size (px)

Citation preview

Page 1: DevOps @ Scania - Trust and some code - NFI Testforum 2015

DevOps @ ScaniaTrust and some code

Anders LundsgårdMattias Järnhäll

NFI Testfourm 2015, 15/4

Page 2: DevOps @ Scania - Trust and some code - NFI Testforum 2015

I want change! I want stability!

Disclaimer

The opinions expressed in this presentation and on the following slides are solely those of the presenters and not

necessarily those of Scania as a whole.

Page 3: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Scania

Page 4: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Scania as an IT company

• ~1200 workers (800+400) @ Scania IT• ~1400 apps (mix of build and bought)• ~2500 servers (win, linux, MF, iSeries..)• ~1400 TB data• Main site -> Södertälje, Sweden• Regional site -> Sao Paolo, Brazil• Supports Scania Globaly• Application, infrastructure, EUS

Page 5: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Agile what?

theleanstartup.com

Page 7: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Why Agile?

Rarely or unused features.

Improve learning and respond to change.

65%

Page 8: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Limit Work In Progress

CODEIN PROD

PENDING CODE

NEWFEATURS

Value

Page 9: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Waterfall

Page 10: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Water-Scrum-Fall

Page 11: DevOps @ Scania - Trust and some code - NFI Testforum 2015

DevOps

Page 12: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Why are we ready to talk about several deploys per week?

Page 13: DevOps @ Scania - Trust and some code - NFI Testforum 2015

DevOps “prerequisites”

1. Continuous Integration

2. QA is no longer a phase

3. Not only Devs do coding

4. Not only code that matters

5. Deploy is not always a Release

Page 14: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Continuous Integration

Quality over new features

Version everything

Everyone work on Main branch

Automation

Page 15: DevOps @ Scania - Trust and some code - NFI Testforum 2015

The art of Coding

Quality Assurance

Page 16: DevOps @ Scania - Trust and some code - NFI Testforum 2015

The art of Coding

Quality Assistance

Page 17: DevOps @ Scania - Trust and some code - NFI Testforum 2015

The art of Coding

Common abilitiesCode/scripting

Automate repetitive tasksVersion your work

Page 18: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Continuous Experimentation

Fail fast to increase learning

Make it safeto fail

http://codingfast.devops.vision

Page 19: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Release != Deploy

One appliance, one database table with one column, 0.01 % of all users, thanks to feature toggles.

@auriorai

Page 20: DevOps @ Scania - Trust and some code - NFI Testforum 2015

ITOps

I need a new web site for my front end code

Page 21: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Feature Team

Feature Team

Feature Team

Feature Team

Integration

OS

Web

Monitoring

Change Management

NetworkSecurityInfra/

Operations

GUI

BusinessLogic

Database

In the past

Database

Page 22: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Level 1

Level 2+3

Infrastructure As A Service

Infra/Operations

Feature Team

Feature Team

Feature Team

Feature Team

GUI

BusinessLogic

Database

Virtual Machine ESB Network Change Management Database Monitoring

Tomorrow

Page 23: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Infrastructure As A Service

Infra/Operations

Feature Team

Feature Team

Feature Team

Feature Team

GUI

BusinessLogic

Database

Virtual Machine Web server Load Balancer Change Management Monitoring

You build it You run it!

Page 24: DevOps @ Scania - Trust and some code - NFI Testforum 2015

HW / Virtualization

Storage

Network

Data center

Application Server / Web Server

Database

OS

Services

Services

Services

Services

Services

Services

Services

.NET Java Oracle

Page 25: DevOps @ Scania - Trust and some code - NFI Testforum 2015

HW / Virtualization

Storage

Network

Data center

Application Server / Web Server

Database

OS

.NET Java Oracle

Serv

ices

Serv

ices

Serv

ices

Page 26: DevOps @ Scania - Trust and some code - NFI Testforum 2015

ITOps DevOps

Version Control

I need a new web site for my front end code

”xxx”

Page 27: DevOps @ Scania - Trust and some code - NFI Testforum 2015

DevOps Tools

Infrastructure as code

Jenkins

Shell ScriptPowershell

Octopus Deploy

Pipeline your code

*

* These tools are only random selected among all ”DevOps-tools”. Scania does not value these more than those not mentioned.

Page 28: DevOps @ Scania - Trust and some code - NFI Testforum 2015

3 awesome infra

Page 29: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Prod deploy every 11,6 sec.

Page 30: DevOps @ Scania - Trust and some code - NFI Testforum 2015
Page 32: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Recommended Reading

Version Control

http://brentleavesjob.devops.vision

Page 34: DevOps @ Scania - Trust and some code - NFI Testforum 2015

Contact

• Anders Lundsgård

[email protected]

– @anderslundsgard

– www.continuousdelivery.eu

• Mattias Järnhäll

[email protected]