nextcloud_ynh
nextcloud_ynh copied to clipboard
configure option for temporaire upload
i store everything nextcloud on separate disk because its big for root partition. uploading big file uses much CPU/disk after upload is "finish" (client view) because mv /tmp/bigfile /media/storage/nextcloud/bigfile cross partition limit (disk<->disk).
change php tmp dir to /media/storage/tmp in php fpm pool fix problem for me, but configure option for this is good. now when client finish upload server CPU is back to 0-10%, before 100% for 2-5 minutes after upload finish