Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Run anomaly scanner once every 10 minuntes to decrease staleness

天舟c72816ab60fc
diff --git a/frontend/src/views/AnomalyCenterDashboard.vue b/frontend/src/views/AnomalyCenterDashboard.vue
index 1e64db329b..9b6bfa025f 100644
--- a/frontend/src/views/AnomalyCenterDashboard.vue
+++ b/frontend/src/views/AnomalyCenterDashboard.vue
@@ -3,7 +3,7 @@
<BBAttention
:style="'INFO'"
:title="'Anomaly detection'"
- :description="'Bytebase periodically scans the managed resources and list the detected anomolies here. The list is refreshed roughly every 30 minutes.'"
+ :description="'Bytebase periodically scans the managed resources and list the detected anomolies here. The list is refreshed roughly every 10 minutes.'"
/>
<div class="py-2 flex justify-between items-center">
<BBTabFilter
diff --git a/server/anomaly_scanner.go b/server/anomaly_scanner.go
index c3bfc792de..8ab0d08937 100644
--- a/server/anomaly_scanner.go
+++ b/server/anomaly_scanner.go
@@ -15,7 +15,8 @@ import (
)
const (
- ANOMALY_SCAN_INTERVAL = time.Duration(30) * time.Minute
+ // The chosen interval is a balance between anomaly staleness tolerance and background load.
+ ANOMALY_SCAN_INTERVAL = time.Duration(10) * time.Minute
)
func NewAnomalyScanner(logger *zap.Logger, server *Server) *AnomalyScanner {