新西兰服务器

如何Start Instance 操作


如何Start Instance 操作

发布时间:2021-11-19 16:04:28 来源:高防服务器网 阅读:104 作者:柒染 栏目:云计算

这期内容当中小编将会给大家带来有关如何Start Instance 操作,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。

通过日志文件详细分析 instance start 操作。

下面是 start instance 的流程图

  1. 向 nova-api 发送请求

  2. nova-api 发送消息

  3. nova-compute 执行操作

下面我们详细讨论每一个步骤。

向 nova-api 发送请求

客户(可以是 OpenStack 最终用户,也可以是其他程序)向API(nova-api)发送请求:“帮我启动这个 Instance”

查看日志 /opt/stack/logs/n-api.log

nova-api 发送消息

nova-api 向 Messaging(RabbitMQ)发送了一条消息:“启动这个 Instance” 查看源代码 /opt/stack/nova/nova/compute/api.py 的 2002 行,方法是 start。

self.compute_rpcapi.start_instance() 的作用就是向 RabbitMQ 上 nova-compute 的消息队列里发送一条 start instance 的消息。

nova-compute 执行操作

查看日志 /opt/stack/logs/n-cpu.log

开始启动

准备虚拟网卡

准备 instance 的 XML 文件

准备 instance 镜像文件

成功启动

上述就是小编为大家分享的如何Start Instance 操作了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注高防服务器网行业资讯频道。

[微信提示:高防服务器能助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

[图文来源于网络,不代表本站立场,如有侵权,请联系高防服务器网删除]
[