aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-10 21:02:55 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-01-13 09:16:44 +0100
commit7abb6060a91588fe21cad0f59f38941da728511c (patch)
tree29965087b75e115ecfde6bdd83a7485da25ea545 /server/initializers
parentd8b34ee55b654912f86bb8b472d391ced8c28f64 (diff)
downloadPeerTube-7abb6060a91588fe21cad0f59f38941da728511c.tar.gz
PeerTube-7abb6060a91588fe21cad0f59f38941da728511c.tar.zst
PeerTube-7abb6060a91588fe21cad0f59f38941da728511c.zip
specific niceness for live transcoding
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 0e4ee4a0a..182bdf9cc 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -356,8 +356,11 @@ const VIDEO_RATE_TYPES: { [ id: string ]: VideoRateType } = {
356} 356}
357 357
358const FFMPEG_NICE: { [ id: string ]: number } = { 358const FFMPEG_NICE: { [ id: string ]: number } = {
359 THUMBNAIL: 2, // 2 just for don't blocking servers 359 // parent process defaults to niceness = 0
360 TRANSCODING: 15 360 // reminder: lower = higher priority, max value is 19, lowest is -20
361 THUMBNAIL: 2, // low value in order to avoid blocking server
362 LIVE: 9, // prioritize over VOD
363 VOD: 15
361} 364}
362 365
363const VIDEO_CATEGORIES = { 366const VIDEO_CATEGORIES = {