Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Changing Nginx temporary buffer default location #1423
On my first installation, I used a iSCSI mount for /var/www/peertube/storage. My objective was to use a Freenas installation, sharing a large volume via iSCSI, for easy backups, future moving, and playing with decentralized redundancy.
The partitioning for the Debian host was small. And sometimes, videos stopped during upload, at different progression time. No sign of anything on the system, and the filesystem indicated free space.
Nginx use a temporary file in /var/lib/nginx/body/ to store the upload buffer. The file is not visible, because listed as "deleted" in file descriptors. You can view the current file, when uploading, with
Having a, potentially, <= 8GB file not documented somewhere on the filesystem can be a problem with small installs. And even more if you/guest upload multiple videos at the same time.
Nginx allow the relocation of that temporary folder, in a
Moving the cache folder somewhere in /var/www/peertube/.cache/ or /var/www/peertube/storage/cache/ will allow to keep big files in the same place, and not having problem with a small install/partitioning.
Current installs works fine, but changing the default configuration and update the documentation to reflect where Nginx create his buffer could be nice for future users.
I have this problem also .. not related to CPU size.. the problem is related to upload file size...