Class: Hyperion::Config::WorkerHealthConfig
- Inherits:
-
Object
- Object
- Hyperion::Config::WorkerHealthConfig
- Defined in:
- lib/hyperion/config.rb
Overview
Worker health subconfig. ‘max_rss_mb` recycles a worker that exceeds the configured RSS; `check_interval` is the poll period in seconds. The new `timeout` field is reserved for 1.8+ worker- heartbeat work; ships now so operators can pre-configure.
Constant Summary collapse
- ATTRS =
%i[max_rss_mb check_interval timeout].freeze
Instance Method Summary collapse
-
#initialize ⇒ WorkerHealthConfig
constructor
A new instance of WorkerHealthConfig.
Constructor Details
#initialize ⇒ WorkerHealthConfig
Returns a new instance of WorkerHealthConfig.
136 137 138 139 140 |
# File 'lib/hyperion/config.rb', line 136 def initialize @max_rss_mb = nil @check_interval = 30 @timeout = nil end |