Effective DevOps:
一場文化與技術的轉型運動
Cheng Wei Chen @ Agile Tour Hsinchu 2017Photo by Jerry Kiesewetter on Unsplash
Cheng Wei Chen 陳 正瑋
DevOps Engineer @ 得寬科技
http://chengweichen.com
2013
100 % Laravel
JetBrains
( )
PHP/Laravel
http://www.laravel-dojo.com
Photo by mari lezhava on Unsplash
如果你向
十位經濟學家求教
你會獲得十一種
經濟論點
Photo by mari lezhava on Unsplash
如果你詢問
十位 DevOps 專家
你會獲得十一種
DevOps 定義
老梗,但很真實!
old
Photo by Joshua Ness on Unsplash
I’M
THINKING
What
is
DevOps ?
devops 什麼都不是!
最初只是一個 #hashtag
201620051930 1995 20001990 2010
Twitter
Hashtag
#devopsdays
->#devops
2009 - DevOpsDays
Ghent in Belgium
為了各自的目的
後人給予 DevOps 意涵
Dev + Ops + QA
Dev + Sec + Ops
: http://www.devsecops.org/
: http://electric-cloud.com/blog/2016/07/opsdev-is-coming/
DevOps has become
a folk model!
Photo by Jason Rosewell on Unsplash
It's all
about ...
Photo by Cristian Newman on Unsplash
DevOps ?
Yes, I know
Photo by Andrew Furlan on Unsplash
DevOps?
?
也許應該調整一下問題
DevOps = Automation?
code build test release deploy operateplan
Continuous Integration
Continuous Delivery
Automation
Automation
Continuous Deployment
Infrastructure
as
Code
more
關鍵在於「人與互動」及「流程」
In their efforts to compensate for the
unreliability of human performance, the
designers of automated control systems
have unwittingly created opportunities
for new error types that can be even
more serious than those they were
seeking to avoid.
—James Reason
DevOps = 某些工具?
我有在用 Docker,
我很 DevOps。
我有在用 CI / CD,
我很 DevOps。
工具並不等於 DevOps
DevOps 只和
Dev 及 Ops 有關?
Dev
Development
Ops
Operations
開發運維一體化
MS:
Dev
Development
Ops
Operations
開發運維一體化
MS:
只是起點
code build test deploy operateplan
Measurement
Monitor Metrics Analytics
Continuous Integration
Continuous Delivery
DevOps
Monitoring
Automation
Dev
release
Ops
Feedback
Dev Ops
需求
Infra
Dev Ops
需求
Infra
Dev Ops
客戶
Business
價值
需求
Infra
Dev Ops
客戶
Business
Devops is a cultural movement that changes how
individuals think about their work, values the diversity
of work done, supports intentional processes that
accelerate the rate by which businesses realize value,
and measures the effect of social and technical
change. It is a way of thinking and a way of working
that enables individuals and organizations to develop
and maintain sustainable work practices. It is a cultural
framework for sharing stories and developing empathy,
enabling people and teams to practice their crafts in
effective and lasting ways.
: Effective DevOps P.13, Publisher: O'Reilly Media. (http://shop.oreilly.com/product/0636920039846.do)
《Effective 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
漫畫梗《浪人劍客》:
「用名字是斬不死人的吧」
Google
想像一個情境
有一位新人剛入職
會有一位 Metor 負責
指導熟悉整個工作流程
Local 環境已設置完畢
Local > Try > CI (prod)
Mentorship
Code Review
Pairing (program, admin, more…)
CI -> CD
(Deploy)
Dashboard
You are not alone !
不咎責的事後檢討
非工程師也能參與此流程
另一個真實案例
來自美國政府的部門
專門負責持續交付平台
CD
團隊內大量引入各種工具
提供環境,鼓勵積極嘗試
不同的工具與解決方案
收集意見並調整需求之
優先順序
指導熟悉整個工作流程
自主形成跨團隊小組,協
作解決問題
團隊協作
工具 溝通
默契 / 慣例 規定 / 流程 思維模式
跨領域合作
: https://www.chef.io/solutions/devops/
你覺得其中的重點為何?
C A M S
Culture Automation Measure Sharing
Culture Automation Measure SharingLean
Culture Automation SharingLean
文化 自動化 透明度
Measure
Culture Automation SharingLean
文化 自動化 透明度
Tool ScalingCollaboration Affinity
: Effective DevOps P.57, Publisher: O'Reilly Media. (http://shop.oreilly.com/product/0636920039846.do)
Measure
Culture Automation SharingLean
文化 自動化 透明度
Tool ScalingCollaboration Affinity
Measure
Tool Scaling
Collaboration Affinity
: Effective DevOps P.57, Publisher: O'Reilly Media. (http://shop.oreilly.com/product/0636920039846.do)
協作 Collaboration
Photo by Matteo Vistocco on Unsplash
什麼是協作?
在擁有共同目標的前提下,個體之間為了
朝向某個具體成果,所進行的各種有意識
的活動及過程。
而團隊的協作與否,會對於

組織的生產力造成影響。
影響協作的因素?
溝通
個人背景、專業背景
組織架構、階級
個人目標
認知及思維模式、
工作方式
組織文化、工作環境
more…
親和力 Affinity
Photo by William Bout on Unsplash
什麼是親和力?
人、團隊、組織之間建立的

「連結」與「關係」。
人際網絡、人際連結
群體身份、非我族類
親和力的重要性?
提升信任
強化溝通、減少溝通障礙
提升生產力
當責
(Accountability)
more…
工具 Tools
Photo by Amauri AM on Unsplash
工具 = 文化的加速器
工具決策與組織文化有關
康威定律與工具
是誰制定工具相關決策?
工具的標準化
沒有「最好」的工具
持續改善勝過最佳實踐
工具的影響層面,
比表面還要多更多。
{
擴展 Scaling
Photo by NASA on Unsplash
整體組織在其生命週期中的

演化、成長及進步。
DevOps 可適用於
各種規模的組織
重點在於如何因應異動
保持組織的靈活性、健康
“DevOps is a human
problem”
Patrick Debois
@patrickdebois
: http://itrevolution.com/devops-culture-part-1/
It’s your code !
It’s your
machine !
: https://unsplash.com/photos/KeUKM5N-e_g , https://unsplash.com/photos/nezHaCwch2w
code build test
release
deploy operate
plan
Dev
Ops
穀倉效應
DevOps
Development Operations
dev dev dev ops ops ops
break
break
DevOps
Development Operations
break
break
Business
break
break
RD QA
break
break
你才 DevOps
你全家都 DevOps
DevOps
DevOps
你才 DevOps
你全家都 DevOps
DevOps
DevOps
Development Operations
dev dev ops opsdev ops
DevOps
dev

ops
dev

ops
dev

ops
文化
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
: 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 , 

http://www.jianshu.com/p/f40209023006 , http://itrevolution.com/the-history-of-devops/ , http://www.tocinstitute.org/history-of-toc.html
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
: 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 , 

http://www.jianshu.com/p/f40209023006 , http://itrevolution.com/the-history-of-devops/ , http://www.tocinstitute.org/history-of-toc.html
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
: 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 , 

http://www.jianshu.com/p/f40209023006 , http://itrevolution.com/the-history-of-devops/ , http://www.tocinstitute.org/history-of-toc.html
團隊協作
工具 溝通
默契 / 慣例 規定 / 流程 思維模式
跨領域合作
Top
Down
DevOps
團隊協作
工作流程
專案管理
資源分配
文化
more…
Top
Down
DevOps
文化
more…
鼓勵創新
容許錯誤
持續改善
多元觀點
支援
體系
協同
合作
尊重
信任
資訊
透明
高績效
團隊
: https://www.hbrtaiwan.com/article_content_AR0001707.html
1.
2.
3.
4.
5.
6.
7.
: http://www.master60.com.tw/index-bookmeta.php?v=53
The Power of Minds at Work
Organizational Intelligence in Action
1.
2.
3.
4.
5.
6.
7.
: http://www.master60.com.tw/index-bookmeta.php?v=53
The Power of Minds at Work
Organizational Intelligence in Action
發展
組織智商
1.
2.
3.
4.
5.
6.
7.
: http://www.master60.com.tw/index-bookmeta.php?v=53
The Power of Minds at Work
Organizational Intelligence in Action
學習型
組織
發展
組織智商
1.
2.
3.
4.
5.
6.
7.
: http://www.master60.com.tw/index-bookmeta.php?v=53
The Power of Minds at Work
Organizational Intelligence in Action
學習型
組織
發展
組織智商
組織
經營管理文化
漫畫梗《杖毆魔法使的冒險之書》:
「我能說的只有一件事」
Google
漫畫梗《MAGI魔奇少年》:
「我想要向更好的方向持續改變。想要更
向前進一步。」
Google
漫畫梗《MAGI魔奇少年》:
「我想要向更好的方向持續改變。想要更
向前進一步。」
Google
持續
改善
: http://itrevolution.com/the-three-ways-principles-underpinning-devops/
Dev OpsSystems Thinking
Gene Kim
: http://itrevolution.com/the-three-ways-principles-underpinning-devops/
Dev Ops
Dev Ops
Systems Thinking
Amplify Feedback Loops
Gene Kim
: http://itrevolution.com/the-three-ways-principles-underpinning-devops/
Dev Ops
Dev Ops
Dev Ops
Systems Thinking
Amplify Feedback Loops
Gene Kim
Culture Of Continual Experimentation And Learning
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
: 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 , 

http://www.jianshu.com/p/f40209023006 , http://itrevolution.com/the-history-of-devops/ , http://www.tocinstitute.org/history-of-toc.html
1930s – PDCA-Cycle
20162005
1992 – 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
2009 - DevOps
2006 – AWS
2012 – Ansible
2009 – Chef
2005 – Puppet
2007 – VirtualBox
1999 – VMware
2005 – Git
2010 - Continuous Delivery
: 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 , 

http://www.jianshu.com/p/f40209023006 , http://itrevolution.com/the-history-of-devops/ , http://www.tocinstitute.org/history-of-toc.html
1984 – TOC
Building
Culture
Transformation
LEANAgile
Continuous
Integration
Automated
Testing
Performance /
Availability
Monitoring
ChatOps
AgileOps
Continuous
Deployment
Continuous
Delivery
Automation
Release
Management
Infrastructure
as
Code
Configuration
Management
Virtualization
Container
Microservice
Cloud Native
Cloud
SRE
Summary
企業面臨的競爭
越來越激烈
企業面臨的競爭
越來越激烈
提升企業的
效率、效能
企業面臨的競爭
越來越激烈
提升企業的
效率、效能
架構
複雜性
系統
複雜性
產品
複雜性
組織
複雜性
企業面臨的競爭
越來越激烈
提升企業的
效率、效能
架構
複雜性
系統
複雜性
產品
複雜性
組織
複雜性
軟體開發方法
的演進
系統維運方法
的演進
企業面臨的競爭
越來越激烈
提升企業的
效率、效能
架構
複雜性
系統
複雜性
產品
複雜性
組織
複雜性
軟體開發方法
的演進
系統維運方法
的演進
如何讓 Ops
也敏捷起來
打破穀倉
跨部門、領域
團隊協作
企業面臨的競爭
越來越激烈
提升企業的
效率、效能
架構
複雜性
系統
複雜性
產品
複雜性
組織
複雜性
軟體開發方法
的演進
系統維運方法
的演進
如何讓 Ops
也敏捷起來
打破穀倉
跨部門、領域
團隊協作
出現了更多優質的工具
文化、觀念、思維
的轉變
企業面臨的競爭
越來越激烈
提升企業的
效率、效能
架構
複雜性
系統
複雜性
產品
複雜性
組織
複雜性
軟體開發方法
的演進
系統維運方法
的演進
如何讓 Ops
也敏捷起來
打破穀倉
跨部門、領域
團隊協作
文化、觀念、思維
的轉變

出現了更多優質的工具
企業
轉型
: https://www.atlassian.com/devops
Atlassian
如何面對 DevOps?
擁抱它、接受它、放下它
old
Jeff Geerling
《Ansible for DevOps》
“My advice: spend less time
arguing over the definition of the
word, and more time making it
mean something to you.”
價值
需求
Infra
Dev Ops
客戶
Business
DevOps has become
a folk model!
Photo by Ben White on Unsplash
聆聽別人的故事
漫畫梗《約定的夢幻島》:
「大叔是怎麼行動的?是怎麼活動著他的身體?」(內心 OS)
「觀察、分析,吸收學習。」(內心 OS)
Google
避免貨物崇拜
DevOps Report 2017
: https://puppet.com/resources/whitepaper/state-of-devops-report
了解現況
Culture
Software Value Stream
Workflow
Development Pipeline
more…
: http://www.ca.com/media/cae/html/page.html
了解現況
: http://devopschecklist.com/
: http://www.gartner.com/imagesrv/reprints/272900/272990/272990.pptx
Photo by James Pond on Unsplash
加入社群
Leaders need to realize that implementing DevOps
means changing the technology system as well as
the cultural system. They must acknowledge that
both are intertwined and, to be successful, both
systems must evolve to drive velocity.”
Learning how to manage and lead by giving people
context and information to make better decisions—
versus giving them tickets or briefs—is how leaders
and teams will thrive.
: https://blog.chef.io/2016/10/06/future-of-devops-with-adam-jacob/
Chef CTO Adam Jacob
: http://itrevolution.com/the-three-ways-principles-underpinning-devops/
Dev Ops
Dev Ops
Dev Ops
Systems Thinking
Amplify Feedback Loops
Gene Kim
Culture Of Continual Experimentation And Learning
: http://itrevolution.com/the-three-ways-principles-underpinning-devops/
Dev Ops
Dev Ops
Dev Ops
Systems Thinking
Amplify Feedback Loops
Gene Kim
Culture Of Continual Experimentation And Learning
持續
改善
漫畫梗《幼女戰記》:
「上司與部下之間的想法能夠連貫一致還真是個令人高興的職場
呢」(內心 OS)
「祝貴官們武運昌隆!」
Google
工商服務
https://devopstw.club
尋求志工、贊助
: https://pixabay.com/en/building-joy-planning-plans-1080592/ , https://pixabay.com/en/baby-hand-dad-200760/
尋求講者及講題
: https://www.pexels.com/photo/man-person-suit-united-states-of-america-2281/
Photo by Clark Tibbs on Unsplash
Thank You

Effective DevOps (Agile Tour HsinChu 2017)