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

+2 -2
View File
@@ -27,7 +27,7 @@ type RecordNode struct {
IsolatedCpus []interface{} `json:"isolatedCpus"`
// MemAllocationRatio
MemAllocationRatio uint64 `json:"mem_allocation_ratio"`
MemAllocationRatio float64 `json:"mem_allocation_ratio"`
// Name
Name string `json:"name"`
@@ -363,7 +363,7 @@ type ItemNode struct {
CPUAllocationRatio uint64 `json:"cpu_allocation_ratio"`
// MemAllocationRatio
MemAllocationRatio uint64 `json:"mem_allocation_ratio"`
MemAllocationRatio float64 `json:"mem_allocation_ratio"`
// Packages
Packages map[string]PackageInfo `json:"packages"`
@@ -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