diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-10 22:24:42 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-10 22:24:42 +0100 |
commit | bd14d16a29e2f90805d04b48378188517741a071 (patch) | |
tree | 226dc461367418321d4a77bb5004d1491681f7cf /server/initializers | |
parent | ed04d94f6d7132055f97a2f757b85c03c5f2a0b6 (diff) | |
download | PeerTube-bd14d16a29e2f90805d04b48378188517741a071.tar.gz PeerTube-bd14d16a29e2f90805d04b48378188517741a071.tar.zst PeerTube-bd14d16a29e2f90805d04b48378188517741a071.zip |
Server: improve requests scheduler
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.js | 9 |
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 |
109 | const REQUESTS_IN_PARALLEL = 10 | 109 | const REQUESTS_IN_PARALLEL = 10 |
110 | 110 | ||
111 | // How many requests we put in request | 111 | // To how many pods we send requests |
112 | const REQUESTS_LIMIT = 10 | 112 | const REQUESTS_LIMIT_PODS = 10 |
113 | // How many requests we send to a pod per interval | ||
114 | const 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 |
115 | const RETRY_REQUESTS = 5 | 117 | const 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, |