国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
Cloudify在云環(huán)境下的引導(dǎo)過程
2014-04-22 18:10 1038人閱讀 評論(0) 收藏 舉報

Cloudify使用引導(dǎo)進程為Cloudify管理以及部署應(yīng)用所需的服務(wù)準(zhǔn)備機器。

啟動進程負(fù)責(zé)分配機器(物理機或虛擬機),安裝Cloudify組件模塊所需的軟件(JDK)。通過Cloudify命令行中運行相關(guān)的命令啟動初始的引導(dǎo)進程。一般而言,引導(dǎo)程序執(zhí)行以下任務(wù):

  1. 從相關(guān)模板定義的可用機器資源池中分配一臺機器。更多模板信息,請看Cloudify驅(qū)動文件(Cloudify driver file
  2. 通過SSH(*nix)或者WinRM(Windows)連接分配的機器。
  3. 安裝并啟動相關(guān)組件。

一旦引導(dǎo)進程連接到分配的機器,它會上傳引導(dǎo)機器所需的文件。這一般包括存放于上傳文件夾的(<cloudifyRoot>/clouds/<cloudProviderName>/upload)的啟動腳本和其他所需文件,例如SSH密鑰文件。一旦這些文件上傳到機器,相關(guān)的引導(dǎo)腳本就會啟動運行。

下表描述了引導(dǎo)*nix和Windows、管理以及運行應(yīng)用服務(wù)的啟動腳本。

ScriptOSTypeDescription
bootstrap-management.sh*nixShellThis script is used for bootstrapping both management and application service machines, and performs the following tasks as required:
  • Downloads the Cloudify distribution file
  • Installs Java (required to run the Cloudify agent)
  • Installs Cloudify
  • Runs the Cloudify agent
bootstrap-management.ps1WindowsPowerShellThis script is used for bootstrapping both management and application machines, and performs the following tasks:
  • Downloads the Cloudify distrubtion file
  • Installs Java (required to run the Cloudify agent)
  • Installs Cloudify
bootstrap-client.ps1WindowsPowerShellThis script is used for launching commands on remote machine running Windows
引導(dǎo)管理機器將啟動Cloudify控制器進程,而引導(dǎo)應(yīng)用服務(wù)實例機器將只會啟動Cloudify代理。Cloudify代理使得控制器能夠使用服務(wù)實例機器安裝和擴展服務(wù)。

下面按照支持的機器類型介紹引導(dǎo)過程:

Cloudify管理備用機

當(dāng)有關(guān)云的驅(qū)動程序接收到引導(dǎo)云的請求后,它執(zhí)行如下任務(wù):

  1. 從管理機器模板定義的可用機器資源池中,通過云提供的API分配一臺機器。
  2. 通過SSH或WinRM連接所分配的機器。
  3. 安裝并啟動Cloudify管理組件,包括Cloudify控制器和相關(guān)云的驅(qū)動。


應(yīng)用程序服務(wù)備用機

當(dāng)Cloudify控制器接收到安裝應(yīng)用程序的請求時,它請求相關(guān)的云驅(qū)動為應(yīng)用程序準(zhǔn)備所需的機器。云驅(qū)動準(zhǔn)備機器的過程如下:

  1. 從提供服務(wù)相關(guān)模板定義的可用機器資源池中,通過云提供的API分配一臺機器。
  2. 通過SSH或WinRM連接所分配的機器。
  3. 安裝并啟動Cloudify代理。
  4. 使用相關(guān)服務(wù)的安裝腳本初始化服務(wù)安安裝。


使用在傳統(tǒng)數(shù)據(jù)中心自定義的驅(qū)動分配機器,如果資源池中沒有可用機器,會顯示一條錯誤消息:

Failed to create a new cloud node for template <your template name>, all available nodes are currently used

如果出現(xiàn)此錯誤,應(yīng)用安裝的請求不會撤銷,Cloudify控制器會繼續(xù)反復(fù)嘗試,直到有一臺可用機器。停止這一過程,可以從Cloudify命令行中用Ctrl-C結(jié)束安裝命令,然后運行相應(yīng)的卸載命令。

先決條件

Cloudify的目標(biāo)是最小化服務(wù)器的前提條件,這樣可讓標(biāo)準(zhǔn)的操作系統(tǒng)能夠不預(yù)先安裝特定軟件,可以即刻運行Cloudify。下面的表格中列出了引導(dǎo)機器所需的前提條件:

PrerequisiteWindows*nix
JDKJDK 1.6 or higher — download the latest update available (e.g.JDK 6 Update 23)JDK 1.6 or higher — download the latest update available (e.g.JDK 6 Update 23)
Available Disk Space500 MB500 MB
Network Ports
  • All ports open between machines in same service
  • All ports open between management machines and all other machines
  • On the management machine, ports 8099 and 8100 must be open for communication from the Internet via the machine’s public IP address. This allows the Cloudify shell to interact with the REST server and allows users to access the management web application.
  • All ports open between machines in same service
  • All ports open between management machines and all other machines
  • On the management machines, ports 8099 and 8100 must be open for communication from the Internet via the machine’s public IP address. This allows the Cloudify shell to interact with theREST server and allows users to access the management web application.
Credentialsusername and password; Active Directory is not supported in this version.username and password, or username and .pem file; Kerberos not supported in this version.
Operating System Specific Requirements
  • Windows file sharing enabled on port 445 (CIFS)
  • WinRM enabled on port 5985

    To enable WinRM on your machine before bootstrapping a cloud, at the PowerShell prompt with administrative credentials, type the following commands:
    • set-itemWSMan:\localhost\Client\TrustedHosts -Value * -Force
    • set-itemWSMan:\localhost\Shell\MaxMemoryPerShellMB -Value 0 -Force
    • Enable-PSRemoting
    • Set-ExecutionPolicy unrestricted

    Setting TrustedHosts to ‘*’ has security implications. Please consult with your IT department before running this command.

  • Windows PowerShell installed and included in the system path on the client machine (the machine where Cloudify shell is installed and runs the bootstrap-cloud command) and management machines. (Exists by default on Windows 7 and Windiws Server 2008)

Cloudify uses PowerShell to run commands on remote machines. Therefore, you must use a client machine running Windows to bootstrap a machine running Windows; however, a client machine running Windows can bootstrap a machine runnnig *nix.


另外,不同的云環(huán)境有其自己的特定配置。下面是在云環(huán)境下的預(yù)先配置:

云驅(qū)動文件:描述可被不同的Recipes引用關(guān)聯(lián)的模板和別名。每個模板定義了可用機器的資源池。

引導(dǎo)管理腳本。

網(wǎng)絡(luò)共享。

Cloudify分發(fā)文件在本地的存放位置。

云環(huán)境管理控制臺的身份信息(認(rèn)證信息、憑證等)

引導(dǎo)

下面的過程描述了引導(dǎo)云和應(yīng)用程序的過程:

啟動Cloudify管理控制臺,更多信息請見 Installing the Cloudify Shell

啟動引導(dǎo)進程為Cloudify管理提供機器:通過Cloudify命令行的相關(guān)命令引導(dǎo)云。例如本地環(huán)境的命令是bootstrap-localcloud。特定云環(huán)境的命令在其他相關(guān)的主題中。

一旦命令執(zhí)行完成,會顯示Cloudify的Web管理控制臺的URL和Cloudify控制器的REST服務(wù)端口。另外,命令行也會把自動連接控制器作為引導(dǎo)的其中一個過程,所以不用手工執(zhí)行connect命令進行連接。

啟動引導(dǎo)進程為應(yīng)用服務(wù)準(zhǔn)備機器:從Cloudify控制臺鍵入相關(guān)命令安裝應(yīng)用。例如安裝PetClinic應(yīng)用,install-application -timeout 10 <cloudify root>/examples/petclinic-simple

接下來

想得到更多的關(guān)于特定云環(huán)境的配置請見相關(guān)主題:

想得到更多的關(guān)于特定云環(huán)境的引導(dǎo)信息,請見相關(guān)主題:

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
An Introduction to Virtualization
用 IIS 7、ARR 與 Velocity 建設(shè)高性能的大型網(wǎng)站 - Wizard 編程網(wǎng) - 博客園
解決Windows 8.1中所有的應(yīng)用(Modern App)無法打開(閃退)的問題
Windows服務(wù)器ie瀏覽器不好用的問題
Win10中docker的安裝與使用
在Windows中玩轉(zhuǎn)Docker Toolbox
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服