Class: WorkerKiller::Middleware::OOMLimiter
- Inherits:
-
WorkerKiller::Middleware
- Object
- WorkerKiller::Middleware
- WorkerKiller::Middleware::OOMLimiter
- Defined in:
- lib/worker_killer/middleware.rb
Instance Attribute Summary
Attributes inherited from WorkerKiller::Middleware
#inhibitions, #interval, #killer, #limiter, #reaction
Instance Method Summary collapse
-
#initialize(app, **opts) ⇒ OOMLimiter
constructor
A new instance of OOMLimiter.
Methods inherited from WorkerKiller::Middleware
#call, #call_with_inhibition, #default_kill, #inihibit, #logger, #react, #release, #wrap_rack_response_body
Constructor Details
#initialize(app, **opts) ⇒ OOMLimiter
Returns a new instance of OOMLimiter.
123 124 125 |
# File 'lib/worker_killer/middleware.rb', line 123 def initialize(app, **opts) super(app, klass: ::WorkerKiller::MemoryLimiter, **opts) end |