- OpenStack Trove Essentials
- Alok Shrivastwa Sunil Sarat
- 273字
- 2021-07-09 19:59:15
Putting it all together
Now that you have understood the architecture and terminologies, we will take a look at the general steps that are followed:
- Horizon/Trove CLI requests a new database instance and passes the datastore name and version, along with the flavor ID and volume size as mandatory parameters. Optional parameters such as the configuration group, AZ, replica-of, and so on can also be passed.
- The Trove API requests Nova for an instance with the particular image and a Cinder volume of a specific size to be added to the instance.
- The Nova instance boots and follows these steps:
- The cloud-init scripts are run (like all other Nova instances).
- The configuration files (for example,
trove-guestagent.conf
) are copied down to the instance. - The guest agent is installed.
- The Trove API will also have sent the request to the task manager, which will then send the
prepare
call to the message bus topic. - After booting, the guest agent listens to the message bus for any activities for it to do, and once it finds a message for itself, it processes the
prepare
command and performs the following functions:- Installing the database distribution (if not already installed on the image)
- Creating the configuration file with the default configuration for the database engine (and any configuration from the configuration groups associated overriding the defaults)
- Starting the database engine and enabling auto-start
- Polling the database engine for availability (until the database engine is available or the timeout is reached)
- Reporting the status back to the Trove backend using the Trove conductor
- The Trove manager reports back to the API and the status of the machine is changed.
推薦閱讀
- Linux運(yùn)維之道(第3版)
- Linux設(shè)備驅(qū)動(dòng)開(kāi)發(fā)詳解:基于最新的Linux4.0內(nèi)核
- 樂(lè)學(xué)Windows操作系統(tǒng)
- WordPress Mobile Web Development:Beginner's Guide
- Learning Android Intents
- Instant Handlebars.js
- Instant Optimizing Embedded Systems using Busybox
- STM32庫(kù)開(kāi)發(fā)實(shí)戰(zhàn)指南:基于STM32F4
- AutoCAD 2014中文版從入門(mén)到精通
- Django Project Blueprints
- Distributed Computing with Go
- Linux系統(tǒng)最佳實(shí)踐工具:命令行技術(shù)
- 精解Windows 10
- Linux軟件管理平臺(tái)設(shè)計(jì)與實(shí)現(xiàn)
- Linux內(nèi)核分析及應(yīng)用