Page MenuHomePhabricator

Rate limit the process to upload large files
Open, MediumPublic

Description

We recently had an incident where a large number (65) of 4k videos where uploaded to commons, using the process to upload large files which resulted in very high load on the jobqueue processes. As such could we investigate the possibility of adding rate limiting to this process or at minimum update the aforementioned wiki with guidance around how to stagger uploads e.g. sleep

Its possible this task may be superceeded by https://phabricator.wikimedia.org/T278945 however i suspect the later may take some time to implment as such i think this task is still usefull

Event Timeline

jbond triaged this task as Medium priority.
jbond renamed this task from Rate limit the process to upload large files to Rate limit the process to upload large fileswew.Mar 31 2021, 12:45 PM
jbond updated the task description. (Show Details)
jbond renamed this task from Rate limit the process to upload large fileswew to Rate limit the process to upload large files.Mar 31 2021, 12:54 PM

Note that the script already supports sleeping between individual files. We probably should update https://wikitech.wikimedia.org/wiki/Uploading_large_files with some guidelines on how to determine the number of seconds to sleep, and maybe also add some non-zero default as well.

We should probably implement this to regular upload process (ie. SpecialUpload / ApiUpload), for files larger than X.