上一页 1 2 3 4 5 6 7 ··· 30 下一页

2017年2月8日

how to read openstack code: service plugin

摘要: We have learned core plugin, service plugin and extension in last post. Now let`s review: Core Plugin Core plugin manage core resources which are netw 阅读全文

posted @ 2017-02-08 19:10 kramer 阅读(332) 评论(0) 推荐(0) 编辑

2017年2月7日

how to read openstack code: Core plugin and resource extension

摘要: 本章我们将写一个自己的core plugin 和一个resource extension来加深理解。(阅读本文的前提是你已经理解了restful以及stevedore等内容) 什么是 core plugin neutron的plugin有core和service两种。core plugin实现cor 阅读全文

posted @ 2017-02-07 15:31 kramer 阅读(336) 评论(0) 推荐(0) 编辑

2017年1月30日

how to read openstack code: Neutron architecture

摘要: 今天这一章节非常重要。我们知道neutron是一个非常复杂的系统,由很多组件构成。研究这样一个复杂的系统,正确的顺序应该是现在宏观上对其整体结构有所了解,然后再由针对性的对其组件进行深入了解。本章要做的事情就是介绍neutron 宏观上的架构。 首先看一下下图: 人 Neutron Server P 阅读全文

posted @ 2017-01-30 10:14 kramer 阅读(245) 评论(0) 推荐(0) 编辑

2017年1月29日

how to read openstack code : routes

摘要: When coding a web system, you have to think about an important problem, how to map urls to logic. Openstack use routes to solve this problem. What is 阅读全文

posted @ 2017-01-29 15:31 kramer 阅读(284) 评论(0) 推荐(0) 编辑

how to read openstack code : stevedore

摘要: 学习了WSGI/Paste deploy后,还需要对一些在openstack中一些package有一些了解,才能更好的理解openstack的代码 What is stevedore 我们在写代码的时候通常把一个一个的功能块独立编写,甚至发布一定的规则和接口由第三方编写,然后在运行时根据实际情况来选 阅读全文

posted @ 2017-01-29 09:40 kramer 阅读(362) 评论(0) 推荐(0) 编辑

2016年12月28日

Check ini style config tool

摘要: INI style config is like below [section] comment key = value Sometimes we want to check the config and we do not care the empty line and comment. We c 阅读全文

posted @ 2016-12-28 14:41 kramer 阅读(271) 评论(0) 推荐(0) 编辑

2016年11月29日

how to read openstack code : paste deploy

摘要: 本篇分为以下几个部分 paste 是什么 怎样使用paste paste of neutron paste 是什么 WSGI 是python 中application 和 web server互通的标准。 我们知道了wsgi 中包括 app, middleware , server而且middlew 阅读全文

posted @ 2016-11-29 17:29 kramer 阅读(301) 评论(0) 推荐(0) 编辑

how to read openstack code : wsgi

摘要: 要读懂本篇,你至少得写过一个python的web程序,并且把它部署到web服务器上过。 什么是wsgi 假设你写了一个python的web程序,并部署到了nginx上,那么一个http request的处理流程一般是下面这样: client/浏览器(发送请求) web服务器(转发该请求) 你的程序( 阅读全文

posted @ 2016-11-29 17:18 kramer 阅读(410) 评论(0) 推荐(0) 编辑

how to read openstack code

摘要: 本文的目的不是介绍openstack。我们这里假设你已经知道了openstack是什么,能够做什么。所以目的是介绍如何阅读openstack的代码。通过读代码来进一步学习openstack。 转载要求你懂的:) 目的是懂python和web编程的人看完就能懂neutron代码, 如果没达到这个目的, 阅读全文

posted @ 2016-11-29 17:17 kramer 阅读(558) 评论(0) 推荐(0) 编辑

2016年11月28日

抽象与直观

摘要: coding中代码的可维护性和可读性是相矛盾的。 阅读全文

posted @ 2016-11-28 20:37 kramer 阅读(172) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 30 下一页

导航