Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
don't add droplets to varz
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregg Van Hove and Onsi Fakhouri committed Jul 19, 2013
1 parent c157eda commit b848880
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions config/health_manager.yml
Expand Up @@ -74,10 +74,6 @@ intervals:
# how often should the gc loop for droplets run # how often should the gc loop for droplets run
droplet_gc: 300 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 # Used for /healthz and /vars endpoints. If not provided random
# values will be generated on component start. Uncomment to use # values will be generated on component start. Uncomment to use
# static values. # static values.
Expand Down
1 change: 0 additions & 1 deletion lib/health_manager/constants.rb
Expand Up @@ -29,7 +29,6 @@ module HealthManager
:min_restart_delay => 60, :min_restart_delay => 60,
:max_restart_delay => 480, :max_restart_delay => 480,
:delay_time_noise => 5, :delay_time_noise => 5,
:max_droplets_in_varz => 0,
:droplet_gc_grace_period => 240, :droplet_gc_grace_period => 240,
:droplet_gc => 300, :droplet_gc => 300,
} }
Expand Down
6 changes: 0 additions & 6 deletions lib/health_manager/harmonizer.rb
Expand Up @@ -240,12 +240,6 @@ def analyze_droplet(droplet)
private private


def finish_droplet_analysis 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) elapsed = scheduler.elapsed_time(:droplets_analysis)
varz[:analysis_loop_duration] = elapsed varz[:analysis_loop_duration] = elapsed
varz.publish_realtime_stats varz.publish_realtime_stats
Expand Down
3 changes: 0 additions & 3 deletions spec/unit/harmonizer_spec.rb
Expand Up @@ -18,9 +18,6 @@ module HealthManager
end end
let(:config) do let(:config) do
{ {
:intervals => {
:max_droplets_in_varz => 10
},
:health_manager_component_registry => {:nudger => nudger} :health_manager_component_registry => {:nudger => nudger}
} }
end end
Expand Down

0 comments on commit b848880

Please sign in to comment.