plotman icon indicating copy to clipboard operation
plotman copied to clipboard

Multi archive in one time

Open yesvods opened this issue 4 years ago • 3 comments

Describe the request

Since remote storage has many disks. Just archive to one disk a time is not enough. Can I rsync to multi remote disk in one time? Thanks a lot!

Images

Additional comments

yesvods avatar May 22 '21 19:05 yesvods

Maybe when the archive process looks for a drive with available storage, it could look for the rsync .tmp file (.whater.plot.XXXX) and if there is one there, skip that and look for another candidate. If it finds a drive without a tmp file, then copy to it.

This would even allow multiple machines running plotman archiving to a single host to coordinate the syncs and maximize network/drive bandwidth.

Of course, with opening up how archiving works, this might be a little harder to assume a way to track "tmp" files.

Quick proof of concept: https://github.com/ericaltendorf/plotman/pull/642

randellhodges avatar May 23 '21 14:05 randellhodges

I'd rather see archiver pick the remote directory with the most free space. update rsync to use --preallocate and it all should just work out without any extra logic.

If you have multiple plotters pushing to a single remote archive, this solves that as well because --preallocate will handle 'priority' and the additional plotting machines should be doing the same check.

syadnom avatar May 26 '21 17:05 syadnom

oh yeah, I'm not discounting the parallel archiving, I'm saying that if each archive process did the check that's basically solved all of this.

syadnom avatar May 26 '21 17:05 syadnom