Improve cluster allocation strategy.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user