mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-09 08:56:54 -04:00
HA should check other instances every second
This commit is contained in:
parent
0e58208b0b
commit
aa591eb92d
1 changed files with 2 additions and 4 deletions
6
ha.go
6
ha.go
|
|
@ -146,10 +146,8 @@ func (h *HA) Run(chEnv chan *Environment) {
|
|||
previous := h.icinga2MTime
|
||||
h.icinga2HeartBeat()
|
||||
|
||||
if h.icinga2MTime-previous < 10 {
|
||||
if h.isActive {
|
||||
err = h.updateOwnInstance()
|
||||
}
|
||||
if h.icinga2MTime-previous < 10 && h.isActive {
|
||||
err = h.updateOwnInstance()
|
||||
} else {
|
||||
they, beat, err := h.getInstance()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue