Alerting: Increase size of kvstore value type for MySQL to LONGTEXT (#80331)

* Alerting: Increase size of kvstore value type for MySQL to LONGTEXT

alertmanager uses the kvstore to persist its notification log and the current
column limit for MySQL (16.7mb) puts the maximum entries at a level that is
potentially achievable for heavy alerting users (~40-80k entries).

In comparison, the current type for PSQL (TEXT) is effectively unlimited and
I believe SQLIte defaults to 2gb which is also plenty of leeway.
This commit is contained in:
Matthew Jacobson
2024-01-11 22:51:36 +02:00
committed by GitHub
parent ca9d147a44
commit 5ecc7dd2fa
2 changed files with 9 additions and 0 deletions
@@ -113,6 +113,8 @@ func (*OSSMigrations) AddMigration(mg *Migrator) {
ssosettings.AddMigration(mg)
ualert.CreateOrgMigratedKVStoreEntries(mg)
addKVStoreMySQLValueTypeLongTextMigration(mg)
}
func addStarMigrations(mg *Migrator) {