Improve cluster allocation strategy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
keyhan
2026-05-18 23:18:50 +03:30
parent 72a1519ea0
commit fda8384a5c
10 changed files with 439 additions and 64 deletions
@@ -179,6 +179,13 @@ export class ApplicationsService {
return this.appsRepository.save(app);
}
async updateClusterAssignment(id: string, clusterId: string, poolId?: string): Promise<Application> {
const app = await this.findOne(id);
app.clusterId = clusterId;
app.poolId = poolId || app.poolId;
return this.appsRepository.save(app);
}
async saveSuspendedReplicas(
id: string,
snapshot: Record<string, number>,