This commit is contained in:
aafetisov committed 2026-11-20 17:14:41 +03:00
1 parent ee7a8ebb55
commit 3b0a73c424
17 files changed
+218 -20

No files matched your search

@@ -14,9 +14,9 @@ type SetMemAllocationRatioRequest struct {
// Required: true
NodeID uint64 `url:"node_id" json:"node_id" validate:"required"`
// Allocation ratio (zero or positive value)
// Allocation ratio (at least 1)
// Required: true
Ratio uint64 `url:"ratio" json:"ratio" validate:"required"`
Ratio float64 `url:"ratio" json:"ratio" validate:"required,gte=1"`
}
// SetMemAllocationRatio set memory allocation ratio