messense
V2EX  ›  Redis

aof-rs - Redis appendonly file filter

  •  
  •   messense ·
    messense · Aug 17, 2016 · 4022 views
    This topic created in 3563 days ago, the information mentioned may be changed or developed.

    有的时候需要从一个内存占用很大的 Redis 实例中转移一小部分数据到另外一个 Redis 实例中,如果这两个 Redis 实例跨机房甚至跨大洋写程序一点一点从 Redis 1 读再写到 Redis 2 受网络影响可能非常非常慢。

    这时候,从 Redis 的持久化文件入手会简单很多。对于 rdb ,可以使用 rdb-rs。但是,如果服务器内存有限, BGSAVE/SAVE 根本无法完成所以没有可用的 dump.rdb 文件,这个时候只能去操作 AOF 文件了。

    https://github.com/bosondata/aof-rs

    Written in Rust.

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3042 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:59 · PVG 21:59 · LAX 06:59 · JFK 09:59
    ♥ Do have faith in what you're doing.