From c48e82b5e0478434de30626d14594a97f2402e7c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Sep 2018 16:27:07 +0200 Subject: Basic video redundancy implementation --- config/default.yaml | 9 +++++++++ config/production.yaml.example | 9 +++++++++ config/test.yaml | 6 ++++++ 3 files changed, 24 insertions(+) (limited to 'config') diff --git a/config/default.yaml b/config/default.yaml index 40458bb38..af29a4379 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -66,6 +66,15 @@ trending: videos: interval_days: 7 # Compute trending videos for the last x days +# Cache remote videos on your server, to help other instances to broadcast the video +# You can define multiple caches using different sizes/strategies +# Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following +redundancy: + videos: +# - +# size: '10GB' +# strategy: 'most-views' # Cache videos that have the most views + cache: previews: size: 500 # Max number of previews you want to cache diff --git a/config/production.yaml.example b/config/production.yaml.example index d032e4a0c..ddd43093f 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -67,6 +67,15 @@ trending: videos: interval_days: 7 # Compute trending videos for the last x days +# Cache remote videos on your server, to help other instances to broadcast the video +# You can define multiple caches using different sizes/strategies +# Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following +redundancy: + videos: +# - +# size: '10GB' +# strategy: 'most-views' # Cache videos that have the most views + ############################################################################### # # From this point, all the following keys can be overridden by the web interface diff --git a/config/test.yaml b/config/test.yaml index 6a8e47aac..0f280eabd 100644 --- a/config/test.yaml +++ b/config/test.yaml @@ -21,6 +21,12 @@ smtp: log: level: 'debug' +redundancy: + videos: + - + size: '100KB' + strategy: 'most-views' + cache: previews: size: 1 -- cgit v1.2.3