Why is copying a directory with Ansible so slow?

前端 未结 4 813
野趣味
野趣味 2020-12-23 13:07

I\'m using Ansible to copy a directory (900 files, 136MBytes) from one host to another:

---
- name: copy a directory
  copy: src={{some_directory}} dest={{re         


        
4条回答
  •  -上瘾入骨i
    2020-12-23 13:58

    While synchronize is more preferable in this case than copy, it’s baked by rsync. It means that drawbacks of rsync (client-server architecture) are remained as well: CPU and disc boundaries, slow in-file delta calculations for large files etc. Sounds like for you the speed is critical, so I would suggest you look for a solution based on peer-to-peer architecture, which is fast and easily scalable to many machines. Something like BitTorrent-based, Resilio Connect.

提交回复
热议问题