Skip to Content
Java持续交付
book

Java持续交付

by Daniel Bryant, Abraham Marín-Pérez
November 2019
Beginner to intermediate
406 pages
9h 21m
Chinese
Publishing House of Electronics Industry
Content preview from Java持续交付
部署应用程序
227
10-11:最小服务部署。在任意时刻,不管是新版本还是旧版本,至少有2个实例可以提供服务
滚动部署
你可以将滚动部署看作最小服务部署的另一种形式,不过它的重点不在于健康实例的最
小数量,而在于停止实例的最大数量。滚动部署最典型的情况是将该最大值设置为
1
意味着在任意时间只有一个实例处于更新过程中。即停止一个旧的实例,然后更新并启
动一个新的实例,只有当新的实例正常运行后,才能继续停止下一个实例。在某些情况下,
滚动部署可以提升最大值,同时允许两个、三个或者更多的实例进行更新。
作为最小服务部署的另一种形式,滚动部署具有与其几乎相同的特点,它可以在不需要
额外资源的情况下避免服务中断。与最小服务部署相比,它的主要优点在于,通过限制
同时停止实例的数量,你可以控制需要保留多少实例来承接额外的负载,它的缺点是部
署需要更长的时间,并且根据实例的数量、启动时间和重新部署的速度,可能需要分多
次操作来部署实例。
对于滚动部署的策略,定义参数如下所示。
y
desired: 5
y
minimum: 80%
(或者
4
,如果用绝对数字表示的话)
y
maximum: 0%
注意,因为滚动部署相当于最小服务部署的另一种形式,所以
minimum = desired
-
1
228
10
通过管道进行部署和发布 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

写给系统管理员的Python脚本编程指南

写给系统管理员的Python脚本编程指南

Posts & Telecom Press, Ganesh Sanjiv Naik
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
解密金融数据

解密金融数据

Justin Pauley
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9787121374425