paritytech / parity-bridges-common

Collection of Useful Bridge Building Tools 🏗️
GNU General Public License v3.0
271 stars 130 forks source link

Monitor bridge GRANDPA transactions #2447

Open svyatonik opened 1 year ago

svyatonik commented 1 year ago

Related to paritytech/parity-bridges-common#2496

paritytech/parity-bridges-common#1882 introduces some constants, related to weight and size (soft) limits of pallet-bridge-grandpa transactions. We shall add monitoring stuff (loki + relay logs + alerts OR relay metrics + dashboards + alerts?) to our substrate-relay (or some separate process). The relay must look at all pallet transactions and:

EmmanuellNorbertTulbure commented 1 year ago

@svyatonik to recheck

svyatonik commented 1 year ago

search transactions that are above our limits. We may need to increase limits if we see such transactions

There are two limits:

So we expect to see:

If we see transaction over those limits, then:

So we need a metrics for actual values in source chain headers and if they are above the limits, we'll need to change constants OR ELSE relayers will keep (partially) spending funds. I'd add this either in v1, or soon after the launch. OTOH, we have enough reserve in those constants, so we unlikely to overflow. So maybe "soon after the launch" is a way to go here. @EmmanuellNorbertTulbure Please triage :)