分组的类型-GGrainsglob匹配//比如:G@os:Ubuntu-EPCREMinionid匹配//比如:E@web\d+\.(dev|qa|prod)\.loc-PGrainsPCRE匹配//比如:P@os:(RedHat|Fedora|CentOS)-Lminions列表//比如:L@minion1.example.com,minion3.domain.comorbl*.domain.com-IPillarglob匹配//比如:I@pdat..
分类:
其他好文 时间:
2015-05-19 07:16:59
阅读次数:
162
这个写的相当易懂, 再次感谢并分享,原地址: http://daimojingdeyu.iteye.com/blog/828696Reactor这个词译成汉语还真没有什么合适的,很多地方叫反应器模式,但更多好像就直接叫reactor模式了,其实我觉着叫应答者模式更好理解一些。通过了解,这个模式更像一...
分类:
其他好文 时间:
2015-05-15 10:33:24
阅读次数:
114
user状态模块用于在sls文件中指定安装包的uid等属性/usr/lib/python2.6/site-packages/salt/states/user.py‘‘‘
Managementofuseraccounts
===========================
Theusermoduleisusedtocreateandmanageusersettings,userscanbeset
aseitherabsentorpresent
..code-bloc..
分类:
其他好文 时间:
2015-05-14 20:50:49
阅读次数:
414
group状态模块用于创建并管理UNIX组账号设置。/usr/lib/python2.6/site-packages/salt/states/group.py‘‘‘
Managementofusergroups
=========================
Thegroupmoduleisusedtocreateandmanageunixgroupsettings,groups
canbeeitherpresentorabsent:
..code-block::ya..
分类:
其他好文 时间:
2015-05-14 20:47:27
阅读次数:
212
file模块用于对普通文件,目录,特殊文件和链接文件进行各种操作/usr/lib/python2.6/site-packages/salt/states/file.pydefmanaged(name,
source=None,
source_hash=‘‘,
user=None,
group=None,
mode=None,
template=None,
makedirs=False,
dir_mode=None,
context=None,
repla..
分类:
其他好文 时间:
2015-05-14 20:42:29
阅读次数:
484
libevent 是一款很好用的 C 语言网络库,它也採用 Reactor 模型,正好能够与 muduo 做一对照。本文用 ping pong 測试来对照 muduo 和 libevent2 的吞吐量,測试结果表明 muduo 吞吐量平均比 libevent2 高 18% 以上,个别情况达到 70%...
分类:
其他好文 时间:
2015-05-14 18:14:09
阅读次数:
209
基本概念 首先,我针对的代码是Darwin Streaming Server 6.0.3未经任何改动的版本。 Darwin Streaming Server从设计模式上看,采用了Reactor的并发服务器设计模式,如果对Reactor有一定的了解会有助于对Darwin St...
pkg状态模块使用各个操作系统自带的包管理工具来安装各种软件包,例如RedHat系列使用YUM安装软件包,Ubuntu使用apt-get安装等/usr/lib/python2.6/site-packages/salt/states/pkg.py‘‘‘
InstallationofpackagesusingOSpackagemanagerssuchasyumorapt-get
======================..
分类:
其他好文 时间:
2015-05-13 20:01:55
阅读次数:
275
/usr/lib/python2.6/site-packages/salt/states/service.py这个模块用于启动或重启服务和后台进程startingorrestartingofservicesanddaemons
==============================================
Servicesaredefinedassystemdaemonstypicallystartedwithsysteminitor
rcscripts,s..
分类:
其他好文 时间:
2015-05-13 19:57:54
阅读次数:
171