search

Home  >  Q&A  >  body text

Redis persistence causes excessive size

The main disadvantage of the redis AOF method is that appending the log file may cause the size to be too large. So what is a good solution to solve this kind of problem?

某草草某草草2741 days ago860

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-05-24 11:34:41

    The best way is to use different redis instances for different data, and the memory size of the instance should not be too large

    reply
    0
  • PHP中文网

    PHP中文网2017-05-24 11:34:41

    A considerable part of the commands in the aof file may be repeated. You can execute bgrewriteaof to rewrite the aof file. Try it

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-24 11:34:41

    Use rdb to synchronize, rdb outputs a snapshot of the redis service status

    reply
    0
  • Cancelreply