diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-27 10:51:03 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-27 12:05:10 +0100 |
commit | 00b87c5791ecd645bb78cbb9872d60e1f957bdfa (patch) | |
tree | 6110a249014391284f2849ee24f198a32aabf613 /server/initializers/constants.ts | |
parent | a4a8cd39712c59119ad0be5cd584b158f06c5852 (diff) | |
download | PeerTube-00b87c5791ecd645bb78cbb9872d60e1f957bdfa.tar.gz PeerTube-00b87c5791ecd645bb78cbb9872d60e1f957bdfa.tar.zst PeerTube-00b87c5791ecd645bb78cbb9872d60e1f957bdfa.zip |
Fix live RAM usage when ffmpeg is too slow
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index a78a66d78..84a515857 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -644,6 +644,7 @@ const VIDEO_LIVE = { | |||
644 | SEGMENTS_LIST_SIZE: 15, // 15 maximum segments in live playlist | 644 | SEGMENTS_LIST_SIZE: 15, // 15 maximum segments in live playlist |
645 | REPLAY_DIRECTORY: 'replay', | 645 | REPLAY_DIRECTORY: 'replay', |
646 | EDGE_LIVE_DELAY_SEGMENTS_NOTIFICATION: 4, | 646 | EDGE_LIVE_DELAY_SEGMENTS_NOTIFICATION: 4, |
647 | MAX_SOCKET_WAITING_DATA: 1024 * 1000 * 100, // 100MB | ||
647 | RTMP: { | 648 | RTMP: { |
648 | CHUNK_SIZE: 60000, | 649 | CHUNK_SIZE: 60000, |
649 | GOP_CACHE: true, | 650 | GOP_CACHE: true, |
@@ -656,7 +657,8 @@ const VIDEO_LIVE = { | |||
656 | const MEMOIZE_TTL = { | 657 | const MEMOIZE_TTL = { |
657 | OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours | 658 | OVERVIEWS_SAMPLE: 1000 * 3600 * 4, // 4 hours |
658 | INFO_HASH_EXISTS: 1000 * 3600 * 12, // 12 hours | 659 | INFO_HASH_EXISTS: 1000 * 3600 * 12, // 12 hours |
659 | LIVE_ABLE_TO_UPLOAD: 1000 * 60 // 1 minute | 660 | LIVE_ABLE_TO_UPLOAD: 1000 * 60, // 1 minute |
661 | LIVE_CHECK_SOCKET_HEALTH: 1000 * 60 // 1 minute | ||
660 | } | 662 | } |
661 | 663 | ||
662 | const MEMOIZE_LENGTH = { | 664 | const MEMOIZE_LENGTH = { |