Call Process.warmup

This commit is contained in:
Mike Dalessio
2025-10-10 15:17:13 -04:00
parent ba090196d8
commit 016f00dfb5
+8
View File
@@ -24,3 +24,11 @@ plugin :yabeda_prometheus
# https://edgeguides.rubyonrails.org/tuning_performance_for_deployment.html#puma
workers Concurrent.physical_processor_count
threads 1, 1
# Tell the Ruby VM that we're finished booting up.
#
# Now's the time to tidy the heap (GC, compact, free empty, malloc_trim, etc)
# for optimal copy-on-write efficiency.
before_fork do
Process.warmup
end