aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-08 12:26:46 +0200
committerChocobozzz <me@florianbigard.com>2022-09-08 12:27:22 +0200
commit405c83f9af377a663a4c8e9ad025fd5c10496922 (patch)
tree88062f7d9e23bdf879358963975891387e388e2d /server/initializers
parentd800ec5f36fa8d57f29c577bcf797a79081342d5 (diff)
downloadPeerTube-405c83f9af377a663a4c8e9ad025fd5c10496922.tar.gz
PeerTube-405c83f9af377a663a4c8e9ad025fd5c10496922.tar.zst
PeerTube-405c83f9af377a663a4c8e9ad025fd5c10496922.zip
Use worker thread to send HTTP requests
Compute HTTP signature could be CPU intensive
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index c2289ef36..f7d9a41da 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -786,6 +786,14 @@ const WORKER_THREADS = {
786 PROCESS_IMAGE: { 786 PROCESS_IMAGE: {
787 CONCURRENCY: 1, 787 CONCURRENCY: 1,
788 MAX_THREADS: 5 788 MAX_THREADS: 5
789 },
790 SEQUENTIAL_HTTP_BROADCAST: {
791 CONCURRENCY: 1,
792 MAX_THREADS: 1
793 },
794 PARALLEL_HTTP_BROADCAST: {
795 CONCURRENCY: JOB_CONCURRENCY['activitypub-http-broadcast-parallel'],
796 MAX_THREADS: 1
789 } 797 }
790} 798}
791 799