codis icon indicating copy to clipboard operation
codis copied to clipboard

codis3.2与codis3.1有哪些不同?

Open xianglinghui opened this issue 9 years ago • 4 comments

Hi, @spinlock ,想问下codis3.2相比于3.1版本,有哪些改进的地方?我们现在用3.1版本,在考虑是否升级到3.2,谢谢!~

xianglinghui avatar Jul 07 '17 06:07 xianglinghui

3.2 改善的主要是数据迁移 = 异步迁移+并行迁移。

有一些 issue 以前曾经讨论过。总结一句话,就是在 codis3.2 内数据迁移的速度你 rdb 复制的速度还要快。https://github.com/CodisLabs/codis/issues/1094 https://github.com/CodisLabs/codis/issues/1141

spinlock avatar Jul 07 '17 07:07 spinlock

这些改动我也提交给了 redis https://github.com/antirez/redis/pull/3997 ,不过如果顺利的话,会加入到 redis4.2 中。

spinlock avatar Jul 07 '17 07:07 spinlock

我写过一个 PPT 介绍这中间的改动,如果你感兴趣的话。

https://drive.google.com/file/d/0B-Jo9OAb_A21cWQ2U1BETTRhR1U/view?usp=sharing

spinlock avatar Jul 07 '17 07:07 spinlock

这个是 3.1 下的数据迁移:每个坑表示一个同步过程(redis 失去响应) image

这个是 3.2 下的数据迁移:串行过程快了将近 6-7倍,无阻塞。多节点并行会更快。 image

这个是 codis vs redis 的数据迁移: image

spinlock avatar Jul 07 '17 07:07 spinlock