Change Node Display in ui.py
Would like to know how many nodes are currently being utilized (so just adding up the number of nodes for all the jobs currently running) and then how many nodes are free. It may be as simple as just doing nodes_active = len(self.scheduled_nodes) in scheduler.py to get the number of nodes currently in use, and then for number of nodes free. Nodes free is essentially nodes_free = 9472 - nodes_active, although instead of using 9472 directly, we should compute some value like TOTAL_NODES = list(range(NUM_CDUS * RACKS_PER_CDU * NODES_PER_RACK) nodes_up = len(set(TOTAL_NODES) - set(DOWN_NODES) - set(MISSING_NODES)) nodes_up will have to be updated after any nodes go down around line 155 in scheduler.py if len(newly_downed_nodes) > 0: nodes_up = ...