From c1934735f130805e34fd4216f45df80e54d3694c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Thu, 13 Feb 2025 15:18:14 +0800 Subject: [PATCH] fix(region): skip sync server status time range (#22100) --- pkg/compute/options/options.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkg/compute/options/options.go b/pkg/compute/options/options.go index 0ac27eecde..ef4e7b9f2e 100644 --- a/pkg/compute/options/options.go +++ b/pkg/compute/options/options.go @@ -106,8 +106,7 @@ type ComputeOptions struct { RetentionDaysLimit int `default:"49" help:"Days of snapshot retention, default 49 days"` TimePointsLimit int `default:"1" help:"time point of every days, default 1 point"` - ServerStatusSyncIntervalMinutes int `default:"5" help:"Interval to sync server status, defualt is 5 minutes"` - CloudAccountBatchSyncSize int `default:"10" help:"How many cloud account syncing in a batch"` + CloudAccountBatchSyncSize int `default:"10" help:"How many cloud account syncing in a batch"` ServerSkuSyncIntervalMinutes int `default:"60" help:"Interval to sync public cloud server skus, defualt is 1 hour"` SkuBatchSync int `default:"5" help:"How many skus can be sync in a batch"` @@ -223,6 +222,15 @@ type ComputeOptions struct { esxi.EsxiOptions NetworkAlwaysManualConfig bool `help:"always manually configure network settings" default:"false"` + + ComputeEEOptions +} + +type ComputeEEOptions struct { + // 快速同步资源状态时间周期 + ServerStatusSyncIntervalMinutes int `default:"5" help:"Interval to sync server status, defualt is 5 minutes"` + // 跳过新增资源同步时间范围 + SkipServerStatusSyncTimeRange string `help:"Skip server status sync time range example: 08:00-18:00"` } type SCapabilityOptions struct {