monitors-relation-changed repeats many times and takes a very long time

Bug #1725376 reported by Xav Paice
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Nagios Charm
Fix Released
High
Paul Goins

Bug Description

On a setup where we have many nrpe units related to nagios, the monitors-relation-changed hook runs a loop through every unit in every relation and uses pynag to save intermediate files to disk each time. This takes about 2.5 mins in some environments, and the hook repeats for every unit - meaning it takes hours to fully populate a nagios host.

It would be nice to refactor to make that more efficient.

Related branches

Junien F (axino)
Changed in nagios-charm:
status: New → Confirmed
importance: Undecided → High
Changed in nagios-charm:
assignee: nobody → Wouter van Bommel (woutervb)
Changed in nagios-charm:
assignee: Wouter van Bommel (woutervb) → nobody
Changed in nagios-charm:
assignee: nobody → Wouter van Bommel (woutervb)
Changed in charm-nagios:
assignee: Wouter van Bommel (woutervb) → nobody
Andrea Ieri (aieri)
Changed in charm-nagios:
assignee: nobody → Paul Goins (vultaire)
milestone: none → 21.10
Changed in charm-nagios:
status: Confirmed → Fix Committed
Revision history for this message
Paul Goins (vultaire) wrote (last edit ):

This is immediately available in cs:~llama-charmers-next/nagios, and will be formally released in the 21.10 release.

Celia Wang (ziyiwang)
Changed in charm-nagios:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.