Class: Amigo::Autoscaler::Handler
- Inherits:
-
Object
- Object
- Amigo::Autoscaler::Handler
- Defined in:
- lib/amigo/autoscaler.rb
Direct Known Subclasses
Amigo::Autoscaler::Handlers::Chain, Amigo::Autoscaler::Handlers::Fake, Amigo::Autoscaler::Handlers::Heroku, Amigo::Autoscaler::Handlers::Log, Amigo::Autoscaler::Handlers::Sentry
Instance Method Summary collapse
-
#scale_down(depth:, duration:, **kw) ⇒ Object
Called when a latency of
latency_restored_thresholdis reached (ie, when we get back to normal latency after a high latency event). -
#scale_up(high_latencies:, pool_usage:, depth:, duration:, **kw) ⇒ Array<String,Symbol,Proc,#call>
Called when a latency event starts, and as it fails to resolve.
Instance Method Details
#scale_down(depth:, duration:, **kw) ⇒ Object
Called when a latency of latency_restored_threshold is reached (ie, when we get back to normal latency after a high latency event). Usually this handler will deprovision capacity procured as part of the scale_up.
285 |
# File 'lib/amigo/autoscaler.rb', line 285 def scale_down(depth:, duration:, **kw) = raise NotImplementedError |
#scale_up(high_latencies:, pool_usage:, depth:, duration:, **kw) ⇒ Array<String,Symbol,Proc,#call>
Called when a latency event starts, and as it fails to resolve.
275 |
# File 'lib/amigo/autoscaler.rb', line 275 def scale_up(high_latencies:, pool_usage:, depth:, duration:, **kw) = raise NotImplementedError |