2 Improve upload performance
scubamuc редактировал(а) эту страницу 2024-08-15 22:19:51 +02:00
Этот файл содержит неоднозначные символы Юникода!

Этот файл содержит неоднозначные символы Юникода, которые могут быть перепутаны с другими в текущей локали. Если это намеренно, можете спокойно проигнорировать это предупреждение. Используйте кнопку Экранировать, чтобы подсветить эти символы.

Nextcloud upload chunk size

not recommended for limited memory devices like Raspi2, Raspi3 and Raspi4 under 2Gib RAM and limited internet Bandwidth

Adjust chunk size on Nextcloud side

Nextcloud docs

For upload performance improvements in environments with high upload bandwidth, the servers upload chunk size may be adjusted to double the default chunk size to (20MiB):

Default is 10485760 (10 MiB).

sudo nextcloud.occ config:app:set files max_chunk_size --value 20971520

Changing max_chunk_size will not have any performance impact on files uploaded through File Drop shares as unauthenticated file uploads are not chunked.

Large file upload on object storage

Nextcloud docs

Chunked file uploads do have a larger space consumption on the temporary folder when processing those uploads on object storage as the individual chunks get downloaded from the storage and will be assembled to the actual file on the Nextcloud servers temporary directory. It is recommended to increase the size of your temp directory accordingly and also ensure that request timeouts are high enough for PHP, webservers or any load balancers involved.

[!TIP]

In more recent versions of Nextcloud Server, when uploading to S3 in Primary Storage mode, we use S3 MultipartUpload. This allows chunked upload streaming of the chunks directly to S3 so that the final MOVE request no longer needs to assemble the final file on the Nextcloud server. This requires your memcache.distributed to be set to use Redis (or Memcached), otherwise we fall back on the prior behavior which consumes space on the Nextcloud Server for file assembly (as described above).