1,RAID定义磁盘阵列(RedundantArraysofIndependentDisks,RAID),有“独立磁盘构成的具有冗余能力的阵列”之意。由加利福尼亚大学伯克利分校(UniversityofCalifornia-Berkeley)在1988年,发表的文章:“ACaseforRedundantArraysofInexpensiveDisks”。文章中,谈到了RAID..
分类:
其他好文 时间:
2016-08-22 23:48:51
阅读次数:
368
1.先删除系统原yum命令rpm-aq|grepyum|xargsrpm-e--nodeps2.下载centos对应版本的yum命令包http://mirrors.163.com/centos/6/os/x86_64/Packages/需要下载以下几个包:python-iniparse-0.3.1-2.1.el6.noarch.rpmyum-3.2.29-73.el6.centos.noarch.rpmyum-metadata-parser-1.1.2-..
分类:
系统相关 时间:
2016-08-19 22:30:09
阅读次数:
287
XML处理是开发过程中经常遇到的,PHP对其也有很丰富的支持,本文只是对其中某几种解析技术做简要说明,包括:Xml parser, SimpleXML, XMLReader, DOMDocument。 1。 XML Expat Parser: XML Parser使用Expat XML解析器。Exp ...
分类:
Web程序 时间:
2016-08-19 10:02:10
阅读次数:
177
摘自:www.cctry.com 选择模型selectint select( __in int nfds, 参数nfds会被忽略。之所以仍然要提供这个参数,只是为了保持与Berkeley套接字兼容。 __in_out fd_set* readfds, 用于检查可读性 __in_out fd_set* ...
分类:
其他好文 时间:
2016-08-18 14:14:24
阅读次数:
161
__memp_alloc() 注: MPOOL_ALLOC_SEARCH_DYN 没有 出现在 bdb document上, 也没出现在 除了mp_alloc外的代码里. 先删了 以便代码清楚. 按 mpool初始化代码来看, 一个hash bucket上 假定为 2.5个buffer. 查找有 三 ...
分类:
数据库 时间:
2016-08-17 14:03:22
阅读次数:
236
priority based lru in src/mp/mp_fget.c, __memp_fget(), 初始化 一个page buffer时, 设置其 priority: in src/mp/mp_fget.c, __memp_fput(), 对一个page buffer做put, 使其ref ...
分类:
数据库 时间:
2016-08-17 13:59:21
阅读次数:
161
repmgr_method.c, __repmgr_start_int()repmgr_method.c, __repmgr_start_msg_threads()repmgr_msg.c, __repmgr_msg_thread()message_loop() while ((ret = __re ...
分类:
数据库 时间:
2016-08-17 13:56:51
阅读次数:
245
repmgr_method.c, __repmgr_start_int() 初始2个elect线程. repmgr_elect.c, __repmgr_init_election() __repmgr_elect_thread() __repmgr_elect_main() lease, prefe ...
分类:
数据库 时间:
2016-08-17 13:49:05
阅读次数:
235
repmgr/repmgr_net.c, __repmgr_send(): 做send_broadcast, 然后根据policy 对DB_REP_PERMANENT的处理 __repmgr_send_broadcast(): 对每个site, send_connection(). MASTER 发 ...
分类:
数据库 时间:
2016-08-17 13:48:31
阅读次数:
499
dirty reader怎样 不被writor block住? 如数据库支持dirty read, 则 所有打开的dbhandle都配置 DB_READ_UNCOMMITTED; 在线程拿到 write锁并做完处理后(比如splite one page), 降为 was_write锁. WWRITE ...
分类:
数据库 时间:
2016-08-17 13:47:59
阅读次数:
240