Add safe manual instance rebalancing

This commit is contained in:
2026-10-08 12:37:56 -04:00
parent 26de43639f
commit 012cd51a66
45 changed files with 2006 additions and 154 deletions
+9
View File
@@ -0,0 +1,9 @@
import type { RebalanceMove, RebalanceRun } from '$lib/rebalancing.js';
export const rebalanceRunLabels: Record<RebalanceRun['state'], string> = {
running: 'In progress', stopping: 'Stopping', done: 'Finished', stopped: 'Stopped', failed: 'Needs attention'
};
export const rebalanceMoveLabels: Record<RebalanceMove['state'], string> = {
planned: 'Not started', moving: 'Moving', done: 'Completed', skipped: 'Skipped', failed: 'Needs attention'
};
export function rebalanceRunHref(id: string) { return `/capacity?rebalance=1&rebalanceRun=${encodeURIComponent(id)}`; }