info
SlurmInfo
¶
Bases: BaseModel
Source code in hpcman/hpcman/queue/info.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
|
get_allowed_nodes()
¶
Generates a set of nodes that should be included in the final output.
Source code in hpcman/hpcman/queue/info.py
check_if_mem_overallocated(node)
¶
Compares memory allocation to use to determine utilization/overallocation.
Source code in hpcman/hpcman/queue/info.py
check_if_node_overloaded(node)
¶
Compares CPU load to use to determine utilization/overallocation.
Source code in hpcman/hpcman/queue/info.py
get_jobs_by_node()
¶
Loads jobs into a dict per node allocation. Ignores non-allocated jobs.
Source code in hpcman/hpcman/queue/info.py
get_node_cpu_text(node)
¶
Formatting node cpu information as a rich.Text object.
Source code in hpcman/hpcman/queue/info.py
get_node_gpu_text(node)
¶
Formatting node gpu information as a rich.Text object.
Source code in hpcman/hpcman/queue/info.py
get_node_mem_text(node)
¶
Formatting node mem information as a rich.Text object.
Source code in hpcman/hpcman/queue/info.py
get_priority_partitions(default_priority=100)
¶
Compares partitions to default priority (100) to determine if any priority partitions are available.
Source code in hpcman/hpcman/queue/info.py
get_style_from_range(value)
¶
Provides a set Style color for a range of input values between 0-100.
Closer to 100 is green while closer to 0 is red.
Source code in hpcman/hpcman/queue/info.py
print_node_tree(**kwargs)
¶
Generates and prints node tree.