背景及含义
开发和运维的战争。对于一些小项目,开发、测试、运维都是由一个人或一个小团队完成,但是对于很多大企业来说,开发和运维通常是由两个团队负责的。单看开发和运维两项工作,出发点和目的不同,开发追求变化,运维想要稳定,这是这场战争的本质矛盾,也因此催生了DevOps。
具体来说,哪些场景可能促使一个组织引入DevOps:
使用敏捷或其他软件开发办法或方法业务负责人要求加快产品交付速率虚拟化和云计算基础设施日益普遍数据中心自动化技术和配置管理工具的普及有一种观点认为,占主导地位的“传统”美国式管理风格(“斯隆模型”vs“丰田模型”)会导致“烟囱式自动化”,从而造成开发与运营之间的鸿沟,因此需要DevOps能力来客服这一困难
DevOps是什么:
DevOps是一组过程、方法与系统的统称,用于促进开发(应用程序/软件工程)技术运营和质量保障(QA)部门之间的沟通、协作与整合。 它是一种重视“软件开发人员(Dev)”和“IT技术运维人员(Ops)”之间沟通合作的文化、运动和惯例。透过自动化“软件交付”和“架构变更”的流程,来使得构建、测试、发布软件能够更加地***快捷、频繁和可靠***。 它的出现是由于软件行业日益清晰地认识到:为了按时交付软件产品和服务,开发和运维工作必须紧密合作。 ——引自百度百科
它是一种方法论,让开发团队和运维团队一体化,尽可能为公司创造更多价值。DevOps=Developers+Operators. DevOps是为了让开发、运维、质量管理高效协作,可以看作三者之间的交集。
产生过程
#mermaid-svg-9bDBUo63ihlzB4sT .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-9bDBUo63ihlzB4sT .label text{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT .node rect,#mermaid-svg-9bDBUo63ihlzB4sT .node circle,#mermaid-svg-9bDBUo63ihlzB4sT .node ellipse,#mermaid-svg-9bDBUo63ihlzB4sT .node polygon,#mermaid-svg-9bDBUo63ihlzB4sT .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-9bDBUo63ihlzB4sT .node .label{text-align:center;fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT .node.clickable{cursor:pointer}#mermaid-svg-9bDBUo63ihlzB4sT .arrowheadPath{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-9bDBUo63ihlzB4sT .flowchart-link{stroke:#333;fill:none}#mermaid-svg-9bDBUo63ihlzB4sT .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-9bDBUo63ihlzB4sT .edgeLabel rect{opacity:0.9}#mermaid-svg-9bDBUo63ihlzB4sT .edgeLabel span{color:#333}#mermaid-svg-9bDBUo63ihlzB4sT .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-9bDBUo63ihlzB4sT .cluster text{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-9bDBUo63ihlzB4sT .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-9bDBUo63ihlzB4sT text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-9bDBUo63ihlzB4sT .actor-line{stroke:grey}#mermaid-svg-9bDBUo63ihlzB4sT .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-9bDBUo63ihlzB4sT .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-9bDBUo63ihlzB4sT #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-9bDBUo63ihlzB4sT .sequenceNumber{fill:#fff}#mermaid-svg-9bDBUo63ihlzB4sT #sequencenumber{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT #crosshead path{fill:#333;stroke:#333}#mermaid-svg-9bDBUo63ihlzB4sT .messageText{fill:#333;stroke:#333}#mermaid-svg-9bDBUo63ihlzB4sT .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-9bDBUo63ihlzB4sT .labelText,#mermaid-svg-9bDBUo63ihlzB4sT .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-9bDBUo63ihlzB4sT .loopText,#mermaid-svg-9bDBUo63ihlzB4sT .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-9bDBUo63ihlzB4sT .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-9bDBUo63ihlzB4sT .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-9bDBUo63ihlzB4sT .noteText,#mermaid-svg-9bDBUo63ihlzB4sT .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-9bDBUo63ihlzB4sT .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-9bDBUo63ihlzB4sT .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-9bDBUo63ihlzB4sT .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-9bDBUo63ihlzB4sT .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT .section{stroke:none;opacity:0.2}#mermaid-svg-9bDBUo63ihlzB4sT .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-9bDBUo63ihlzB4sT .section2{fill:#fff400}#mermaid-svg-9bDBUo63ihlzB4sT .section1,#mermaid-svg-9bDBUo63ihlzB4sT .section3{fill:#fff;opacity:0.2}#mermaid-svg-9bDBUo63ihlzB4sT .sectionTitle0{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT .sectionTitle1{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT .sectionTitle2{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT .sectionTitle3{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-9bDBUo63ihlzB4sT .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT .grid path{stroke-width:0}#mermaid-svg-9bDBUo63ihlzB4sT .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-9bDBUo63ihlzB4sT .task{stroke-width:2}#mermaid-svg-9bDBUo63ihlzB4sT .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT .taskText:not([font-size]){font-size:11px}#mermaid-svg-9bDBUo63ihlzB4sT .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-9bDBUo63ihlzB4sT .task.clickable{cursor:pointer}#mermaid-svg-9bDBUo63ihlzB4sT .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-9bDBUo63ihlzB4sT .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-9bDBUo63ihlzB4sT .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-9bDBUo63ihlzB4sT .taskText0,#mermaid-svg-9bDBUo63ihlzB4sT .taskText1,#mermaid-svg-9bDBUo63ihlzB4sT .taskText2,#mermaid-svg-9bDBUo63ihlzB4sT .taskText3{fill:#fff}#mermaid-svg-9bDBUo63ihlzB4sT .task0,#mermaid-svg-9bDBUo63ihlzB4sT .task1,#mermaid-svg-9bDBUo63ihlzB4sT .task2,#mermaid-svg-9bDBUo63ihlzB4sT .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-9bDBUo63ihlzB4sT .taskTextOutside0,#mermaid-svg-9bDBUo63ihlzB4sT .taskTextOutside2{fill:#000}#mermaid-svg-9bDBUo63ihlzB4sT .taskTextOutside1,#mermaid-svg-9bDBUo63ihlzB4sT .taskTextOutside3{fill:#000}#mermaid-svg-9bDBUo63ihlzB4sT .active0,#mermaid-svg-9bDBUo63ihlzB4sT .active1,#mermaid-svg-9bDBUo63ihlzB4sT .active2,#mermaid-svg-9bDBUo63ihlzB4sT .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-9bDBUo63ihlzB4sT .activeText0,#mermaid-svg-9bDBUo63ihlzB4sT .activeText1,#mermaid-svg-9bDBUo63ihlzB4sT .activeText2,#mermaid-svg-9bDBUo63ihlzB4sT .activeText3{fill:#000 !important}#mermaid-svg-9bDBUo63ihlzB4sT .done0,#mermaid-svg-9bDBUo63ihlzB4sT .done1,#mermaid-svg-9bDBUo63ihlzB4sT .done2,#mermaid-svg-9bDBUo63ihlzB4sT .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-9bDBUo63ihlzB4sT .doneText0,#mermaid-svg-9bDBUo63ihlzB4sT .doneText1,#mermaid-svg-9bDBUo63ihlzB4sT .doneText2,#mermaid-svg-9bDBUo63ihlzB4sT .doneText3{fill:#000 !important}#mermaid-svg-9bDBUo63ihlzB4sT .crit0,#mermaid-svg-9bDBUo63ihlzB4sT .crit1,#mermaid-svg-9bDBUo63ihlzB4sT .crit2,#mermaid-svg-9bDBUo63ihlzB4sT .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-9bDBUo63ihlzB4sT .activeCrit0,#mermaid-svg-9bDBUo63ihlzB4sT .activeCrit1,#mermaid-svg-9bDBUo63ihlzB4sT .activeCrit2,#mermaid-svg-9bDBUo63ihlzB4sT .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-9bDBUo63ihlzB4sT .doneCrit0,#mermaid-svg-9bDBUo63ihlzB4sT .doneCrit1,#mermaid-svg-9bDBUo63ihlzB4sT .doneCrit2,#mermaid-svg-9bDBUo63ihlzB4sT .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-9bDBUo63ihlzB4sT .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-9bDBUo63ihlzB4sT .milestoneText{font-style:italic}#mermaid-svg-9bDBUo63ihlzB4sT .doneCritText0,#mermaid-svg-9bDBUo63ihlzB4sT .doneCritText1,#mermaid-svg-9bDBUo63ihlzB4sT .doneCritText2,#mermaid-svg-9bDBUo63ihlzB4sT .doneCritText3{fill:#000 !important}#mermaid-svg-9bDBUo63ihlzB4sT .activeCritText0,#mermaid-svg-9bDBUo63ihlzB4sT .activeCritText1,#mermaid-svg-9bDBUo63ihlzB4sT .activeCritText2,#mermaid-svg-9bDBUo63ihlzB4sT .activeCritText3{fill:#000 !important}#mermaid-svg-9bDBUo63ihlzB4sT .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-9bDBUo63ihlzB4sT g.classGroup text .title{font-weight:bolder}#mermaid-svg-9bDBUo63ihlzB4sT g.clickable{cursor:pointer}#mermaid-svg-9bDBUo63ihlzB4sT g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-9bDBUo63ihlzB4sT g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-9bDBUo63ihlzB4sT .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-9bDBUo63ihlzB4sT .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-9bDBUo63ihlzB4sT .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-9bDBUo63ihlzB4sT .dashed-line{stroke-dasharray:3}#mermaid-svg-9bDBUo63ihlzB4sT #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-9bDBUo63ihlzB4sT #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-9bDBUo63ihlzB4sT #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-9bDBUo63ihlzB4sT #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-9bDBUo63ihlzB4sT #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-9bDBUo63ihlzB4sT #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-9bDBUo63ihlzB4sT #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-9bDBUo63ihlzB4sT #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-9bDBUo63ihlzB4sT .commit-id,#mermaid-svg-9bDBUo63ihlzB4sT .commit-msg,#mermaid-svg-9bDBUo63ihlzB4sT .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-9bDBUo63ihlzB4sT g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-9bDBUo63ihlzB4sT g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-9bDBUo63ihlzB4sT g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-9bDBUo63ihlzB4sT .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-9bDBUo63ihlzB4sT .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-9bDBUo63ihlzB4sT .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-9bDBUo63ihlzB4sT .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-9bDBUo63ihlzB4sT .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-9bDBUo63ihlzB4sT .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-9bDBUo63ihlzB4sT .edgeLabel text{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-9bDBUo63ihlzB4sT .node circle.state-start{fill:black;stroke:black}#mermaid-svg-9bDBUo63ihlzB4sT .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-9bDBUo63ihlzB4sT #statediagram-barbEnd{fill:#9370db}#mermaid-svg-9bDBUo63ihlzB4sT .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-9bDBUo63ihlzB4sT .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-9bDBUo63ihlzB4sT .statediagram-state .divider{stroke:#9370db}#mermaid-svg-9bDBUo63ihlzB4sT .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-9bDBUo63ihlzB4sT .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-9bDBUo63ihlzB4sT .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-9bDBUo63ihlzB4sT .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-9bDBUo63ihlzB4sT .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-9bDBUo63ihlzB4sT .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-9bDBUo63ihlzB4sT .note-edge{stroke-dasharray:5}#mermaid-svg-9bDBUo63ihlzB4sT .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-9bDBUo63ihlzB4sT .error-icon{fill:#522}#mermaid-svg-9bDBUo63ihlzB4sT .error-text{fill:#522;stroke:#522}#mermaid-svg-9bDBUo63ihlzB4sT .edge-thickness-normal{stroke-width:2px}#mermaid-svg-9bDBUo63ihlzB4sT .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-9bDBUo63ihlzB4sT .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-9bDBUo63ihlzB4sT .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-9bDBUo63ihlzB4sT .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-9bDBUo63ihlzB4sT .marker{fill:#333}#mermaid-svg-9bDBUo63ihlzB4sT .marker.cross{stroke:#333}
:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}
#mermaid-svg-9bDBUo63ihlzB4sT {
color: rgba(0, 0, 0, 0.75);
font: ;
}
传统瀑布模型
1.完整清晰固定的需求
2.完整清晰固定的产品定义
敏捷开发模型
2.需求频繁变化
3.需求快速开发
DevOps开发模型
1.需求频繁变化
2.需求快速开发
3.部署需要敏捷
在瀑布开发模型时期,产品使用人数规模还比较小,大家对产品的要求关注点仅停留在可以使用、可以解决问题即可,所以在这个时期,产品经理给到固定清晰完整的需求,研发人员根据需求在约定的时间内交付,将重点放在功能开发,之后交给测试团队进行测试,完成之后交给运维团队上线,之后运维团队负责可用性和稳定性。
这种模式只适用于早期,需求不能得到快速验证,团队开发的产品很有可能无法适应快速变化的市场。
在敏捷开发模型时期,产品使用人数规模开始增大,大家开始关注好玩、好用,同时有些人注意到了互联网红利,投身互联网。
这种模式开始面对频繁的需求变化,应对快速开发。产品经理对需求进行拆分,把任务分配给不同研发人员,定期碰头check完成情况,直到开发完成。
针对于DevOps,互联网产品使用人数规模大量增加,同时互联网企业之间的竞争也开始加大,对互联网产品提出了更高的要求。只有快速捕捉用户需求,快速迭代产品,才能占领市场。持续开发,持续测试,持续集成,持续部署,持续监控。
诉求
显然,DevOps是为了让开发和运维两个部门之间的围墙打通,形成闭环,让工作流程变得更加通畅。 (图片来自于https://blog.csdn.net/bjweimengshu/article/details/79031552)
更小、更频繁地变更——意味着更少的风险让开发人员更多地控制生产环境更多地以应用程序为中心来解决基础设施定义简洁明了的流程尽可能地自动化促成开发与运营的协作
DevOps对应用发布程序的影响
在很多企业中,应用程序发布是一项涉及多个团队、压力很大、风险很高的活动,但是在具备DevOps能力的组织中,应用程序发布的风险会降低,原因如下:
减少变更范围。与传统的瀑布式开发模式相比,采用敏捷或迭代式开发意味着更频繁地发布,每次发布包含的变化更少。由于部署经常进行,因此每次部署不会对生产系统造成巨大影响,应用程序会以平滑的速率逐渐生长。加强发布协调。靠强有力的发布协调人来弥合开发与运营之间的技术鸿沟和沟通鸿沟,采用电子数据表、电话会议、即使消息、企业门户等协作工作来确保所有相关人员理解变更的内容并全力合作。自动化。强大的部署自动化手段确保部署任务的可重复性、减少部署出错的可能性。
DevOps是如何运作的
团结开发、测试、运维,强调整体业务目标,调整考核评价机制。以用户价值作为唯一评判标准,把个体和团队的成功都放在整个开发-运维的生命周期中来评价,不能只单纯局限于某个环节任务完成,将着眼点扩展到产品生命周期全局。开发完成了很多用户需求不一定是成功,运维维持系统稳定也不一定是成功,只有用户想要的功能被及时实现、被成功部署、被稳定实现才算成功。
持续开发持续测试持续集成持续部署持续监控 与传统开发方法那种大规模的、不频繁的发布相比,敏捷方法大大提升了发布频率。
DevOps案例之暗启动技术
Facebook曾经因为向全球若干亿用户推出一系列新功能导致产生巨大流量致使服务器崩溃,出现了不可控的结果。之后,Facebook重新调整评估,使用了DevOps原则,推出了暗启动技术。暗启动技术是在新功能完全发布给所有用户之前,逐步将新功能推广到选定的一组用户的过程。这种发布方法是持续交付的直接结果,使得开发团队可以及时获取用户反馈,更新迭代,还不会造成大规模影响。
新功能先在小范围给特定的人投放新功能会被监测,根据反馈持续进行开发测试一旦新功能被证实稳定,会在更多人群投放,多个版本进行升级
(图片来自于https://blog.csdn.net/g6U8W7p06dCO99fQ3/article/details/82056948)
可以看到,这项技术在使用时,只开放了一个部署通道,新功能只部署到了一部分选定用户,剩余其他的部署通道全部关闭。监测这部分用户,持续迭代,当功能变得稳定时启用其他部署通道。
总结
DevOps让开发、运维之间更加高效地沟通协作,更加快速地实现产品功能迭代以满足用户需求,在产品交付过程中持续稳定地输出价值。
参考链接
百度百科https://www.jianshu.com/p/c5d002cf25b9https://blog.csdn.net/g6U8W7p06dCO99fQ3/article/details/82056948https://blog.csdn.net/bjweimengshu/article/details/79031552