Skip to content

Commit

Permalink
Merge pull request #5345 from systeminit/fnichol/healthcheck-update-o…
Browse files Browse the repository at this point in the history
…pen-files

chore: update `dev:healthcheck` to check for a higher open file count
  • Loading branch information
fnichol authored Jan 27, 2025
2 parents a147869 + 79624b9 commit ba499aa
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dev/healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@
import shutil
import sys

MIN_OPENFILES_VALUE = 1024
# Why so many??
#
# Currently there are a few reasons:
# - Our in-memory/on-disk caching solution (foyer) drives the number of open
# files handles up, and we run 3 copies in the dev stack
# - Database connection pools are numerous (3x per process and they default to a
# number based on core count)
#
# If and when the math changes, this value can be *dramatically* decreased, but
# until then, it's a high value ;)
MIN_OPENFILES_VALUE = 16384

MIN_IONOTIFY_WATCHES = 65536 * 2


Expand Down

0 comments on commit ba499aa

Please sign in to comment.