码迷,mamicode.com
首页 >  
搜索关键字:salt reactor    ( 1674个结果
SaltStack runners模块分析之cache模块
/usr/lib/python2.6/site-packages/salt/runners/cache.pycache模块返回minion端缓存的数据返回目标minion缓存的grains数据defgrains(tgt=None,expr_form=‘glob‘,**kwargs): ‘‘‘ Returncachedgrainsofthetargetedminions CLIExample: ..code-block::bash salt-runcache.grai..
分类:系统相关   时间:2015-05-29 15:55:49    阅读次数:245
salt-run源码分析
/usr/bin/salt-run#!/usr/bin/python #EASY-INSTALL-ENTRY-SCRIPT:‘salt==2014.7.0‘,‘console_scripts‘,‘salt-run‘ __requires__=‘salt==2014.7.0‘ importsys frompkg_resourcesimportload_entry_point if__name__==‘__main__‘: sys.exit( load_entry_point(‘salt==2014.7.0‘,..
分类:其他好文   时间:2015-05-29 12:15:46    阅读次数:126
SaltStack runners模块分析之jobs模块
/usr/lib/python2.6/site-packages/salt/runners/jobs.pyjobsrunner模块用于方便管理正在运行或者处于活动状态的job返回所有正在运行的job的报告defactive(): ‘‘‘ Returnareportonallactivelyrunningjobsfromajobidcentric perspective CLIExample: ..code-block::bash salt..
分类:其他好文   时间:2015-05-29 12:12:18    阅读次数:199
SaltStack的Reactor System
Salt从0.11.0版本开始引入ReactorSystem。EventSystemTheeventsystemisalocalZeroMQPUBinterfacewhichfiressaltevents.ThiseventbusisanopensystemusedforsendinginformationnotifyingSaltandothersystemsaboutoperations.ReactorSLSfilesandeventtagsareassociatedinthemaster..
分类:其他好文   时间:2015-05-28 18:21:07    阅读次数:173
SaltStack源码分析之cmdmod模块
/usr/lib/python2.6/site-packages/salt/modules/cmdmod.pycmdmod模块用于执行一些命令行‘‘ Amoduleforshellingout Keepinmindthatthismoduleisinsecure,inthatitcangivewhomeverhas accesstothemasterrootexecutionaccesstoallsaltminions. ‘‘‘#Importpythonlibs importtime ..
分类:其他好文   时间:2015-05-28 14:17:59    阅读次数:278
SaltStack源码分析之pillar模块
/usr/lib/python2.6/site-packages/salt/modules/pillar.pydefget(key,default=‘‘,merge=False,delimiter=‘:‘): ‘‘‘ ..versionadded::0.14 Attempttoretrievethenamedvaluefrompillar,ifthenamedvalueisnot availablereturnthepasseddefault.Thedefaultreturnisanemptystring...
分类:其他好文   时间:2015-05-27 16:02:05    阅读次数:171
salt-call源码分析
使用salt-call可以在minion本机执行salt命令/usr/bin/salt-call#!/usr/bin/python #EASY-INSTALL-ENTRY-SCRIPT:‘salt==2014.7.0‘,‘console_scripts‘,‘salt-call‘ __requires__=‘salt==2014.7.0‘ importsys frompkg_resourcesimportload_entry_point if__name__==‘__main__‘: s..
分类:其他好文   时间:2015-05-27 16:00:41    阅读次数:247
twisted的defer模式和线程池
前言: 最近帮朋友review其模块服务代码, 使用的是python的twisted网络框架. 鉴于之前并没有使用过, 于是决定好好研究一番. twisted的reactor模型很好的处理了网络IO事件, 以及定时任务触发. 但包处理后的业务逻辑操作, 需要根据具体的场景来决定....
分类:编程语言   时间:2015-05-27 15:38:49    阅读次数:521
异步图片处理服务器
基于netty实现的异步服务器。参见:https://spring.io/guides/gs/reactor-thumbnailer/package hello;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import reactor...
分类:其他好文   时间:2015-05-26 12:18:57    阅读次数:216
openssl常用命令(待补充)
1.测试openssl对各种见算法处理速度opensslspeed[algorithms]algorithms:各种算法eg.rsa,des,md5,sha1等。不加算法表示测试所有算法。2.openssl对数据进行加密opensslenc-ciphername[-infilename][-e][-d][-outfilename][-salt][-a/-base64] eg.opensslencdes3-salt-a-ininitta..
分类:其他好文   时间:2015-05-24 06:40:45    阅读次数:420
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!