question about health_monitor's "prune" processing
Ning Fu
Hi, folks:
Recently I am reading health_monitor code, and I am confused about health_monitor's "prune" processing -- it seems that there is an intent to remove the events that are obsoleted from the waiting queue: https://github.com/cloudfoundry/bosh/blob/master/bosh-monitor/lib/bosh/monitor/event_processor.rb#L70 https://github.com/cloudfoundry/bosh/blob/master/bosh-monitor/lib/bosh/monitor/event_processor.rb#L41 But it looks like that the event list is never used as the sending queue: https://github.com/cloudfoundry/bosh/blob/master/bosh-monitor/lib/bosh/monitor/event_processor.rb#L50 An event is just passed to the plugin directly. If my understanding is correct, then what's the purpose of this call at agent_manager.setup_events: @processor.enable_pruning(Bhm.intervals.prune_events) ? Thanks, Ning |
|