DevOps:建造開發維運的跨界之橋 (@ C.C. Agile #37)

Post on 16-Apr-2017

9688 Views

Category:

Technology

7 Downloads

Preview:

Click to see full reader

Transcript

Cheng Wei Chen @ C.C.Agile #37圖⽚片來源: https://www.flickr.com/photos/state-records-nsw/7653426404

DevOps: building the bridge between development and operation

DevOps: 建造開發維運的跨界之橋

!

Cheng Wei Chen 陳 正瑋 !

DevOps Engineer @ 得寬科技

http://chengweichen.com

Agenda

‧What is DevOps ?

‧Why DevOps ?

‧How ?

‧DevOps Engineer ?

‧Summary

先問幾個問題

1.你的主要職務範圍是 Dev?

Developer Product Manager

QA Tester 或…

2.你的主要職務範圍是 Ops?

System Administrator Database Administrator

Network Engineer 或…

3.你是跨職能、全端工程師?

(╯°Д°)╯ ~╩═╩ Full Stack Developer !?

4.你對 Agile 的熟悉程度?

1 2 3 4 5

聽過 專家

5.你看過 Continuous Delivery 這本書嗎?

1 2 3 4 5

看過封面

整本讀完

圖⽚片來源: https://stock.tookapic.com/photos/17849

感謝配合!

圖⽚片來源: https://stock.tookapic.com/photos/17849

DevOps Taiwan

https://www.facebook.com/groups/DevOpsTaiwan/

https://devopstaiwan.slack.com/

https://gitter.im/DevOpsTW

圖⽚片來源: http://www.splitshire.com/hand-holding-moleskine/

What is DevOps ?

201620051930 1995 20001990 2010

2009 - DevOpsDays Ghent in Belgium

201620051930 1995 20001990

Agile 2008 conference, Andrew Clay Shafer and Patrick Debois discussed “Agile Infrastructure”

2009/06/23, O’Reilly Velocity, “10+ Deploys per Day:Dev and Ops Cooperation at Flickr”

2009 - DevOpsDays Ghent in Belgium

2010 - Book《Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation》

2013 - Book《The Phoenix Project》

2010

1930s – PDCA-Cycle

201620051992 – Crystal

1930

2002 – TDD

2007 – Kanban for Software Development

2009 – Lean Startup

1995 20001990 2010

1999 – User Stories

1999 – eXtreme Programming

1995 – Scrum

2001 – Agile Manifesto 2007 – Agile Retrospectives

1993 – Refactoring

1995 – Pair Programming

1999 – Continuous Integration

2006 – BDD

1940s – Kanban & Toyota Production Systems / Lean

2003 – Lean Software Development

2009 – Software Craftsmanship Manifesto

2008 – Clean Code

來源: http://finding-marbles.com/2012/04/15/a-brief-history-of-agile-and-lean-events/

2009 - DevOpsDays Ghent in Belgium

1930s – PDCA-Cycle

201620051992 – Crystal

1930

2002 – TDD

2007 – Kanban for Software Development

2009 – Lean Startup

1995 20001990 2010

1999 – User Stories

1999 – eXtreme Programming

1995 – Scrum

2001 – Agile Manifesto 2007 – Agile Retrospectives

1993 – Refactoring

1995 – Pair Programming

1999 – Continuous Integration

2006 – BDD

1940s – Kanban & Toyota Production Systems / Lean

2003 – Lean Software Development

2009 – Software Craftsmanship Manifesto

2008 – Clean Code

來源: http://finding-marbles.com/2012/04/15/a-brief-history-of-agile-and-lean-events/ , https://en.wikipedia.org/wiki/Comparison_of_open-source_configuration_management_software

2009 - DevOpsDays Ghent in Belgium

2006 – AWS

2012 – Ansible

2009 – Chef

2005 – Puppet

2007 – VirtualBox

1999 – VMware

2005 – Git

LEAN

Agile

Continuous Integration

Continuous Delivery

before DevOps

Virtualization

Infrastructure as

Code

DevOps 的定義?

?

DevOps is… A cultural and professional movement, focused on how we

build and operate high velocity organisations, born from the experiences of its practitioners.

!

來源: https://www.chef.io/solutions/devops/

Chef

DevOps represents a change in IT culture, focusing on rapid IT service delivery through the adoption of agile, lean practices in the context of a

system-oriented approach. DevOps emphasizes people (and culture), and seeks to improve collaboration between operations and development

teams. DevOps implementations utilize technology — especially automation tools that can leverage an increasingly programmable and

dynamic infrastructure from a life cycle perspective.

來源: http://www.gartner.com/it-glossary/devops/

Gartner

DevOps 是⼀一組過程、⽅方法與系統的統稱,⽤用於促進開發(應⽤用程式/軟體⼯工程)、技術運營和質量保障(QA)部⾨門之間的溝通、協作與整合。它的出現是由於軟體⾏行業⽇日益清晰地認識到:為了按時交付軟體產品和服務,開發和運營⼯工作必須緊密合作。

來源: https://zh.wikipedia.org/wiki/DevOps

Wiki

來源: http://www.ithome.com.tw/news/87144

IBM

@ DevOpsTaiwan Sharing #1 - Jeff Hung (趨勢科技資深經理)

What Is DevOps? It depends on whom you ask.

來源: http://www.infoworld.com/article/2905307/devops/what-is-devops-depends-on-whom-you-ask.html

來源: https://youtu.be/_DEToXsgrPc

圖⽚片來源: http://pixabay.com/en/kick-martial-arts-warrior-185384/

BE

A

DEVOPS

KUNG FU

MASTER

圖⽚片來源: http://pixabay.com/en/kick-martial-arts-warrior-185384/

BE

A

DEVOPS

KUNG FU

MASTER

少林武功好~ 誒~

圖⽚片來源: http://pixabay.com/en/kick-martial-arts-warrior-185384/

BE

A

DEVOPS

KUNG FU

MASTER

少林武功好~ 誒~

哼哼哈兮!快使用雙截棍!

DevOps is about CALMS

‧Culture

‧Automation

‧Lean

‧Measurement

‧Sharing來源: http://itrevolution.com/devops-culture-part-1/

Culture

圖⽚片來源: http://negativespace.co/photos/guitarist/

Development Operations

dev dev dev ops ops ops

Functional Silos Problematic

keep calm it works on my

machine

圖⽚片來源: http://www.keepcalm-o-matic.co.uk/p/keep-calm-it-works-on-my-machine/

https://www.flickr.com/photos/statelibraryofnsw/6000988028/

Functional Silos Problematic

Functional silos abstract people away from the consequences of their actions.

In the example above, developers are abstracted away from the consequences of writing buggy code.

來源: http://continuousdelivery.com/2012/10/theres-no-such-thing-as-a-devops-team

Functional Silos Problematic

Functional silos abstract people away from the consequences of their actions.

In the example above, developers are abstracted away from the consequences of writing buggy code.

來源: http://continuousdelivery.com/2012/10/theres-no-such-thing-as-a-devops-team

逃げちゃだめだ

Functional Silos Problematic

Development Operations

dev dev dev ops ops ops

DevOps

break

break

Functional Silos Problematic

Development Operations

dev ops

devops

DevOps

dev ops

code build test

release

deploy operate

plan

Dev

Ops

Functional Silos Problematic

Functional Silos Problematic

code build test

release

deploy operate

plan

DevOps

break

break

DevOps

Development Operations

dev dev ops opsdev ops

DevOps

devops

devops

devops

New

Functional Silos Problematic

Culture

Development Operations

dev dev ops opsdev ops

DevOpsdevops

devops

devops

Development Operations

dev dev ops opsdev ops

DevOps

We all love Docker, DevOps tools…etc

利⽤用 Docker 建⽴立開發環境 利⽤用 Docker 建⽴立營運環境

Culture

Automation

圖⽚片來源: http://finda.photo/image/11418

Automation

圖⽚片來源: http://finda.photo/image/11418

來源: http://www.ithome.com.tw/news/87144

Continuous Integration

Continuous Delivery

Continuous Delivery ISBN: 978-0321601919

Continuous Delivery 中文版利用自動化的建置、測試與部署完美創造出可信賴的軟體發佈 ISBN: 978-9862019627

非讀不可

code build test release deploy operateplan

Continuous Integration

Continuous Delivery Automation

CI / CD / Automation

就是要又短又快!!

謎之音:這樣描述沒問題嗎?

目標

就是要又短又快!!

開發週期 除錯 解決問題 測試 部署

自動 可重複運行 可靠 減少人為錯誤

謎之音:這樣描述沒問題嗎?

目標

圖⽚片來源: https://www.flickr.com/photos/nationalarchives/3047452735/

Lean

Lean

Adopting Lean principles to improve the value streams of the organization and eliminate waste.

- Michael Ducy (Chef / 全球傳教士)@ iThome DevOps 2015 (Taiwan)

Measurement

圖⽚片來源: http://nos.twnsnd.co/image/69890360201

Metrics

圖⽚片來源: http://nos.twnsnd.co/image/83208814778

Monitor

Analytics

讓數據說話!

讓數據說話!

Continuous Delivery

Measurement

Feedback

監測任何有意義之數據!

performance, error log …etc

讓數據說話!

Continuous Delivery

Measurement

Feedback

監測任何有意義之數據!

performance, error log …etc來源: http://www.slideshare.net/williamyeh/whoscall-realtime-monitoring

code build test release deploy operateplan

Measurement !!Monitor Metrics Analytics

Feedback

Monitoring

Measurement

Sharing

圖⽚片來源: http://nos.twnsnd.co/image/58523667245

Sharing

Sharing

‧找其他部門的正妹一起吃個飯

!

!

Sharing

‧找其他部門的正妹一起吃個飯

‧跨部門來場技術研討

!

Sharing

‧找其他部門的正妹一起吃個飯

‧跨部門來場技術研討

‧跨部門分享數據、資訊

Sharing

‧找其他部門的正妹一起吃個飯

‧跨部門來場技術研討

‧跨部門分享數據、資訊

‧在公司中培養一種新的文化

DevOps is about CALMS

‧Culture

‧Automation

‧Lean

‧Measurement

‧Sharing來源: http://itrevolution.com/devops-culture-part-1/

code build test deploy operateplan

Measurement !!Monitor Metrics Analytics

Continuous IntegrationContinuous Delivery

DevOps

MonitoringAutomation

Dev

release

Ops Sharing

Fast Iteration

Feedback

break silos

LEAN

Culture

圖⽚片來源: http://www.splitshire.com/hand-holding-moleskine/

Why DevOps ?

來源: http://www.ithome.com.tw/news/87144

Why DevOps ?藉由將各開發階段自動化以及訊息公

開,幫助企業軟體研發相關部門,解決

傳統流程端對端(End to end)所產生

訊息不對稱,以及協作不順暢的問題,

並且自動化開發流程的每個階段,進而

提升軟體交付的速度。

來源: http://www.ithome.com.tw/news/87144

Why DevOps ?藉由將各開發階段自動化以及訊息公

開,幫助企業軟體研發相關部門,解決

傳統流程端對端(End to end)所產生

訊息不對稱,以及協作不順暢的問題,

並且自動化開發流程的每個階段,進而

提升軟體交付的速度。

來源: http://www.ithome.com.tw/news/87144

Why DevOps ?CIO在雲端時代必須聚焦在總體商業的結

果,了解究竟IT提供企業什麼價值,這包

含三個要點,應用程式部署的速度、衡量

風險、控制成本。如果守著過去開發及營

運模式,對於以上提及的三點將失去競爭

力,也因為如此,傳統的方式必須改變。

來源: http://www.ithome.com.tw/news/87144

Why DevOps ?

就如同精實開發的精隨,減少不

必要的浪費以及重複性的程序,

做到剛好符合需求。

來源: http://www.ithome.com.tw/news/87144

Why DevOps ?因此可以減少錯誤發生,開發人員也可以

專注在產生更有品質的程式碼,避免之後

不停的修補程式碼,有更多心力去做一些

有趣的事,我們也從一些客戶案例看到,

開發人員不只更有生產力,他們也更快樂

了,而且良好軟體讓維運更容易。

來源: http://www.ithome.com.tw/news/87144

Why DevOps ?我們有一些來自客戶的數據,軟體測試

可以減少90%的時間,版本釋出和部署

的頻率可以大幅提升。實際案例顯示,

過去要兩年才能釋出1個新產品,導入

DevOps開發方法後,一年半可以發布

18個成品。

‧ 改善團隊協作

‧ 幫助控管風險、成本,減少浪費

‧ 提升軟體品質

‧ 提升軟體迭代速度

Why DevOps ?

‧ 改善團隊協作

‧ 幫助控管風險、成本,減少浪費

‧ 提升軟體品質

‧ 提升軟體迭代速度

Why DevOps ?

Lean Agile+

圖⽚片來源: http://www.splitshire.com/hand-holding-moleskine/

How ?

文化

人 工具>

文化http://www.slideshare.net/jedi4ever/devops-tools-fools-and-other-smart-things

http://www.slideshare.net/dev2ops/you-cant-change-culture-but-you-can-change-behavior-and-behavior-becomes-culture

LEAN

Agile

Continuous Integration

Continuous Delivery

Virtualization

Infrastructure as

Code

背景知識

LEAN

Agile

Continuous Integration

Continuous Delivery

Virtualization

Infrastructure as

Code

背景知識

圖⽚片來源: https://www.flickr.com/photos/library-company-of-philadelphia/14008005735/

Software Value Stream

Workflow

Development Pipeline

⋯⋯

流程

http://blog.matthewskelton.net/2013/10/22/what-team-structure-is-right-for-devops-to-flourish/

DevOps Topologies

來源: http://blog.matthewskelton.net/2013/10/22/what-team-structure-is-right-for-devops-to-flourish/

DevOps Topologies

Dev Ops

小 團隊

來源: http://blog.matthewskelton.net/2013/10/22/what-team-structure-is-right-for-devops-to-flourish/

DevOps Topologies

Dev Dev Ops

新創團隊

來源: http://blog.matthewskelton.net/2013/10/22/what-team-structure-is-right-for-devops-to-flourish/

DevOps Topologies

Dev OpsDev Ops

專案 編組

符合需求 學習成本

價格 售後服務 商業支援

生態系社群

設計邏輯

工具選擇策略

教學資源

來源: http://itrevolution.com/the-three-ways-principles-underpinning-devops/

Dev Ops

Dev Ops

Dev Ops

Systems Thinking

Feedback Loops

Continuous

Gene Kim

團隊規模

流程

產品\架構

找出最佳實踐

最佳 實踐

文化轉變

工具\平台

跨職能人才

code buildplan

Agile Development

Feedback

test

code buildplan

Agile DevelopmentContinuous Integration

Automation

Feedback

test

code buildplan

Agile DevelopmentContinuous Integration

Continuous Delivery

deploy

Feedback

test release

Feedback

Automation

code buildplan

Agile DevelopmentContinuous Integration

Continuous Delivery

deploy

Feedback

releasetest

Feedback

operate

DevOps

Automation

code build test deploy operateplan

Measurement !!Monitor Metrics Analytics

Continuous IntegrationContinuous Delivery

DevOps

MonitoringAutomation

Dev

release

Ops Sharing

Fast Iteration

Feedback

break silos

LEAN

Culture

DevOps Report 2015

來源: http://puppetlabs.com/2015-devops-report

The IT Revolution DevOps Guide

來源: http://puppetlabs.com/2015-devops-report來源: http://itrevolution.com/download-the-it-revolution-devops-guild/

圖⽚片來源: http://www.splitshire.com/hand-holding-moleskine/

DevOps Enigneer?

is devops a good career ?

來源: http://theagileadmin.com/what-is-devops/

DevOps in Your Job Title Is Doing You Harm

來源: https://pete.wtf/2013/05/03/devops-in-your-job-title-is-doing-you-harm/

But, 到處都有人在徵 DevOps Engineer

Everyone is “selling, doing, hiring DevOps”

Michael Ducy https://twitter.com/mfdii

來源: http://www.indeed.com/q-Devops-Engineer-jobs.html

來源: http://www.104.com.tw/jobbank/joblist/joblist.cfm?jobsource=n104bank1&keyword=devops&order=1

來源: http://www.104.com.tw/job/?jobno=46ol4

來源: http://www.104.com.tw/job/?jobno=46ol4

System Admin

Automation

Cloud

Security

AWS

來源: http://www.104.com.tw/job/?jobno=4e3xv

HA

System Admin

CI

LogMonitor

來源: http://www.104.com.tw/job/?jobno=4izqf

System Architect

Monitor

來源: http://www.104.com.tw/job/?jobno=48p0v

Configuration Management

AWS

Cloud

Automation

Script

來源: http://www.104.com.tw/job/?jobno=4iox5

Script

Linux

CI

CD

System Admin

Automation

Cloud

Security

AWS

HA CI

Log

Monitor

System Architect

Configuration Management

Linux

CD

Dev Ops

?

來源: http://www.104.com.tw/job/?jobno=4ktyw

Dev Ops?

DevOps Requires New Job Skills & Roles

Cloud ArchitectRelease Manager Integration Specialist

DevOps Automation Engineer

https://www.scriptrock.com/blog/devops-new-job-skills-roles-titles

圖⽚片來源: http://www.splitshire.com/hand-holding-moleskine/

Summary

What is DevOps ?‧Culture

‧Automation

‧Lean

‧Measurement

‧Sharing

or depends on

whom you ask.

Why DevOps ?

‧Why Agile ?

‧Why Lean ?

‧Why CI / CD ?

‧Why Automation ?

為了又短

又快又靈活

(羞)

How ?

‧從 Agile 到 DevOps

‧或者找出屬於你的最佳實踐!

Best

Practices

DevOps Engineer ?

‧Defined by the company

定義

大亂鬥

DevOps 之舊瓶新裝 ?

圖⽚片來源: https://blog.openshift.com/what-is-devops-really/

‧舊東西包在一起改名為新東西?

‧你覺得呢?

DevOps 之舊瓶新裝 ?

‧舊東西包在一起改名為新東西?

‧你覺得呢?

圖⽚片來源: http://pixabay.com/en/kick-martial-arts-warrior-185384/

啊…噠噠噠噠!

DEVOPS

KUNG FU

MASTER

DevOps 神話 ?

來源: https://www.facebook.com/groups/DevOpsTaiwan/

Agile ? DevOps ?

來源: https://www.facebook.com/groups/DevOpsTaiwan/

別讓「噱頭辭彙」迷惑了你!

來源: https://www.facebook.com/Punnode

圖⽚片來源: https://www.flickr.com/photos/state-records-nsw/7653426404

Building the bridge between development and operation

感謝聆聽

top related