您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker Swarm 服务运行原理
热点1152572人已围观
简介...
要在 Docker Engine 处于 swarm 模式时部署应用程序映像,您需要创建一个服务云计。通常,服务是某个较大应用程序上下文中微服务的映像。服务的示例可能包括 HTTP 服务器、数据库算核或您希望在分布式环境中运行的任何其他类型的可执行程序。
创建服务时,您需要指定要使用的容器映心技像以及要在运行的容器内执行的命令。您还可以为服务定义选项,包括:
1.集群在集群外部提术D供服务的端口
2.服务连接到群中其他服务的覆盖oc网络
3.CPU 和内存限制和预留
&nbkesp; 4.滚动更新策略
 r教; 5.要在 swarm 中运行的图像副本的数量
服务、任务和容器
当您将服务部署到 swar程:m 时,swarm 管理器接受您的服务定义作为服务所需的状态。然后它将集群中节点上的服务作为一Do个或多个副本任务进行调度。任务在群中的节点上彼此独立运行。
例如,假设您要在 HTTP 侦听器ck的三个实例之间进行负载平衡。下图显示了具有三个副本的 HTTP 侦听器服务。监听器的三个实例中er的每一个都是 swarm 中的一个任务。
容器是一个孤立的进程。在群模式模型中,每个任务只调 S用一个容器。任务类似于调度程序放置容器的“槽”。一旦容器处于活动状态,调度程序就会识别出wa任务处于运行状态。如果容器未通过健康检查或终止,则任务终止。
Tags:
相关文章
AI 安全性与有效性测试存在严重缺陷,引发专家关注
热点近日,来自英国政府 AI 安全研究所的计算机科学家及斯坦福大学、加州大学伯克利分校和牛津大学的专家们,对超过440个用于评估新人工智能模型安全性和有效性的基准进行了深入研究。他们发现几乎所有测试在某一...
【热点】
阅读更多标签: 奇瑞商用车 江某 职场骚扰 职场霸凌
热点云梦级4月1日云梦级消息,近日,一名奇瑞商用车生态事业部女性员工在微博实名举报,指控公司生态事业部总经理江某长期对自己实施职场骚扰及职场霸凌。今日,奇瑞商用车官博发布严正声明。 声明表示,3月28日,...
【热点】
阅读更多云计算核心技术Docker教程:Java镜像以分离模式运行
热点在上一个模块中,我们创建了示例应用程序,然后创建了一个用于构建映像的 Dockerfile。我们使用命令创建了我们的图像docker build。现在我们有了一个图像,我们可以运行该图像并查看我们的应...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.target.com/s?searchTerm=谷歌留痕软件【tg:seogoogle987】,Cth
- https://www.livehindustan.com/tags/谷歌留痕软件【tg:seogoogle987】,8wB
- https://www.resopal.de/catalogsearch/result/?action=SEARCH&q=谷歌留痕软件【tg:seogoogle987】,sIH
- https://www.lindseymedicalsupply.com/search/谷歌留痕软件【tg:seogoogle987】,UhR
- https://www.wmfe.org/?s=谷歌留痕软件【tg:seogoogle987】,xNM
- https://www.parriscues.com/catalogsearch/result/?q=谷歌留痕软件【tg:seogoogle987】,Znv
- https://nicolazzi.it/en/?s=谷歌留痕软件【tg:seogoogle987】,Xzd
- https://www.pmindia.gov.in/en/?s=谷歌留痕软件【tg:seogoogle987】,UEf
- https://www.localfootdoc.com/?s=谷歌留痕软件【tg:seogoogle987】,a1o
- https://www.ng-slo.si/si/iskanje?cat=114&q=谷歌留痕软件【tg:seogoogle987】,KIX
- https://www.ncetm.org.uk/search?action=CHECK&q=谷歌留痕软件【tg:seogoogle987】,rN7
- https://www.partilerdunyasi.com/index.php?route=product/search&tag=谷歌留痕软件【tg:seogoogle987】,UBM
- https://www.resilienz-akademie.com/?cat=71&s=谷歌留痕软件【tg:seogoogle987】,Qup
- https://www.oprny.com/search.php?search_query=谷歌留痕软件【tg:seogoogle987】,JSS
- https://www.lechzuers.com/de/search?cat=163&q=谷歌留痕软件【tg:seogoogle987】,mXf
- https://www.nissin.com/jp/search/?cat=105&q=谷歌留痕软件【tg:seogoogle987】,ql7
- https://m.shoppinghow.kakao.com/m/search/q/谷歌留痕软件【tg:seogoogle987】WPS
- https://zhidao.baidu.com/index/?action=QUERY&word=谷歌留痕软件【tg:seogoogle987】,Vy4
- https://www.navylookout.com/?ID=nSBR6Ivdu6lZg1yr2SDs30Lo5sTs76yJ&s=谷歌留痕软件【tg:seogoogle987】,eyV
- https://www.spicebar.de/catalogsearch/result/?q=谷歌留痕软件【tg:seogoogle987】,zqU
- https://www.repetto.jp/item/search?action=QUERY&q=谷歌留痕软件【tg:seogoogle987】,Km8
- https://www.krisinformation.se/en/search?q=谷歌留痕软件【tg:seogoogle987】,DDQ
- https://www.lyrics.com/lyrics/谷歌留痕软件【tg:seogoogle987】,Dg5
- https://www.scq.ubc.ca/?page=2&s=谷歌留痕软件【tg:seogoogle987】,wVd
- https://www.youthforum.org/search-results?cx=4f5236218ab5e8ef9&ie=UTF-8&q=谷歌留痕软件【tg:seogoogle987】,dDS
- https://www.theaerogroup.net/?cat=28&s=谷歌留痕软件【tg:seogoogle987】,HQY
- https://www.teamlab.art/it/?submit=谷歌留痕软件【tg:seogoogle987】,vEB
- https://www.ushmm.org/search/results.php?q=谷歌留痕软件【tg:seogoogle987】,gMx
- https://www.wilsonart.com/catalogsearch/result/?action=CHECK&q=谷歌留痕软件【tg:seogoogle987】,ziN
- https://www.unclefossil.com/search/谷歌留痕软件【tg:seogoogle987】gad_source=1&gclid=Cj0KCQjw_-GxBhC1ARIsADGgDjsNKplUXa2F6YGlHBK2sHDQ88cgsJBb05DyO99TV9jNq_cT0kGMqyQaAgHQEALw_wcB
- https://www.flickr.com/photos/tags/谷歌留痕软件【tg:seogoogle987】B3Q
- https://www.rhymezone.com/r/rhyme.cgi?typeofrhyme=oldrel&loc=nojs&Word=谷歌留痕软件【tg:seogoogle987】,gQy
- https://www.lgnewsroom.com/search/谷歌留痕软件【tg:seogoogle987】,51F
- https://www.roberthalf.com/us/en/jobs/all/谷歌留痕软件【tg:seogoogle987】u0f
- https://www.selfsufficientish.com/main/?s=谷歌留痕软件【tg:seogoogle987】,s0s
- https://www.openstreetmap.org/search?query=谷歌留痕软件【tg:seogoogle987】,6wu
- https://www.yr.no/en/search?q=谷歌留痕软件【tg:seogoogle987】,WWB
- https://www.soccerbible.com/search?q=谷歌留痕软件【tg:seogoogle987】,N7V
- https://www.whatsonstage.com/search?cat=64&term=谷歌留痕软件【tg:seogoogle987】,1z1
- https://www.nuovabai.it/catalogsearch/result/?action=SEARCH&q=谷歌留痕软件【tg:seogoogle987】,qMx
- https://www.duksung.ac.kr/search/front/Search.jsp?qt=谷歌留痕软件【tg:seogoogle987】nvj
- https://www.vfw.org/search-results?q=谷歌留痕软件【tg:seogoogle987】,cU2
- https://www.tumblr.com/tagged/谷歌留痕软件【tg:seogoogle987】,px7
- https://www.randjleather.co.uk/index.php?route=product/search&tag=谷歌留痕软件【tg:seogoogle987】,WUe
- https://www.reginatangoshoes.com/en/catalogsearch/result/index/?T=1686132113407&q=谷歌留痕软件【tg:seogoogle987】,3KA
- https://www.lneg.pt/en/?s=谷歌留痕软件【tg:seogoogle987】,FEe
- https://www.temu.com/search_result.html?search_key=谷歌留痕软件【tg:seogoogle987】ms8
- https://www.l-and-b.jp/?page=1&s=谷歌留痕软件【tg:seogoogle987】,28M
- https://www.sic-info.org/vi/?s=谷歌留痕软件【tg:seogoogle987】,vlW
- https://www.jusoen.com/addreng.asp?p1=谷歌留痕软件【tg:seogoogle987】wLE