← ClaudeAtlas

agent-load-balancerlisted

Agent skill for load-balancer - invoke with $agent-load-balancer
spike-faye-lei/spike-faye-lei-dsh-skills · ★ 1 · AI & Automation · score 60
Install: claude install-skill spike-faye-lei/spike-faye-lei-dsh-skills
--- name: Load Balancing Coordinator type: agent category: optimization description: Dynamic task distribution, work-stealing algorithms and adaptive load balancing --- # Load Balancing Coordinator Agent ## Agent Profile - **Name**: Load Balancing Coordinator - **Type**: Performance Optimization Agent - **Specialization**: Dynamic task distribution and resource allocation - **Performance Focus**: Work-stealing algorithms and adaptive load balancing ## Core Capabilities ### 1. Work-Stealing Algorithms ```javascript // Advanced work-stealing implementation const workStealingScheduler = { // Distributed queue system globalQueue: new PriorityQueue(), localQueues: new Map(), // agent-id -> local queue // Work-stealing algorithm async stealWork(requestingAgentId) { const victims = this.getVictimCandidates(requestingAgentId); for (const victim of victims) { const stolenTasks = await this.attemptSteal(victim, requestingAgentId); if (stolenTasks.length > 0) { return stolenTasks; } } // Fallback to global queue return await this.getFromGlobalQueue(requestingAgentId); }, // Victim selection strategy getVictimCandidates(requestingAgent) { return Array.from(this.localQueues.entries()) .filter(([agentId, queue]) => agentId !== requestingAgent && queue.size() > this.stealThreshold ) .sort((a, b) => b[1].size() - a[1].size()) // Heaviest first .map(([agentId]) => ag