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
+3 -3
View File
@@ -254,7 +254,7 @@ export interface ClusterPoolPublic {
id: string;
name: string;
description?: string;
strategy: 'least-apps' | 'round-robin' | 'weighted-resource';
strategy: 'least-apps' | 'round-robin' | 'weighted-round-robin' | 'least-loaded' | 'weighted-resource' | 'region-based';
clusterIds: string[];
isActive: boolean;
isDefault: boolean;
@@ -266,7 +266,7 @@ export interface ClusterPool {
id: string;
name: string;
description?: string;
strategy: 'least-apps' | 'round-robin' | 'weighted-resource';
strategy: 'least-apps' | 'round-robin' | 'weighted-round-robin' | 'least-loaded' | 'weighted-resource' | 'region-based';
clusterIds: string[];
isActive: boolean;
isDefault: boolean;
@@ -295,7 +295,7 @@ export interface ClusterAllocationLog {
userId: string;
poolId?: string;
selectedClusterId?: string;
strategy: 'least-apps' | 'round-robin' | 'weighted-resource';
strategy: 'least-apps' | 'round-robin' | 'weighted-round-robin' | 'least-loaded' | 'weighted-resource' | 'region-based';
estimatedRequest?: Record<string, any>;
candidateScores?: Record<string, any>[];
rejectionReasons?: Record<string, any>[];