摘要:https://github.com/openstack/osprofiler
阅读全文
摘要:https://wiki.openstack.org/wiki/WatcherWatcher为OS提供资源优化。主要是通过虚拟机迁移来提高整个数据中心的运营效率,降低TCO。功能特点:通过虚拟机迁移来提高整个数据中心的运营效率和各种优化advise mode (manual) or active m...
阅读全文
摘要:架构图Yagi从rabbitmq拿到 notifications并传递给YagiHandlers链。YagiHandlers包括:Shoeboxfor long-term archiving.Atom-Hopperfor pub-sub ATOM feeds.Stack-distiller/Winc...
阅读全文
摘要:1 compute.instance.update类型的消息需要配置notify_on_state_change参数,可以为空,或者vm_state,或者vm_and_task_state,当虚拟机的状态或者task状态发送变化时发送消息: cfg.StrOpt('notify_on_state_c...
阅读全文
摘要:nova中利用libvirt 事件来更新vm的DB中的power状态https://wiki.openstack.org/wiki/ComputeDriverEventsNova compute manager每10分钟报告hypervisor上VM的状态,可以让nova检测到vm的真实状态,比如v...
阅读全文
摘要:系统状态作者 孔令贤 Nova提供这么几个资源状态的查询。ServiceNova中的service有两类,一类是所谓的control service,一类就是compute service。要想获取Nova的service详细信息,必须要启用os-extended-services扩展。servi...
阅读全文
摘要:$ nova help | grep flavor- flavor-access-add Add flavor access for the given tenant. flavor-access-list Print access information about the gi...
阅读全文
摘要:nova/virt/libvirt/vif.py: _("Unexpected vif_type=%s") % vif_type)NovaException: Unexpected vif_type=binding_failed:/opt/stack/nova$ git...
阅读全文
摘要:物理机有两种重启方式:一种从操作系统中重启,一种直接先断电然后再接通电源。虚机的重启也有类似的两种方式:Soft Reboot 和 Hard Reboot。nova reboot 命令在不使用 “-hard” 情况下,默认会 Soft Reboot,如果失败则会 Hard reboot;如果使用了 ...
阅读全文
摘要:usage: nova rescue [--password ] [--image ] Reboots a server into rescue mode, which starts the machine from either the initial image or a specified i...
阅读全文
摘要:当一个虚机不需要使用的时候,可以将其 shelve 起来。该操作会创建该虚机的一个快照并传到 Glance 中,然后在 Hypervisor 上将该虚机删除,从而释放其资源。其主要过程为:destroy 虚机 (virt_dom.destroy())snapshot 该 domain如果CONF.s...
阅读全文
摘要:作用:当一个 node down 掉后,在新的 node 上根据其 DB 中保存的信息重新 build down node 上虚机。这个往往在虚机 HA 方案中用到。它尽可能地将原来的虚机在新的主机上恢复:虚机的配置:从 DB 中获取,包括 image,block,network 等虚机的数据:如果...
阅读全文
摘要:创建一个ceilometer alarm需要4次DB操作:api/controllers/v2/alarms.py1. is_over_quota 每一次都需要查询该user/project的所有alarms2. 判断alarm name是否已经存在于DB中,也需要查询该user/project的所...
阅读全文
摘要:Ceilometer和其他OpenStack项目相比,部署中比较不同的是Ceilometer可以选用多种不同的后台数据库来保存测量值和警告器。 目前Ceilometer支持的后台数据库及及其相应的配置如表9-5所示: 表9-5 Ceilometer支持的后台数据库 数据库 配置项示例 说明 Mong
阅读全文