aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-24 16:31:32 +0200
committerChocobozzz <me@florianbigard.com>2022-06-24 16:31:48 +0200
commitc53853ca1b8e32aea5259d436d3d284b9d178919 (patch)
treedfb081e7fb471ca4b75fd67eabd3216cc6b33129 /server/initializers/constants.ts
parent2873f00bd89d8f1b5f88614415f8142a5c2065c3 (diff)
downloadPeerTube-c53853ca1b8e32aea5259d436d3d284b9d178919.tar.gz
PeerTube-c53853ca1b8e32aea5259d436d3d284b9d178919.tar.zst
PeerTube-c53853ca1b8e32aea5259d436d3d284b9d178919.zip
Introduce worker threads to process remote images
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index d469ce425..175935835 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -744,8 +744,11 @@ const MEMOIZE_LENGTH = {
744 VIDEO_DURATION: 200 744 VIDEO_DURATION: 200
745} 745}
746 746
747const QUEUE_CONCURRENCY = { 747const WORKER_THREADS = {
748 ACTOR_PROCESS_IMAGE: 3 748 DOWNLOAD_IMAGE: {
749 CONCURRENCY: 3,
750 MAX_THREADS: 1
751 }
749} 752}
750 753
751const REDUNDANCY = { 754const REDUNDANCY = {
@@ -955,7 +958,7 @@ export {
955 VIDEO_PRIVACIES, 958 VIDEO_PRIVACIES,
956 VIDEO_LICENCES, 959 VIDEO_LICENCES,
957 VIDEO_STATES, 960 VIDEO_STATES,
958 QUEUE_CONCURRENCY, 961 WORKER_THREADS,
959 VIDEO_RATE_TYPES, 962 VIDEO_RATE_TYPES,
960 JOB_PRIORITY, 963 JOB_PRIORITY,
961 VIDEO_TRANSCODING_FPS, 964 VIDEO_TRANSCODING_FPS,