摘要: ceilometer获取数据暂时先不做解答,本篇注重websocket解决浏览器与openstack组件之间的实时状态更新。大致流程如下:nginx配置的反向代理如下:/etc/nginx/nginx.confinclude /etc/nginx/conf.d/*.conf;/etc/nginx/c... 阅读全文
posted @ 2015-05-29 13:54 forilen 阅读(2844) 评论(0) 推荐(0) 编辑
摘要: openstack 组件通讯是通过ZeroMQ+ceilometer发送组件调用信息,具体是通过TCP通讯,发送数据和接收数据是用同一个端口(在配置文件指定),下面通过代码稍作解析:IceHouse/ceilometer/ceilometer/openstack/common/rpc/impl_zm... 阅读全文
posted @ 2015-05-18 11:53 forilen 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 有段时间没写博客了,主要还是刚进新公司,多少有点不适应(真会给自己找理由,明明是手里没技术,肚子里没货,能写啥!)。前面几个星期都在修一修horizon的bug,这个没啥很大难度,就是用了一个django的框架,然后再嵌套一些js框架,简明易懂。不扯远了,来点干货。。浏览器抓包可以看到,这样一个请求... 阅读全文
posted @ 2015-05-11 00:04 forilen 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 最近纠结于一个问题,就是horizon 在处理前台数据的时候非得等到cinder client将数据全部获取后才开始执行horizon的下一行代码,这给大量数据显示造成了很大的时延,其实对于用户体验来说,完全可以仿照度妈或谷爷那样,先把少量数据尽快推送显示到用户浏览器,而同时建立消息队列继续将数据发... 阅读全文
posted @ 2015-05-11 00:03 forilen 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 一、staticmethod(function)Return a static method for function.A static method does not receive an implicit first argument. To declare a static method, u... 阅读全文
posted @ 2015-04-29 11:21 forilen 阅读(320) 评论(0) 推荐(0) 编辑
摘要: with从Python 2.5就有,需要from __future__ import with_statement。自python 2.6开始,成为默认关键字。在What's new in python2.6/3.0中,明确提到:The ‘with‘ statement is a control-f... 阅读全文
posted @ 2015-04-23 16:58 forilen 阅读(466) 评论(0) 推荐(0) 编辑
摘要: git 作为开源项目首选版本管理软件,必然其优势不容小觑,下面总结一下初次解除用到的一些技能1. 基本命令介绍git help branch 查看branch帮助文档git branch -a 列出当前所有分支git branch good_proj 创建分支good_projgit ... 阅读全文
posted @ 2015-04-16 16:24 forilen 阅读(325) 评论(1) 推荐(0) 编辑
摘要: 1. sed可以替换给定的文本中的字符串,可以利用正则表达式进行匹配$ sed 's/pattern/replace_string/' file或者$ cat file | sed 's/pattern/replace_string/' file使用-i选项,可以将替换的结果应用于原文件,也可以借助... 阅读全文
posted @ 2015-04-02 17:48 forilen 阅读(1490) 评论(0) 推荐(0) 编辑
摘要: 1. 下载源码:https://codeload.github.com/django/djangoproject.com/zip/master2. 本地解压3. 下载python2.7 install https://www.python.org/downloads/3.1 yum安装zlib-de... 阅读全文
posted @ 2015-03-29 16:19 forilen 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 昨天晚上第十款做数据库迁移,数据库版本:Version: '5.1.61',数据量27G左右message报错信息如下:Mar 27 03:44:09 VM_163_210_tlinux kernel: [18465684.480438] TsysProxy invoked oom-killer: ... 阅读全文
posted @ 2015-03-27 11:05 forilen 阅读(1380) 评论(0) 推荐(0) 编辑