Redisのレプリケーションpartial resyncについて

1198 ワード

Redis自体のレプリケーションは不安定であり、slaveがタイムアウトした後にresyncが実行され、masterが永続化されていない場合でもbgsaveを実行し、snapshotをslaveに送信した後にレプリケーションストリームを確立する.この場合、比較的推奨されるトポロジは、一対多ではなくチェーンレプリケーションであり、そうでなければ、ネットワーク環境がジッタされるとmasterに大きな負荷とNIC圧力が発生する.
Redis  partitial resync2.8 releaseMySQL binlog     :
MySQL is one of the first databases I get exposed for sure, a few decades ago, and the first time I had to setup replication I was shocked about how much it sucked. Are you serious that I need to enable binary logs and deal with offset?

Redis replication, that everyone agrees is dead-simple tosetup, is more or less a response to how much I dislike MySQL replication fromthe point of view of the "user interface".
Even if we needed partial replicaton, I didn't wantedRedis to be like that.
(新浪はredisのreplicationを書き換え、MySQLのような方式で生産したという:P);
詳細については、Redisの著者blogを参照してください.
Design:http://antirez.com/news/31
http://antirez.com/news/45
PSYNC: http://antirez.com/news/47