search

Home  >  Q&A  >  body text

linux - 跨机房实时大量小文件同步方案

大家有没有大量小文件在多个机房之间实时同步的方案?有没有实际生产环境部署过的?

伊谢尔伦伊谢尔伦2837 days ago721

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-04-17 11:19:42

    Previously used:

    1. nfs
    2. inotify + rsync
    3. MongoDB Storage

    The sersync mentioned by @qrpeng should also be good, completely suitable for LZ scenarios.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 11:19:42

    I use sersync a lot. It can indeed meet your needs and can lay out a complex structure. However, I would like to remind you that there are many disadvantages. It is more troublesome to manage multiple nodes, and there is no detailed information. Logging and rollback methods. In fact, this tool uses inotify+rsync but uses a multi-process approach and adds configuration management, so it is easier to use than ordinary tools. If you have the energy, you can try to modify it, and it can be implemented well if you switch to other languages. Such as GO language, python.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 11:19:42

    You can try sersync

    reply
    0
  • Cancelreply