您的位置:首页 > 运维架构

【OpenStack】简单实现接收nitification功能

2013-09-10 10:06 169 查看
声明:
本博客欢迎转发,但请保留原作者信息!
新浪微博:@孔令贤HW;
博客地址:http://blog.csdn.net/lynn_kong
内容系本人及本人团队学习、研究和总结,如有雷同,实属荣幸!

问题定位过程中,因计算节点较多,很多时候忙于登录到不同的计算节点,而对于流程相对较为复杂的操作(如resize/migrate),就必须来回在不同节点上切换,有时还会忙中出错。而OpenStack内部提供的notification机制,其实已经能很好的跟踪流程。

Ceilometer项目提供了监控这些notification的能力,但并不是每个部署都会用到Ceilometer,毕竟该项目目前尚不成熟。所以,如果要监控操作流程,就需要自己做一个简单实现完成该功能。效果如下(以migrate操作为例):

>>>>
new message:Tue Sep 10 09:38:48 2013
event_type:compute.instance.exists
publisher_id:compute.controller
instance_id:d7e93ab8-e866-4eef-8b0f-aa4503a55916
>>>>
new message:Tue Sep 10 09:38:48 2013
event_type:compute.instance.resize.prep.start
publisher_id:compute.compute
instance_id:d7e93ab8-e866-4eef-8b0f-aa4503a55916
>>>>
new message:Tue Sep 10 09:38:49 2013
event_type:compute.instance.resize.prep.end
publisher_id:compute.compute
instance_id:d7e93ab8-e866-4eef-8b0f-aa4503a55916
>>>>
new message:Tue Sep 10 09:38:50 2013
event_type:compute.instance.resize.start
publisher_id:compute.controller
instance_id:d7e93ab8-e866-4eef-8b0f-aa4503a55916
>>>>
new message:Tue Sep 10 09:38:56 2013
event_type:compute.instance.resize.end
publisher_id:compute.controller
instance_id:d7e93ab8-e866-4eef-8b0f-aa4503a55916
>>>>
new message:Tue Sep 10 09:38:57 2013
event_type:compute.instance.finish_resize.start
publisher_id:compute.compute
instance_id:d7e93ab8-e866-4eef-8b0f-aa4503a55916
>>>>
new message:Tue Sep 10 09:39:01 2013
event_type:compute.instance.finish_resize.end
publisher_id:compute.compute
instance_id:d7e93ab8-e866-4eef-8b0f-aa4503a55916
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: