Skip to content

Add command line args to control VFS downloader settings: maxDownloaderIdleTime, maxErrorCount #10148

Closed

Description

@AlekseyMartynov

Before you start

  • I have searched the forum and the existing issues and this hasn't already been requested.
  • I have checked the latest beta and this feature doesn't already exist.

Associated forum post URL

No response

rclone version

https://hub.docker.com/r/rclone/docker-volume-rclone (latest)

What problem are you trying to solve?

  • // max time a downloader can be idle before closing itself
    maxDownloaderIdleTime = 5 * time.Second

    Real-world case:

    • --vfs-cache-mode=full
    • --buffer-size=0 as suggested here
    • --vfs-read-ahead=SMALL (optionally)
    • --max-read-ahead unchanged, which is 128K
    • Streaming of 128 kbps audio consumes 16000 bytes per second
    • Pause between read operations exceeds 8s (result of --max-read-ahead)
    • Downloader times out immediately: 'vfs cache: stopping download thread as it timed out'

    Workarounds:

    • --max-read-ahead=32K for more frequent reads
    • --vfs-read-ahead=LARGE to eagerly cache the entire file

  • // maximum number of errors before declaring dead
    maxErrorCount = 10

    Real-world case: broken backend caused mount point freeze for minutes with repeated 'http2: timeout awaiting response headers' in logs

    This could probably use --low-level-retries?

How do you think rclone should be changed to solve that?

Make the constants mentioned configurable

Getting involved

  • I'm willing to help implement, test or fund this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions