- 博客(9)
- 资源 (7)
- 收藏
- 关注
原创 ceph pool metadata
pool 5 '.rgw' replicated size 3 副本数min_size 1 最小副本数crush_ruleset 6 rule set编码object_hash rjenkins pg_num 96 pg数pgp_num 96 pgp_num数last_change 61657 变化次数
2015-11-25 16:19:23 943
原创 ceph rgw中所使用的池子
ceph rgw中所使用的池子$ radosgw-admin zone get{ "domain_root": ".rgw", "control_pool": ".rgw.control", "gc_pool": ".rgw.gc", "log_pool": ".log", "intent_log_pool": ".intent-l
2015-11-24 11:35:58 2327 1
原创 python eventlet模块
python eventlet模块python中更实用eventlet模块创建线程或者线程池。def _func_on_containers(logger, conf, concurrency_key, func, **kwargs): """Run a function on each container with concurrency.""" bench = Bench(logg
2015-11-19 16:17:53 1253
原创 python signal模块
python signal模块python signal模块的使用实例。 1. signal处理handlerimport signal...def sigint1(self, signum, frame): if self.delete: print >>sys.stderr, ( 'SIGINT received; f
2015-11-19 16:04:04 1244
原创 python logging模块实例
python logging模块使用实例该文档是提供一个python logging模块的使用实例,代码取自swift-bench创建logger对象,该对象的创建,采用单例模式,只要参数一下,logger对象也就是同一个。 logger = logging.getLogger('bench-server')设置logger的级别,告诉logger处理的日志级别 lev
2015-11-19 15:32:31 658
原创 RGW中的请求的认证过程
RGW中的用户认证过程(keystone or rados backend)用户s3用户请求的合法性验证过程:src/rgw/rgw_rest_s3.cc Rgw的认证方式有两种一个是使用keystone认证;一个是使用rados自带的认证方式;根据配置判断是否使用keystone认证;如果配置了keystone方式,则keystone方式;(二选一)int RGW_Auth_S3::author
2015-11-17 20:35:50 2505
原创 RGW处理请求中获取handler过程
RGW 创建处理请求的handler在src/rgw/rgw_main.cc源文件中的process_request()函数中有一个很重要的操作,就是Handler的获取,handler是manager中注册用来处理请求,很重要的一个对象: 获取HandlerRGWHandler *handler = rest->get_handler(store, s, client_io, &mgr, &in
2015-11-17 20:32:25 1473 3
原创 CEPH RGW处理请求过程
Rgw处理请求过程Rest api:Put /{bucket} HTTP/1.1x-amz-acl: public-read-writeAuthorization: AWS {access}:{hash-of-header-and-secret}这里依civetweb来提供rest服务来介绍,一个请求的处理过程。 回调函数的注册: 在civetweb中注册了用于处理请求的回调函数,在文
2015-11-17 20:29:06 5498 1
转载 磁盘性能检测iostat
简介: iostat是linux环境查看磁盘性能的软件工具。操作间help。例子:iostat -x 5 10avg-cpu: %user %nice %system %iowait %steal %idle 0.46 0.00 0.87 0.33 0.00 98.34Device: r
2015-11-11 12:32:40 519
opencv中文版API文档
2013-08-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人