官术网_书友最值得收藏!

  • 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:

  1. 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.
  2. 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.
  3. The Nova instance boots and follows these steps:

    1. The cloud-init scripts are run (like all other Nova instances).
    2. The configuration files (for example, trove-guestagent.conf) are copied down to the instance.
    3. The guest agent is installed.
  4. 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.
  5. 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
  6. The Trove manager reports back to the API and the status of the machine is changed.
主站蜘蛛池模板: 文成县| 大港区| 姜堰市| 邯郸市| 新建县| 泸溪县| 怀宁县| 瑞安市| 南陵县| 泰州市| 乌拉特后旗| 阳原县| 沿河| 维西| 若尔盖县| 璧山县| 沈丘县| 资中县| 济南市| 南皮县| 永州市| 滦南县| 遂宁市| 沽源县| 黄石市| 苗栗县| 湖北省| 易门县| 广平县| 大冶市| 清水县| 泰兴市| 读书| 独山县| 南开区| 磐安县| 武宣县| 泽普县| 宜阳县| 宁夏| 曲水县|