mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 17:17:40 +03:00
add comment
This commit is contained in:
parent
fcaff15795
commit
5b25ecd9b8
@ -636,6 +636,9 @@ async def get_video_properties(
|
|||||||
|
|
||||||
|
|
||||||
def set_file_limit() -> None:
|
def set_file_limit() -> None:
|
||||||
|
# Newer versions of containerd 2.X+ impose a very low soft file limit of 1024
|
||||||
|
# This applies to OSs like HA OS (see https://github.com/home-assistant/operating-system/issues/4110)
|
||||||
|
# Attempt to increase this limit
|
||||||
soft_limit = int(os.getenv("SOFT_FILE_LIMIT", "65536") or "65536")
|
soft_limit = int(os.getenv("SOFT_FILE_LIMIT", "65536") or "65536")
|
||||||
|
|
||||||
current_soft, current_hard = resource.getrlimit(resource.RLIMIT_NOFILE)
|
current_soft, current_hard = resource.getrlimit(resource.RLIMIT_NOFILE)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user