aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-18 16:13:54 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-18 16:13:54 +0200
commit528a9efa8272532bbd0dafc35c3e05e57c50f61e (patch)
tree62d4417df4ab9b2e53c44dc7271be81b88e4e0e5 /server/initializers/constants.js
parentb2e4c0ba1a33b8a50491a1f8d111468a7da5640f (diff)
downloadPeerTube-528a9efa8272532bbd0dafc35c3e05e57c50f61e.tar.gz
PeerTube-528a9efa8272532bbd0dafc35c3e05e57c50f61e.tar.zst
PeerTube-528a9efa8272532bbd0dafc35c3e05e57c50f61e.zip
Try to make a better communication (between pods) module
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index 22cbb1361..caeb340cf 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -18,11 +18,11 @@ const PODS_SCORE = {
18 BONUS: 10 18 BONUS: 10
19} 19}
20 20
21// Number of retries we make for the make retry requests (to friends...) 21// Number of requests in parallel we can make
22let REQUEST_RETRIES = 10 22const REQUESTS_IN_PARALLEL = 10
23 23
24// Different types or requests for the request scheduler module 24// Number of requests to retry for replay requests module
25const REQUEST_SCHEDULER_TYPE = [ 'add', 'remove' ] 25const RETRY_REQUESTS = 5
26 26
27// Sortable columns per schema 27// Sortable columns per schema
28const SEARCHABLE_COLUMNS = { 28const SEARCHABLE_COLUMNS = {
@@ -56,7 +56,6 @@ if (isTestInstance() === true) {
56 FRIEND_BASE_SCORE = 20 56 FRIEND_BASE_SCORE = 20
57 INTERVAL = 10000 57 INTERVAL = 10000
58 VIDEOS_CONSTRAINTS_FIELDS.DURATION.max = 14 58 VIDEOS_CONSTRAINTS_FIELDS.DURATION.max = 14
59 REQUEST_RETRIES = 2
60} 59}
61 60
62// --------------------------------------------------------------------------- 61// ---------------------------------------------------------------------------
@@ -67,8 +66,8 @@ module.exports = {
67 INTERVAL: INTERVAL, 66 INTERVAL: INTERVAL,
68 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, 67 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT,
69 PODS_SCORE: PODS_SCORE, 68 PODS_SCORE: PODS_SCORE,
70 REQUEST_RETRIES: REQUEST_RETRIES, 69 REQUESTS_IN_PARALLEL: REQUESTS_IN_PARALLEL,
71 REQUEST_SCHEDULER_TYPE: REQUEST_SCHEDULER_TYPE, 70 RETRY_REQUESTS: RETRY_REQUESTS,
72 SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS, 71 SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS,
73 SORTABLE_COLUMNS: SORTABLE_COLUMNS, 72 SORTABLE_COLUMNS: SORTABLE_COLUMNS,
74 THUMBNAILS_SIZE: THUMBNAILS_SIZE, 73 THUMBNAILS_SIZE: THUMBNAILS_SIZE,