Add NodeMaxAllocations to client configuration (#25785)

* Set MaxAllocations in client config
Add NodeAllocationTracker struct to Node struct
Evaluate MaxAllocations in AllocsFit function
Set up cli config parsing
Integrate maxAllocs into AllocatedResources view
Co-authored-by: Tim Gross <tgross@hashicorp.com>

---------

Co-authored-by: Tim Gross <tgross@hashicorp.com>
This commit is contained in:
tehut
2025-05-22 12:49:27 -07:00
committed by GitHub
parent 15c01e5a49
commit 55523ecf8e
18 changed files with 311 additions and 17 deletions

View File

@@ -572,6 +572,7 @@ type Node struct {
LastDrain *DrainMetadata
CreateIndex uint64
ModifyIndex uint64
NodeMaxAllocs int
}
type NodeResources struct {