Commit 63331fac authored by Daniele Venzano's avatar Daniele Venzano 🏇
Browse files

Merge branch 'devel/platform_status' into 'master'

Use reservations for simulating placements, not allocations.

See merge request !51
parents 06d52137 c71c363a
......@@ -14,12 +14,12 @@ class SimulatedNode:
"""A simulated node where containers can be run"""
def __init__(self, real_node: NodeStats):
self.real_reservations = {
"memory": real_node.memory_allocated,
"cores": real_node.cores_allocated
"memory": real_node.memory_reserved,
"cores": real_node.cores_reserved
self.real_free_resources = {
"memory": real_node.memory_total - real_node.memory_allocated,
"cores": real_node.cores_total - real_node.cores_allocated
"memory": real_node.memory_total - real_node.memory_reserved,
"cores": real_node.cores_total - real_node.cores_reserved
self.real_active_containers = real_node.container_count = []
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment