feat: add vmid allocator schema

This commit is contained in:
Philipp
2026-06-10 15:51:39 +02:00
parent 0e9295c1c8
commit ce1889b8ef
4 changed files with 84 additions and 0 deletions
+6
View File
@@ -54,6 +54,11 @@ Arbeitsliste auf Basis von `proxmox-console-entwicklungsplan.md`. Die Entwurfsda
- [x] VMs referenzieren eindeutig Projekt und Cluster
- [x] Unique-Index auf `(cluster_id, proxmox_vmid)` gesetzt
- [x] Ressourcen- und Pflichtfeld-Checks gesetzt
- [x] E2-T06: VMID-Allokator
- [x] Clusterweite Allocator-Tabelle angelegt
- [x] VMID-Reservationen vor Proxmox-Calls modelliert
- [x] Transaktionssichere Funktion `reserve_next_vmid(cluster_id)` mit `SELECT ... FOR UPDATE` angelegt
- [x] Concurrency-Test mit 50 parallelen Reservierungen lokal verifiziert
## MVP-Backlog
@@ -97,3 +102,4 @@ Arbeitsliste auf Basis von `proxmox-console-entwicklungsplan.md`. Die Entwurfsda
- 2026-06-10: Projekte-und-Quotas-Migration `0003_projects_and_quotas` angelegt und lokal gegen Supabase verifiziert.
- 2026-06-10: Cluster-Migration `0004_clusters` angelegt und lokal gegen Supabase verifiziert.
- 2026-06-10: VMs-und-SSH-Keys-Migration `0005_vms_and_ssh_keys` angelegt und lokal gegen Supabase verifiziert.
- 2026-06-10: VMID-Allokator-Migration `0006_vmid_allocator` angelegt und mit 50 parallelen Reservierungen lokal gegen Supabase verifiziert.