IkeBuka
Ben Sarmiento
Ben Sarmiento

patreon


Enhancing Rclone's Bandwidth Efficiency

Hello!

For those utilizing rclone with Zurg, it's important to understand how rclone manages data requests. When Plex accesses a file, rclone requests the file from Zurg via an HTTP range header (learn more about range headers). This header specifies the byte range for the data request, which Zurg forwards to Real-Debrid. Real-Debrid processes this request and logs the data served as traffic used.

By default, rclone requests the first 128MB of data. If you only use 5MB, the remaining 123MB still count against your bandwidth, as Real-Debrid has already prepared this data. This inefficiency increases because rclone doubles the chunk size with each subsequent request—128MB, 256MB, 512MB, and so on—unless you set a limit. Without chunked reading, rclone requests the entire file, consuming vast amounts of bandwidth for large files.

To improve efficiency, consider configuring rclone with the following flags:

This configuration ensures rclone gradually increases the chunk size but only up to a 32MB limit, significantly reducing wasted bandwidth. Read more about chunked reading here.

Additionally, you can manage bandwidth usage with:

In our upcoming nightly build (June 25), we’re introducing traffic monitoring to help you track the efficiency of your rclone+Zurg setup.

Stay tuned for more updates and happy streaming!

Enhancing Rclone's Bandwidth Efficiency

Comments

what does this do exaclty?

DrWho

Also try setting your zurg config to "serve_from_rclone: true"

Ben Sarmiento

On the new nightly build later, it is possible to set log_requests: true in the config to show logs like this Served 8 MB of the requested 8 MB of file Back.to.the.Future.1985.BDREMUX.2160p.HDR.seleZen.mkv (range=bytes=80094511104-80102899711)

Ben Sarmiento


Related Creators