Hi,
Using rclone v1.59.1 with Dropbox, found there was always one POST request bytes=0-31 happens together with one POST request that downloads the chunk needed.
I thought this will double HTTP requests, questions are:
- Why need this kind of request every time request a chunk?
- If this means more API requests and more time to process, is there anything we can do to reduce these costs?
- I have vfs cache set to full, why rclone request this part again and again instead of storing them in cache?
rclone configs:
/usr/bin/rclone mount cloud: /mnt \
--umask 222 --allow-other --buffer-size 0 \
--dump headers --log-level=DEBUG \
--vfs-read-chunk-size 1M --vfs-read-chunk-size-limit 64M \
--vfs-cache-mode full
Please find corresponding logs below:
2022/09/18 20:17:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/09/18 20:17:58 DEBUG : HTTP REQUEST (req 0xc000000001)
2022/09/18 20:17:58 DEBUG : POST /2/files/download HTTP/1.1
Host: content.dropboxapi.com
User-Agent: Archive
Content-Length: 0
Authorization: XXXX
Content-Type: application/octet-stream
Range: bytes=0-31
2022/09/18 20:17:58 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/09/18 20:17:59 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/09/18 20:17:59 DEBUG : HTTP RESPONSE (req 0xc000000001)
2022/09/18 20:17:59 DEBUG : HTTP/1.1 206 Partial Content
Content-Length: 32
Accept-Encoding: identity,gzip
Accept-Ranges: bytes
Content-Range: bytes 0-31/1073741000
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/octet-stream
Date: Sun, 18 Sep 2022 12:17:58 GMT
Original-Content-Length: 32
Server: envoy
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Dropbox-Response-Origin: far_remote
X-Robots-Tag: noindex, nofollow, noimageindex
2022/09/18 20:17:59 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/09/18 20:17:59 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/09/18 20:17:59 DEBUG : HTTP REQUEST (req 0xc000000002)
2022/09/18 20:17:59 DEBUG : POST /2/files/download HTTP/1.1
Host: content.dropboxapi.com
User-Agent: Archive
Content-Length: 0
Authorization: XXXX
Content-Type: application/octet-stream
Range: bytes=20190048-21304431
2022/09/18 20:17:59 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/09/18 20:18:00 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/09/18 20:18:00 DEBUG : HTTP RESPONSE (req 0xc000000002)
2022/09/18 20:18:00 DEBUG : HTTP/1.1 206 Partial Content
Content-Length: 1114384
Accept-Encoding: identity,gzip
Accept-Ranges: bytes
Content-Range: bytes 20190048-21304431/1073741000
Content-Security-Policy: sandbox allow-forms allow-scripts
Content-Type: application/octet-stream
Date: Sun, 18 Sep 2022 12:17:59 GMT
Original-Content-Length: 1114384
Server: envoy
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Dropbox-Response-Origin: far_remote
X-Robots-Tag: noindex, nofollow, noimageindex
Thanks for any help. Much appreciate.