This commit is contained in:
2026-10-16 15:23:28 +03:00
parent 8cde0e9371
commit 84164a72a4
32 changed files with 1019 additions and 260 deletions

View File

@@ -86,6 +86,8 @@ var (
memoryBalloonModeValues = []string{"auto", "legacy", "none"}
migrateV2ModeValues = []string{"compute", "disks", "compute_and_disks"}
logLevelValues = []string{"DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"}
)
const (
@@ -94,4 +96,37 @@ const (
trunkTagsMin = 1
trunkTagsMax = 4095
pressureThresholdMin = 5
pressureThresholdMax = 50
deflateThresholdMin = 10
deflateThresholdMax = 70
bufferPCTMin = 5
bufferPCTMax = 50
guaranteedPCTMin = 10
guaranteedPCTMax = 50
guaranteedABSMinMin = 256
guaranteedABSMinMax = 4096
shrinkThresholdPCTMin = 30
shrinkThresholdPCTMax = 90
balloonMaxShrinkPCTMin = 5
balloonMaxShrinkPCTMax = 25
balloonMaxGrowPCTMin = 5
balloonMaxGrowPCTMax = 25
vmChangeCooldownMin = 30
vmChangeCooldownMax = 300
emergencyReturnCooldownMin = 60
emergencyReturnCooldownMax = 1800
majorFaultThresholdMin = 1
majorFaultThresholdMax = 10000
)