The following attributes can be configured on the PumaWorkerKiller module to control its behavior:
attr_accessor :ram, # RAM limit in MB (default: 512)
attr_accessor :frequency, # Check frequency in seconds (default: 10)
attr_accessor :percent_usage, # Percent of RAM to use (default: 0.99)
attr_accessor :rolling_restart_frequency, # Frequency for rolling restarts in seconds (default: 6 * 3600)
attr_accessor :rolling_restart_splay_seconds, # Randomization range for rolling restarts (default: 0.0..300.0)
attr_accessor :reaper_status_logs, # Boolean to enable/disable status logs (default: true)
attr_accessor :pre_term, # Proc/callback executed before worker termination
attr_accessor :rolling_pre_term, # Proc/callback executed before rolling restart termination
attr_accessor :on_calculation # Proc/callback executed during memory calculation