1
0
mirror of https://github.com/algora-io/tv.git synced 2025-10-30 23:07:56 +02:00

add FLAME_MIN env var and set default to 0

This commit is contained in:
zafer
2024-12-07 04:09:01 +03:00
parent 7291f9ee7c
commit 898eac3345
4 changed files with 4 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ SUPPORTS_H265=false
TRANSCODE=4320p60@32000000|2160p60@16000000|1440p60@8000000|1440p30@4000000|720p30@2000000|360p30@1000000|180p30@500000
FLAME_BACKEND=local
FLAME_MIN=0
FLAME_MAX=1
FLAME_MAX_CONCURRENCY=10
FLAME_IDLE_SHUTDOWN_AFTER=30

View File

@@ -41,7 +41,7 @@ config :algora, :event_sink, url: System.get_env("EVENT_SINK_URL")
config :algora, :flame,
backend: flame_backend,
min: String.to_integer(System.get_env("FLAME_MAX", "1")),
min: String.to_integer(System.get_env("FLAME_MIN", "0")),
max: String.to_integer(System.get_env("FLAME_MAX", "1")),
max_concurrency: String.to_integer(System.get_env("FLAME_MAX_CONCURRENCY", "10")),
idle_shutdown_after: String.to_integer(System.get_env("FLAME_IDLE_SHUTDOWN_AFTER", "30")),

View File

@@ -124,7 +124,7 @@ if config_env() == :prod do
config :algora, :flame,
backend: flame_backend,
min: String.to_integer(System.get_env("FLAME_MAX", "1")),
min: String.to_integer(System.get_env("FLAME_MIN", "0")),
max: String.to_integer(System.get_env("FLAME_MAX", "1")),
max_concurrency: String.to_integer(System.get_env("FLAME_MAX_CONCURRENCY", "10")),
idle_shutdown_after: String.to_integer(System.get_env("FLAME_IDLE_SHUTDOWN_AFTER", "30")),

View File

@@ -15,7 +15,7 @@ config :algora,
config :algora, :flame,
flame_backend: FLAME.LocalBackend,
min: String.to_integer(System.get_env("FLAME_MAX", "1")),
min: String.to_integer(System.get_env("FLAME_MIN", "0")),
max: String.to_integer(System.get_env("FLAME_MAX", "1")),
max_concurrency: String.to_integer(System.get_env("FLAME_MAX_CONCURRENCY", "10")),
idle_shutdown_after: String.to_integer(System.get_env("FLAME_IDLE_SHUTDOWN_AFTER", "30")),