refactor(unified-storage): make datasyncer configurable (#97832)

This commit is contained in:
Jean-Philippe Quéméner
2024-12-12 21:41:01 +01:00
committed by GitHub
parent 6dc41f0b18
commit 1509fadd5b
9 changed files with 216 additions and 78 deletions
+4
View File
@@ -538,6 +538,10 @@ type Cfg struct {
type UnifiedStorageConfig struct {
DualWriterMode rest.DualWriterMode
DualWriterPeriodicDataSyncJobEnabled bool
// DataSyncerInterval defines how often the data syncer should run for a resource on the grafana instance.
DataSyncerInterval time.Duration
// DataSyncerRecordsLimit defines how many records will be processed at max during a sync invocation.
DataSyncerRecordsLimit int
}
type InstallPlugin struct {