diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-18 16:04:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-18 16:04:49 +0200 |
commit | f55e5a7bf81c2c27db1514273e3366511aabf4ae (patch) | |
tree | 7374d57557b770fbbea8b9410ec6f2e133a086c0 /server/initializers/constants.ts | |
parent | 5350fd8e5b2b2d017b16d97828893a8a4a40bd89 (diff) | |
download | PeerTube-f55e5a7bf81c2c27db1514273e3366511aabf4ae.tar.gz PeerTube-f55e5a7bf81c2c27db1514273e3366511aabf4ae.tar.zst PeerTube-f55e5a7bf81c2c27db1514273e3366511aabf4ae.zip |
Process broadcast requests in parallel
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index ffcbe69b8..5ee13389d 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -77,6 +77,7 @@ const JOB_CONCURRENCY: { [ id in JobType ]: number } = { | |||
77 | 'video-file': 1, | 77 | 'video-file': 1, |
78 | 'email': 5 | 78 | 'email': 5 |
79 | } | 79 | } |
80 | const BROADCAST_CONCURRENCY = 5 // How many requests in parallel we do in activitypub-http-broadcast job | ||
80 | // 2 days | 81 | // 2 days |
81 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 | 82 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 |
82 | 83 | ||
@@ -463,6 +464,7 @@ export { | |||
463 | LAST_MIGRATION_VERSION, | 464 | LAST_MIGRATION_VERSION, |
464 | OAUTH_LIFETIME, | 465 | OAUTH_LIFETIME, |
465 | OPENGRAPH_AND_OEMBED_COMMENT, | 466 | OPENGRAPH_AND_OEMBED_COMMENT, |
467 | BROADCAST_CONCURRENCY, | ||
466 | PAGINATION_COUNT_DEFAULT, | 468 | PAGINATION_COUNT_DEFAULT, |
467 | ACTOR_FOLLOW_SCORE, | 469 | ACTOR_FOLLOW_SCORE, |
468 | PREVIEWS_SIZE, | 470 | PREVIEWS_SIZE, |