diff options
author | Chocobozzz <me@florianbigard.com> | 2022-09-08 12:26:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-09-08 12:27:22 +0200 |
commit | 405c83f9af377a663a4c8e9ad025fd5c10496922 (patch) | |
tree | 88062f7d9e23bdf879358963975891387e388e2d /server/initializers/constants.ts | |
parent | d800ec5f36fa8d57f29c577bcf797a79081342d5 (diff) | |
download | PeerTube-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/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 8 |
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 | ||