Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rclone is SLOW on WebDAV #152

Open
cyberpower678 opened this issue Jun 9, 2024 · 4 comments
Open

rclone is SLOW on WebDAV #152

cyberpower678 opened this issue Jun 9, 2024 · 4 comments

Comments

@cyberpower678
Copy link
Contributor

Despite setting the transfers option to 32 parallel transfers, and the logs are confirming that rclone has set the --transfers option to 32, and also setting the NextCloud chunk size to 1 Gi, also confirmed by the logs, uploading to NextCloud is so painfully slow, the buffer backs up almost immediately, despite NextCloud living in a neighboring k3s pod, ie on the same machine. Latency between them is 3 microseconds, and obviously network stack IO is limited by how fast the CPU can move the data through the k3s cluster.

Setting the option appears to do nothing as it seems to me the uploads are still happening one at a time. Can something be done about this. Transfer speeds are only 25 Mbps to NextCloud which is quite awful for this setup. Camera events are often many little files rather than few big files making the opening and closing of the connection/sockets more limiting than the bandwidth. As such parallel uploads would be immensely useful.

@ep1cman
Copy link
Owner

ep1cman commented Jun 9, 2024

The way UPB currently works, is that it invokes the rclone rcat command once per downloaded file (which is stored in memory where possible to avoid writing to disk). As such, any kind of parallelism rclone provides is pointless, because it is only ever handling a single file at a time. The uploader in UPB is also sequential and does not fire multiple uploads at once (same for the uploader).

I could see it being possible to have an optional upload parallelism within UPB but I don't think there is any way to make use of rclones parallelism without writing files to disk.

@cyberpower678
Copy link
Contributor Author

Maybe I can fashion up something for you.

@cyberpower678
Copy link
Contributor Author

#153

I threw something together for you, but I haven't tested it since I lack time to do that right now. Should just work, in theory.

@alash2k
Copy link

alash2k commented Nov 18, 2024

Hi, I was trying to decrease the replication lag from NVR to cloud and I came across this. Is this working and can it be used?

Can this be merged to main?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants