Skip to content

Commit

Permalink
health: increase max run_queue length to 100 (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
meagharty authored May 31, 2024
1 parent 1acdb71 commit afa99e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/health/lib/health/checkers/run_queue.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ defmodule Health.Checkers.RunQueue do
end

def healthy? do
h? = queue_size() < 50
h? = queue_size() <= max_run_queue_length()

_ = log_processes(h?, Logger.level())

h?
end

defp max_run_queue_length, do: 100

defp queue_size do
:erlang.statistics(:run_queue)
end
Expand Down

0 comments on commit afa99e3

Please sign in to comment.