Commit bbd92c8
feat(capacity): satellite reports pool capacity every 30s; controller updates Status
- New unary RPC `Controller.ReportPoolCapacity(node, []PoolCapacity)`.
- pkg/satellite agent runs `runCapacityLoop` on a 30 s ticker; each
tick walks Provider.PoolStatus and ships free / total / supports-
snapshots back to the controller.
- pkg/satellitecontroller.Server.ReportPoolCapacity calls the new
StoragePoolStore.SetCapacity which writes via the Status subresource
(so it doesn't fight a Spec rewrite from a concurrent Hello). Both
in-memory and CRD-backed stores implement it.
End-to-end: linstor-csi GetCapacity / autoplacer free-space ranking
now have live numbers without anyone running `linstor storage-pool
list` by hand.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>1 parent 5071372 commit bbd92c8
8 files changed
Lines changed: 877 additions & 428 deletions
File tree
- pkg
- satellitecontroller
- satellite
- proto
- store
- k8s
- proto/satellite/v1alpha1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| |||
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
266 | 320 | | |
267 | 321 | | |
268 | 322 | | |
| |||
0 commit comments