Alert if higher then 24

Alert if higher then 24
This commit is contained in:
Phi 2023-05-31 09:43:26 -04:00
parent 2310740584
commit db673ef28d

View File

@ -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",
}) })
} }
} }