码迷,mamicode.com
首页 >  
搜索关键字:副本集 replica sets    ( 2350个结果
并查集:Union-Find(1)
Disjoint Sets:   我们都知道Sets(集合)是什么,就是一组非重复元素组成的结构。   先让我们来看一下Disjoint Sets(非相交集合) :   Disjoint Sets的意思是一堆集合们,它们相互之间都没有交集。没有交集是指:各个集合之间没有拥有共同、相同的元素。中文称作「分离集」。   Disjoint Sets 的性质相当特殊。信息学家仔细观察其特性后,精心设...
分类:其他好文   时间:2015-06-04 22:49:32    阅读次数:207
使用mongostat监视mongodb
1, 监视一个mongod  mongostat 10.80.1.1:27018 1,监视replica set mongostat --host rs0/10.80.1.1:27018,10.80.1.2:27018,10.80.1.3:27018 --username youruser --password yourpassword --authenticationDatabas...
分类:数据库   时间:2015-06-04 19:32:44    阅读次数:149
iOS 隐藏顶部状态栏方式和更改颜色
plist文件里面添加AppDelegate://显示状态栏 [[UIApplication sharedApplication]setStatusBarHidden:NO]; //将状态栏颜色设为白色 [[UIApplication sharedApplication] setS...
分类:移动开发   时间:2015-06-04 13:21:49    阅读次数:123
升级MongoDB到2.6
升级MongoDB到2.6升级准备1.连接2.6mongoshell到2.4副本集辅助成员,在admin库执行db.upgradeCheckAllDBs()。2.评估升级到2.6的应用程序兼容性问题,参考:http://docs.mongodb.org/manual/release-notes/2.6-compatibility/单实例升级1.关闭mongod实例,用2.6mongod二进制文件..
分类:数据库   时间:2015-06-04 12:04:39    阅读次数:176
【HDU】5247-找连续数(直接暴力)
ORZ,这道题想复杂了,原来直接暴力就可以了复杂度为 n * n * logn #include #include #include using namespace std; typedef long long LL; const int maxn = 10005; sets; set::iterator it1,it2; int n,m; int num[maxn] = {0}; LL arr...
分类:其他好文   时间:2015-06-03 15:43:27    阅读次数:101
SQL查询初学者指南读书笔记(五)集合操作与多表查询介绍
PART III:Thinking in Sets CHAPTER7 Thinking in Sets The three mostcommon set operations are as follows. Intersection Difference Union   在SQL中相应的关键词分别是 Intersection Except U...
分类:数据库   时间:2015-06-02 13:32:50    阅读次数:152
让开发效率爆表的Guava ---- Sets
本问介绍了Guava中Sets集合类的一般使用情况, 例如集合的互斥、 交集、 并集等......
分类:其他好文   时间:2015-06-02 09:23:58    阅读次数:129
Redis 在新浪微博中的应用
Redis简介 1. 支持5种数据结构 支持strings, hashes, lists, sets, sorted sets string是很好的存储方式,用来做计数存储。sets用于建立索引库非常棒; 2. K-V 存储 vs K-V 缓存 新浪微博目前使用的98%都是持久化...
分类:其他好文   时间:2015-06-01 17:01:54    阅读次数:134
Linux内核(2.6)进程调度算法
1.1      进程状态 在Sched.h(include\linux)中定义了进程的状态。 /*  *Task state bitmask. NOTE! These bits are also  *encoded in fs/proc/array.c: get_task_state().  *  * Wehave two separate sets of flags: task...
分类:编程语言   时间:2015-06-01 09:47:07    阅读次数:226
apache 配置虚拟主机 url重写功能
# The ServerName directive sets the request scheme, hostname and port that         # the server uses to identify itself. This is used when creating         # redirection URLs. In the context o...
分类:Web程序   时间:2015-06-01 09:42:25    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!