aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-01-10 22:24:42 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-01-10 22:24:42 +0100
commitbd14d16a29e2f90805d04b48378188517741a071 (patch)
tree226dc461367418321d4a77bb5004d1491681f7cf /server/initializers/constants.js
parented04d94f6d7132055f97a2f757b85c03c5f2a0b6 (diff)
downloadPeerTube-bd14d16a29e2f90805d04b48378188517741a071.tar.gz
PeerTube-bd14d16a29e2f90805d04b48378188517741a071.tar.zst
PeerTube-bd14d16a29e2f90805d04b48378188517741a071.zip
Server: improve requests scheduler
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index a6adb75bf..97e3c5296 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -108,8 +108,10 @@ let REQUESTS_INTERVAL = 600000
108// Number of requests in parallel we can make 108// Number of requests in parallel we can make
109const REQUESTS_IN_PARALLEL = 10 109const REQUESTS_IN_PARALLEL = 10
110 110
111// How many requests we put in request 111// To how many pods we send requests
112const REQUESTS_LIMIT = 10 112const REQUESTS_LIMIT_PODS = 10
113// How many requests we send to a pod per interval
114const REQUESTS_LIMIT_PER_POD = 5
113 115
114// Number of requests to retry for replay requests module 116// Number of requests to retry for replay requests module
115const RETRY_REQUESTS = 5 117const RETRY_REQUESTS = 5
@@ -184,7 +186,8 @@ module.exports = {
184 REQUEST_ENDPOINTS, 186 REQUEST_ENDPOINTS,
185 REQUESTS_IN_PARALLEL, 187 REQUESTS_IN_PARALLEL,
186 REQUESTS_INTERVAL, 188 REQUESTS_INTERVAL,
187 REQUESTS_LIMIT, 189 REQUESTS_LIMIT_PODS,
190 REQUESTS_LIMIT_PER_POD,
188 RETRY_REQUESTS, 191 RETRY_REQUESTS,
189 SEARCHABLE_COLUMNS, 192 SEARCHABLE_COLUMNS,
190 SIGNATURE_ALGORITHM, 193 SIGNATURE_ALGORITHM,