注冊(cè) | 登錄讀書好,好讀書,讀好書!
讀書網(wǎng)-DuShu.com
當(dāng)前位置: 首頁(yè)出版圖書科學(xué)技術(shù)工業(yè)技術(shù)自動(dòng)化技術(shù)、計(jì)算技術(shù)用Mesos框架構(gòu)建分布式應(yīng)用

用Mesos框架構(gòu)建分布式應(yīng)用

用Mesos框架構(gòu)建分布式應(yīng)用

定 價(jià):¥55.00

作 者: [美] David,Greenberg(大衛(wèi)· 格林伯格) 著;崔婧雯 譯
出版社: 電子工業(yè)出版社
叢編項(xiàng):
標(biāo) 簽: 計(jì)算機(jī)/網(wǎng)絡(luò) 軟件工程/開(kāi)發(fā)項(xiàng)目管理

ISBN: 9787121306778 出版時(shí)間: 2017-01-01 包裝: 平裝
開(kāi)本: 16開(kāi) 頁(yè)數(shù): 148 字?jǐn)?shù):  

內(nèi)容簡(jiǎn)介

  Apache Mesos是先進(jìn)的集群管理器,既可以作為靈活的部署系統(tǒng),也可以作為強(qiáng)大的執(zhí)行平臺(tái)。它不僅為分布式應(yīng)用程序提供了良好的資源隔離,而且突破性地實(shí)現(xiàn)了資源的靈活共享,極大地提高了資源的整體利用率。本書深入淺出,首先介紹了Mesos的基礎(chǔ)知識(shí),隨后重點(diǎn)學(xué)習(xí)Mesos的兩種開(kāi)源框架(Marathon和Chronos)。以實(shí)際程序樣例為線索,一步步講解如何配置,如何交互,以及如何構(gòu)建深度集成。接著詳細(xì)介紹如何為Mesos構(gòu)建自定義的框架,如何構(gòu)建核心Mesos API。最后深入研究Mesos的一些高級(jí)特性,比如和Docker的集成,其內(nèi)部架構(gòu),以及一些最先進(jìn)的API,包括數(shù)據(jù)庫(kù)的持久化磁盤管理,以及框架預(yù)約系統(tǒng)。

作者簡(jiǎn)介

  崔婧雯,現(xiàn)就職于IBM,高級(jí)軟件工程師,負(fù)責(zé)IBM業(yè)務(wù)流程管理軟件的系統(tǒng)測(cè)試工作。曾就職于VMware從事桌面虛擬化產(chǎn)品的質(zhì)量保證工作。對(duì)分布式集群管理,虛擬化,業(yè)務(wù)流程管理都有濃厚的興趣。 David Greenberg是Two Sigma的首席架構(gòu)師,他負(fù)責(zé)公司交易策略所用的分布式計(jì)算環(huán)境。David有強(qiáng)烈的學(xué)習(xí)欲望,自學(xué)了俄語(yǔ)和中文,并且他很喜歡練習(xí)廚藝。他也是一個(gè)調(diào)度獨(dú)占作業(yè)的開(kāi)源Mesos框架――Cook的設(shè)計(jì)師。

圖書目錄

序 ................................................................................................ ix
第1 章 Mesos 介紹 ......................................................................1
如何使用Mesos .....................................................................................................2
Mesos 作為部署系統(tǒng) ..............................................................................................3
Mesos 作為執(zhí)行平臺(tái) ..............................................................................................4
本書是如何組織的 .................................................................................................5
本章小結(jié) ................................................................................................................5
第2 章 開(kāi)啟Mesos 之旅 ...............................................................7
框架 .......................................................................................................................7
Master 和Slave ......................................................................................................8
Master .............................................................................................................8
Slave ..............................................................................................................10
資源 .....................................................................................................................13
配置自定義資源 ............................................................................................15
配置slave 屬性 .............................................................................................16
角色 .....................................................................................................................16
靜態(tài)和動(dòng)態(tài)slave 預(yù)留 ..................................................................................17
任務(wù)和執(zhí)行器 ......................................................................................................20
CommandExecutor ........................................................................................21
理解mesos.proto ..................................................................................................21
不通過(guò)Mesos 管理 ..............................................................................................24
本章小結(jié) ..............................................................................................................25
第3 章 將已有應(yīng)用程序遷移到Mesos 上 .....................................27
將Web 應(yīng)用程序遷移到Mesos 上 .......................................................................27
搭建Marathon ......................................................................................................28
使用Marathon ......................................................................................................30
擴(kuò)展應(yīng)用程序 ................................................................................................35
使用位置約束 ................................................................................................35
運(yùn)行容器化的應(yīng)用程序 .................................................................................37
掛載主機(jī)卷 ...................................................................................................38
健康檢查 .......................................................................................................40
應(yīng)用版本化和滾動(dòng)升級(jí) .................................................................................42
事件總線 .......................................................................................................43
搭建Marathon 上的HAProxy .......................................................................43
在Marathon 上運(yùn)行Mesos 框架 ..........................................................................47
Chronos 是什么 .............................................................................................47
在Marathon 上運(yùn)行Chronos .........................................................................48
Chronos 運(yùn)維注意事項(xiàng) ..................................................................................49
Marathon 上的Chronos :小結(jié) ......................................................................50
Marathon+Chronos 的備選方案 ...........................................................................50
Singularity .....................................................................................................50
Aurora ...........................................................................................................51
本章小結(jié) ..............................................................................................................51
第4 章 為Mesos 創(chuàng)建新的框架 ...................................................53
調(diào)度器 ..................................................................................................................53
服務(wù)器池調(diào)度器 ............................................................................................54
工作隊(duì)列調(diào)度器 ............................................................................................54
作業(yè)處理器調(diào)度器 ........................................................................................55
沒(méi)什么用的遠(yuǎn)程BASH ........................................................................................56
實(shí)現(xiàn)基本的作業(yè)處理器 ........................................................................................62
將任務(wù)匹配到Offer 上 .........................................................................................65
搭建Offers 和Jobs 之間語(yǔ)義差別的橋梁 .....................................................68
增加高可用性 ......................................................................................................70
添加核對(duì) ..............................................................................................................76
高級(jí)調(diào)度器技術(shù) ...................................................................................................77
分布式通信 ...................................................................................................78
強(qiáng)制故障轉(zhuǎn)移 ................................................................................................79
合并Offer......................................................................................................79
加固調(diào)度器 ...................................................................................................80
檢查點(diǎn) ...........................................................................................................82
CommandInfo ................................................................................................83
啟動(dòng)進(jìn)程 .......................................................................................................83
配置進(jìn)程環(huán)境 ................................................................................................83
本章小結(jié) ..............................................................................................................84
第5 章 構(gòu)建Mesos 執(zhí)行器 .........................................................85
執(zhí)行器 ..................................................................................................................85
構(gòu)建工作隊(duì)列worker ....................................................................................86
運(yùn)行pickled 任務(wù) ..........................................................................................86
共享資源 .......................................................................................................86
更好地看護(hù) ...................................................................................................87
增強(qiáng)的日志 ...................................................................................................88
重寫CommandExecutor .......................................................................................88
引導(dǎo)執(zhí)行器的安裝 ...............................................................................................97
添加心跳 ..............................................................................................................99
高級(jí)執(zhí)行器特性 ................................................................................................. 102
進(jìn)度報(bào)告 ..................................................................................................... 103
添加遠(yuǎn)程日志 .............................................................................................. 104
多個(gè)任務(wù) ..................................................................................................... 104
本章小結(jié) ............................................................................................................ 106
第6 章 Mesos 的進(jìn)階主題 ........................................................107
Libprocess 和Actor 模型 ................................................................................... 107
一致性模型 ........................................................................................................ 108
如何處理slave 的故障 ................................................................................ 109
如何處理master 的故障(或者,registry) ................................................. 110
故障轉(zhuǎn)移期間的核對(duì) ................................................................................... 111
容器機(jī) ................................................................................................................ 113
使用Docker................................................................................................. 113
新的Offer API ................................................................................................... 114
框架動(dòng)態(tài)預(yù)留API ....................................................................................... 115
數(shù)據(jù)庫(kù)使用的持久化卷 ............................................................................... 118
本章小結(jié) ............................................................................................................ 119
第7 章 Mesos 的未來(lái) ...............................................................121
多租戶工作負(fù)載 ................................................................................................. 121
超配 ................................................................................................................... 123
數(shù)據(jù)庫(kù)和Turnkey 基礎(chǔ)架構(gòu) .............................................................................. 125
基于容器的IP .................................................................................................... 125
本章小結(jié) ............................................................................................................ 126

本目錄推薦

掃描二維碼
Copyright ? 讀書網(wǎng) ranfinancial.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號(hào) 鄂公網(wǎng)安備 42010302001612號(hào)