agent-load-balancer

Solid

Agent skill for load-balancer - invoke with $agent-load-balancer

AI & Automation 57,130 stars 6508 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

--- 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...

Details

Author
ruvnet
Repository
ruvnet/ruflo
Created
12 months ago
Last Updated
today
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category