SlideShare a Scribd company logo
施俊伟
        dcshi

http://weibo.com/dcshi
http://twitter.com/dcshi
    http://dcshi.com
What is redis
Redis is an open source, advanced key-value
store.
keys can contain strings, hashes, lists,sets ,sorted
sets.



http://redis.io
http://groups.google.com/group/redis-db
What is in redis
Replication
Advantage vs disadvantage

Advantage:
     simple->kiss


Disadvantage:
       full resync
       master负载大
http://groups.google.com/group/redis-
db/browse_thread/thread/6badf6abf8f44eb0
优化?
1.定期dump rdb,并记录当前AOF偏移(AOF文件按文件
大小进行自动分割滚动).slave发送sync命令时,需要把
rdb文件和指定aof文件偏移后的增量数据发送给slave即
可.

2.优化slave短暂断开的情况,master不会马上释放该
slave连接.等待一段时间,并缓存该期间内的写,如果
此slave再次发送sync同步命令,则可以满足增量同步
Q:断开重连是一个新的tcp连接,master怎么知道是同
一个slave?
QA

More Related Content

PDF
Cephfs架构解读和测试分析
PDF
Building the Production Ready EB level Storage Product from Ceph - Dongmao Zhang
PDF
Hbase架构简介、实践
PPTX
Redis介绍
PDF
redis 适用场景与实现
PDF
NoSQL误用和常见陷阱分析
PPT
Redis 常见使用模式分析
PDF
Ceph perf-tunning
Cephfs架构解读和测试分析
Building the Production Ready EB level Storage Product from Ceph - Dongmao Zhang
Hbase架构简介、实践
Redis介绍
redis 适用场景与实现
NoSQL误用和常见陷阱分析
Redis 常见使用模式分析
Ceph perf-tunning

What's hot (20)

PPT
Hbase
PDF
Oracle rac资源管理算法与cache fusion实现浅析
PDF
Ceph monitor-op
PPTX
Cgroup lxc在17173 iaas应用池中应用
PPTX
MySQL压力测试经验
PPTX
线上问题排查交流
PPTX
硬件体系架构浅析
PDF
Google LevelDB Study Discuss
PPT
MogileFS
PPT
Traffic server overview
PDF
Ceph中国社区9.19 Ceph FS-基于RADOS的高性能分布式文件系统02-袁冬
PPT
分区表基础知识培训
PPTX
My sql 5.6新特性深入剖析——innodb引擎
PDF
Bypat博客出品-服务器运维集群方法总结
PDF
数据库内核分享第二期(Inno db 日志 回滚段 & 崩溃恢复实现详解)
PDF
分布式Key Value Store漫谈
PDF
数据库内核分享——第一期
PPT
Database.Cache&Buffer&Lock
PDF
Level db
PDF
PC服务器阵列卡管理简易手册 叶金荣@CYOU-20121223
Hbase
Oracle rac资源管理算法与cache fusion实现浅析
Ceph monitor-op
Cgroup lxc在17173 iaas应用池中应用
MySQL压力测试经验
线上问题排查交流
硬件体系架构浅析
Google LevelDB Study Discuss
MogileFS
Traffic server overview
Ceph中国社区9.19 Ceph FS-基于RADOS的高性能分布式文件系统02-袁冬
分区表基础知识培训
My sql 5.6新特性深入剖析——innodb引擎
Bypat博客出品-服务器运维集群方法总结
数据库内核分享第二期(Inno db 日志 回滚段 & 崩溃恢复实现详解)
分布式Key Value Store漫谈
数据库内核分享——第一期
Database.Cache&Buffer&Lock
Level db
PC服务器阵列卡管理简易手册 叶金荣@CYOU-20121223
Ad

Viewers also liked (7)

PDF
Salvatore Sanfilippo – How Redis Cluster works, and why - NoSQL matters Barce...
ODP
An Introduction to REDIS NoSQL database
PDF
Lightning Hedis
PPTX
PDF
Redis cluster
PDF
唯品会大数据实践 Sacc pub
PDF
Introduction to Redis
Salvatore Sanfilippo – How Redis Cluster works, and why - NoSQL matters Barce...
An Introduction to REDIS NoSQL database
Lightning Hedis
Redis cluster
唯品会大数据实践 Sacc pub
Introduction to Redis
Ad

More from dcshi (7)

PDF
Introduction to hubot
PPT
Introduction to s cons
PPT
Android graphics
PPT
Sql优化
PPT
小路
PPT
Java并发编程培训
PPTX
十分钟构建高性能微信后台
Introduction to hubot
Introduction to s cons
Android graphics
Sql优化
小路
Java并发编程培训
十分钟构建高性能微信后台

Redis replication dcshi