Skip to content
Browse files

don't add droplets to varz

  • Loading branch information...
1 parent c157eda commit b8488802ad447b919096f32e5c5d3c0373436999 Gregg Van Hove and Onsi Fakhouri committed
View
4 config/health_manager.yml
@@ -74,10 +74,6 @@ intervals:
# how often should the gc loop for droplets run
droplet_gc: 300
- # number of droplets objects to be published under varz[:droplets]
- # use non-positive value to disable
- max_droplets_in_varz: 0
-
# Used for /healthz and /vars endpoints. If not provided random
# values will be generated on component start. Uncomment to use
# static values.
View
1 lib/health_manager/constants.rb
@@ -29,7 +29,6 @@ module HealthManager
:min_restart_delay => 60,
:max_restart_delay => 480,
:delay_time_noise => 5,
- :max_droplets_in_varz => 0,
:droplet_gc_grace_period => 240,
:droplet_gc => 300,
}
View
6 lib/health_manager/harmonizer.rb
@@ -240,12 +240,6 @@ def analyze_droplet(droplet)
private
def finish_droplet_analysis
- if @droplet_registry.size <= interval(:max_droplets_in_varz)
- varz[:droplets] = @droplet_registry
- else
- varz[:droplets] = {}
- end
-
elapsed = scheduler.elapsed_time(:droplets_analysis)
varz[:analysis_loop_duration] = elapsed
varz.publish_realtime_stats
View
3 spec/unit/harmonizer_spec.rb
@@ -18,9 +18,6 @@ module HealthManager
end
let(:config) do
{
- :intervals => {
- :max_droplets_in_varz => 10
- },
:health_manager_component_registry => {:nudger => nudger}
}
end

0 comments on commit b848880

Please sign in to comment.
Something went wrong with that request. Please try again.