Class: Amigo::Autoscaler::Checker
- Inherits:
-
Object
- Object
- Amigo::Autoscaler::Checker
- Defined in:
- lib/amigo/autoscaler.rb
Direct Known Subclasses
Amigo::Autoscaler::Checkers::Chain, Amigo::Autoscaler::Checkers::Fake, Amigo::Autoscaler::Checkers::PumaPoolUsage, Amigo::Autoscaler::Checkers::Sidekiq, Amigo::Autoscaler::Checkers::WebLatency
Instance Method Summary collapse
-
#get_latencies ⇒ Hash
Return relevant latencies for this checker.
-
#get_pool_usage ⇒ nil, Float
Return the pool usage for this checker.
Instance Method Details
#get_latencies ⇒ Hash
Return relevant latencies for this checker. This could be the latencies of each Sidekiq queue, or web latencies, etc. If this is a pool usage checker only, return {}.
252 |
# File 'lib/amigo/autoscaler.rb', line 252 def get_latencies = raise NotImplementedError |
#get_pool_usage ⇒ nil, Float
Return the pool usage for this checker. Values should be between 0 and 1, with values over 1 meaning a backlog. If this is a latency checker only, or there is not enough information to report on pool usage, return nil.
258 |
# File 'lib/amigo/autoscaler.rb', line 258 def get_pool_usage = raise NotImplementedError |