-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
For example, we need to generate a 60GB file, but we only have 40GB of disk space.
In this case, Apache will take up all the disk space, causing a problem. But we won't know about it because the Frontend will timeout (unless, of course, the timeout is set to 10 minutes or more).
The temporary file (or rather, TWO huge ones!) will remain in the system until you manually delete them!
The second problem: We have 40GB of disk space, and we want to generate a 30GB file. But this will also fail because the file will be archived and will eventually take up ~60GB, which we don't have...
Yes, with infinite disk space and the Frontend timeout set to infinity, there won't be any problems, but in reality, things are different...
I don't yet know how to quickly fix this problem.
I see something like this:
- Analyze disk space before file generation and notify the user if space is low. - Offer a download option without archiving (archiving videos is pointless, and you can always sacrifice the text file included in the archive for space)
- Run the generation and download process in the background to avoid Frontend timeouts