Alert if higher then 24
Alert if higher then 24
This commit is contained in:
parent
2310740584
commit
db673ef28d
@ -63,12 +63,12 @@ func CheckFvmConcurrency() func(al *alerting.Alerting) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Raise alert if LOTUS_FVM_CONCURRENCY is set to a high value
|
// Raise alert if LOTUS_FVM_CONCURRENCY is set to a high value
|
||||||
if fvmConcurrencyVal >= 24 {
|
if fvmConcurrencyVal > 24 {
|
||||||
alert := al.AddAlertType("process", "fvm-concurrency")
|
alert := al.AddAlertType("process", "fvm-concurrency")
|
||||||
al.Raise(alert, map[string]interface{}{
|
al.Raise(alert, map[string]interface{}{
|
||||||
"message": "LOTUS_FVM_CONCURRENCY is set to a high value that can cause chain sync panics on network migrations/upgrades",
|
"message": "LOTUS_FVM_CONCURRENCY is set to a high value that can cause chain sync panics on network migrations/upgrades",
|
||||||
"set_value": fvmConcurrencyVal,
|
"set_value": fvmConcurrencyVal,
|
||||||
"recommended": "23 or less during network upgrades",
|
"recommended": "24 or less during network upgrades",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user