diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-24 13:07:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-24 13:38:39 +0200 |
commit | e5565833f62b97f62ea75eba5b479963ae78b873 (patch) | |
tree | 835793ce464f9666b0ceae79f3d278cc4e007b32 /config | |
parent | d1a63fc7ac58a1db00d8ca4f43aadba02eb9b084 (diff) | |
download | PeerTube-e5565833f62b97f62ea75eba5b479963ae78b873.tar.gz PeerTube-e5565833f62b97f62ea75eba5b479963ae78b873.tar.zst PeerTube-e5565833f62b97f62ea75eba5b479963ae78b873.zip |
Improve redundancy: add 'min_lifetime' configuration
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 8 | ||||
-rw-r--r-- | config/production.yaml.example | 8 | ||||
-rw-r--r-- | config/test.yaml | 7 |
3 files changed, 19 insertions, 4 deletions
diff --git a/config/default.yaml b/config/default.yaml index fa1fb628a..0d7d948c2 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -75,14 +75,20 @@ redundancy: | |||
75 | strategies: | 75 | strategies: |
76 | # - | 76 | # - |
77 | # size: '10GB' | 77 | # size: '10GB' |
78 | # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) | ||
79 | # min_lifetime: '48 hours' | ||
78 | # strategy: 'most-views' # Cache videos that have the most views | 80 | # strategy: 'most-views' # Cache videos that have the most views |
79 | # - | 81 | # - |
80 | # size: '10GB' | 82 | # size: '10GB' |
83 | # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) | ||
84 | # min_lifetime: '48 hours' | ||
81 | # strategy: 'trending' # Cache trending videos | 85 | # strategy: 'trending' # Cache trending videos |
82 | # - | 86 | # - |
83 | # size: '10GB' | 87 | # size: '10GB' |
88 | # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) | ||
89 | # min_lifetime: '48 hours' | ||
84 | # strategy: 'recently-added' # Cache recently added videos | 90 | # strategy: 'recently-added' # Cache recently added videos |
85 | # minViews: 10 # Having at least x views | 91 | # min_views: 10 # Having at least x views |
86 | 92 | ||
87 | cache: | 93 | cache: |
88 | previews: | 94 | previews: |
diff --git a/config/production.yaml.example b/config/production.yaml.example index 4d8752206..f9da8e0dd 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -76,14 +76,20 @@ redundancy: | |||
76 | strategies: | 76 | strategies: |
77 | # - | 77 | # - |
78 | # size: '10GB' | 78 | # size: '10GB' |
79 | # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) | ||
80 | # min_lifetime: '48 hours' | ||
79 | # strategy: 'most-views' # Cache videos that have the most views | 81 | # strategy: 'most-views' # Cache videos that have the most views |
80 | # - | 82 | # - |
81 | # size: '10GB' | 83 | # size: '10GB' |
84 | # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) | ||
85 | # min_lifetime: '48 hours' | ||
82 | # strategy: 'trending' # Cache trending videos | 86 | # strategy: 'trending' # Cache trending videos |
83 | # - | 87 | # - |
84 | # size: '10GB' | 88 | # size: '10GB' |
89 | # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) | ||
90 | # min_lifetime: '48 hours' | ||
85 | # strategy: 'recently-added' # Cache recently added videos | 91 | # strategy: 'recently-added' # Cache recently added videos |
86 | # minViews: 10 # Having at least x views | 92 | # min_views: 10 # Having at least x views |
87 | 93 | ||
88 | ############################################################################### | 94 | ############################################################################### |
89 | # | 95 | # |
diff --git a/config/test.yaml b/config/test.yaml index ad94b00cd..04c999966 100644 --- a/config/test.yaml +++ b/config/test.yaml | |||
@@ -23,18 +23,21 @@ log: | |||
23 | 23 | ||
24 | redundancy: | 24 | redundancy: |
25 | videos: | 25 | videos: |
26 | check_interval: '5 seconds' | 26 | check_interval: '10 minutes' |
27 | strategies: | 27 | strategies: |
28 | - | 28 | - |
29 | size: '10MB' | 29 | size: '10MB' |
30 | min_lifetime: '10 minutes' | ||
30 | strategy: 'most-views' | 31 | strategy: 'most-views' |
31 | - | 32 | - |
32 | size: '10MB' | 33 | size: '10MB' |
34 | min_lifetime: '10 minutes' | ||
33 | strategy: 'trending' | 35 | strategy: 'trending' |
34 | - | 36 | - |
35 | size: '10MB' | 37 | size: '10MB' |
38 | min_lifetime: '10 minutes' | ||
36 | strategy: 'recently-added' | 39 | strategy: 'recently-added' |
37 | minViews: 1 | 40 | min_views: 1 |
38 | 41 | ||
39 | cache: | 42 | cache: |
40 | previews: | 43 | previews: |