开发者社区> 问答> 正文

redis 官网上关于复制的一段话,求大神解惑

It is possible to use replication to avoid the saving process on the master side: just configure your master redis.conf to avoid saving (just comment all the "save" directives), then connect a slave configured to save from time to time.
意思是写不在master节点了,改到某个指定节点(时不时)写? 那这个指定节点还会主动去同步启动节点吗。这个功能到底是要干什么?

展开
收起
落地花开啦 2016-02-19 17:56:32 1992 0
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    意思是,不在master节点进行save操作(通过注释掉redis.conf中所有save的指令),然后连上一个salve的节点,在slave节点上进行写操作。 这样就可以提高master节点的性能。
    建议看看redis的master-slave模式(REPLICATION),然后再看看配置文件中的SNAPSHOTTING部分内容。

    2019-07-17 18:45:00
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Redis集群演化的心路历程——从2.x到3.0时代 立即下载
微博的Redis定制之路 立即下载
云数据库Redis版的开源之路 立即下载