Automatically restart Puma cluster workers based on max RAM available
25-Jul-2024 503
Before you use this gem, know that it is dangerous. If you have a memory issue, you need to fix the issue. The original idea behind this gem is that it would act as a temporary band-aid to buy you time to allow you to fix your issues. If you turn this on and don't fix the underlying memory problems, then things will only get worse over time.This gem can also make your performance WORSE. When a worker is killed, and comes back it takes CPU cycles and time. If you are frequently restarting your workers then you're killing your performance.
Automatically restart Puma cluster workers based on max RAM available #ruby #rubydeveloper #rubyonrails #Automatically #restart #cluster #workers #based #available #puma #restart https://rubyonrails.ba/link/automatically-restart-puma-cluster-workers-based-on-max-ram-available