redis list链表结构及命令浅谈【四】
<img src="/attachment/201508/19/29990276_1439951031i3Gz.bmp" width="700" height="181.44963144963" alt="" /><br /><br /><strong><span style="color:#4C33E5;">lpush/rpush:lpush从链表左边插入,rpush从链表右边插入<br /><br /><div><div class="codeheads"><p>点击(<span style="cursor:pointer;co...
MongoDB集群部署
浅谈MongoDB的认识 MongoDB是可灵活扩展的数据存储方式。它是面向文档的数据库,不是关系型数据库。基本思想是将原来的row的概念换成更加灵活的document模式,它扩展了关系型数据库的众多功能,如辅助索引、范围查询和排序 ? 键值(Key-Value)存储型– Memcached、 Tokyo ...
redis string结构及命令详解【三】
在key设置之处就有生命周期:set key value [ex 秒]/[px 毫秒] set key value [nx]/[xx] nx:表示key不存在时执行操作(NOT EXIST)xx:表示key存在时执行操作点击(
redis 通用key操作命令简谈【二】
<img src="/attachment/201508/17/29990276_14397929130iHD.jpg" width="700" height="199.88974641676" alt="" /><br /><strong>点开,我们开redis的数据结构和命令<br /></strong><br /><img src="/attachment/201508/17/29990276_1439793066zxNG.jpg" width="700" height="178.18181818182" alt="" /><br /><br />...
redis 介绍及安装【一】
<strong><strong style="white-space:normal;"><span style="font-size:14px;">redis官网:http://redis.io/</span></strong><br /><br /><span style="color:#333333;font-family:'Open Sans', Helvetica, sans-serif;font-size:20px;line-height:32px;white-space:normal;background-color:#FFFFFF;">Redis is an open ...
Mongodb与Mysql SQL操作对比
<div style="font-family:Arial;font-size:14px;line-height:26px;white-space:normal;background-color:#FFFFFF;"> mongodb以BSON结构(二进制)进行存储,对海量数据存储有着很明显的优势。下面是Mongodb与Mysql的操作命令的对比。</div><div style="font-family:Arial;font-size:14px;line-height:26px;white-s...
Mongodb3.0.4滚动升级到3.0.5
环境:PRIMARY:SECONDARY:ARBITER环境检查:查看哪些从库rs.status()查看Replica set的配置rs.conf()查看活跃节点db.isMaster()步骤:升级
memcache安装
<h1 style="margin:17pt 10.5pt 15.6pt 0cm;padding:0px;color:#666666;font-family:宋体, Arial;white-space:normal;background-color:#FFFFFF;line-height:12pt;"><span style="font-family:微软雅黑, sans-serif;font-size:14pt;">安装包的版本</span></h1><span style="color:#666666;font-size:16px;line-height:2...
mongodb 监控
<br /> 监控:<br /> 连接数:<br /> echo "db.serverStatus().connections"| mongo --port 40001 -u admin -p 'AdminPass123' --authenticationDatabase admin| grep current| cut -d ":" -f 3|cut -d "," -f 1 |cut -d " " -f 2<br /><br /><br /> 物理内存:<br />&nb...
Mongodb日志按天分割
Mongodb日志存放目录:/home/data/mongodb/mongodb_log<br /><br /><br />实现目的:<br />对Mongodb数据库日志按天保存,并且只保留最近7天的日志记录。<br /><br />具体操作:<br />使用Mongodb数据库自带的命令来切割日志<br /><br />ps -def | grep mongod<br />kill -SIGUSR1 <mongod process id><br ...
mongoclient和mongo类写性能差异原因分析
本文从源代码分析,mongoclient类比mongo类写性能差的原因,并且通过测试进行了验证,有助于开发工程师正确使用mongodb
redis配置文件被rewrite原因分析
在生产环境中,发现redis2.8的配置文件自动被修改,导致无法登陆redis服务,本文进行了比较深入分析原因,从而避免或解决该问题
使用YCSB测试MongoDB的微分片性能
<header class="entry-header" style="box-sizing:border-box;margin:0px auto 30px;max-width:1440px;width:1440px;padding:0px 536px 0px 60px;color:#202225;font-family:'Hiragino Sans GB', Tahoma, Arial, 'Microsoft Yahei', 微软雅黑, STXihei, 华文细黑, sans-serif;font-size:16px;line-height:24px;white-space:...
MongoDB干货系列1-定期巡检之Mtools
<header class="entry-header" style="box-sizing:border-box;margin:0px auto 30px;max-width:1440px;width:1440px;padding:0px 536px 0px 60px;color:#202225;font-family:'Hiragino Sans GB', Tahoma, Arial, 'Microsoft Yahei', 微软雅黑, STXihei, 华文细黑, sans-serif;font-size:16px;line-height:24px;white-space:...
mongodb local数据库的空间初始化好大啊!
新建立了一个replicat set,登录到primary里,show dbs一看吓一跳local数据库竟然占用了80多G的空间[root@wxlab31 bin]# ./mongo --host 10.1.1.31 --port 27017MongoDB shell version: 2.4.6connecting to: 10.1.1.31:27017/testServer has startup warnings: Mon Jan 20 15:12:35.071 [initandlisten] Mo...
个人paper下载页
深入讲解了adaptive cursor sharing 的知识adaptive cursor sharing .pdfITPUB精华博文,让你不再对buffer busy waits感到疑惑 buffer busy waits.pdfITPUB精华博文,讲述了log file sync的方方面面log file sync.pdfSPM baseline深入研究SPM baseline.pdfSQL PROFILE深入研究 SQL profile.pdfdirect ...
MongoDB分片环境下的查询路由
在分片环境中,mongos是访问集群的文件入口,本文描述了在查询时mongos是如何路由请求的,也间接解释了为什么limit+skip容易导致慢查询。
关于MemStore的刷新方式
关于MemStore的刷新方式:1、MemStore达到上限hbase.hregion.memstore.flush.size 默认是128M的时候,会触发MemStore的刷新。这个参数表示单个MemStore的大小的阈值。这个时候是不阻塞写操作的。 2、当一个Region的MemStore总量达到hbase.hregion.memstore.block.multiplier * hbase.hregion.memstore.flush.size(默认2*128M=256M)时,会阻塞这个region的写操作,并强制刷写到HFile。触发这个刷新只会发生在MemStore即将写满128M时put了一个巨大的记录的情况,这时会阻塞写操作,强制刷新成功才能继续写入。 3、一个RegionServer会有很多个Region,很多的MemStore,所以可能单个Region并没有超过阈值,但是整个RegionServer的内存已经占用非常多了,这时候还有另外两个参数控制内存的刷写:hbase.regionserver.global.memstore.u
使用mongodb需要注意的几点
在使用mongodb,有一些需要注意的地方,对于开发者来说,更有意义。
Postgresql 学习
tar zxvf postgresql-9.4.4.tar.gzcd postgresql-9.4.4./configure --prefix=/usr/local/postgres --with-pgport=1921 --with-perl \--with-python --with-openssl --with-pam --without-ldap --with-libxml \--with-libxslt --enable-thread-safety --with-wal-bl...