Brion VIBBER has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/334401 )
Change subject: Increase video transcode max time from 8 to 16 hours
......................................................................
Increase video transcode max time from 8 to 16 hours
Full-length films at HD sometimes take long enough they were
still hitting the increased time limit (compensating for the
threading in ffmpeg and how ulimit handles time). This meant
we were transcoding most of the file, then throwing away the
result after the timeout struck.
Bump up from 8 hour to 16-hour base limit, which should
somewhat increase CPU usage on scalers in exchange for actually
producing results on those long files.
NB: in future it would be great to find a way to reduce
time spent on a single scaler for a high res lnog file.
This will be complicated though, we're stuck with serialized
behavior for now.
Bug: T156185
Change-Id: I49ad2328026af2065e8c9e884145fffaf8bff58d
---
M wmf-config/CommonSettings.php
1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/01/334401/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 7514e16..87b3723 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -850,8 +850,14 @@
$wgTranscodeBackgroundMemoryLimit = 4 * 1024 * 1024; // 4GB
$wgFFmpegThreads = 2;
+ // HD transcodes of full-length films/docs/conference vids can
+ // take several hours, and sometimes over 12. Bump up from default
+ // 8 hour limit to 16 to avoid wasting the time we've already spent
+ // when breaking these off.
+ $wgTranscodeBackgroundTimeLimit = 16 * 3600;
+
// ffmpeg tends to use about 175% CPU when threaded, so hits
- // the default 8-hour ulimit in 4-6 hours. This tends to cut
+ // say an 8-hour ulimit in 4-6 hours. This tends to cut
// off very large files at very high resolution just before
// they finish, wasting a lot of time.
// Pad it back out so we don't waste that CPU time with a fail!
--
To view, visit https://gerrit.wikimedia.org/r/334401
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I49ad2328026af2065e8c9e884145fffaf8bff58d
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Brion VIBBER <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits