You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NPU Multi-Worker Load Balancing & Pool Management #168
Activity
mrveiss commentedon Feb 5, 2026
Design Complete ✅
Comprehensive design document created and approved:
docs/plans/2026-02-05-npu-worker-pool-design.mdDesign Summary
Architecture: Extends existing
NPUWorkerClientandNPUTaskQueuepattern with transparent multi-worker supportKey Features:
/api/npu/pool/reloadPerformance Targets:
Implementation Phases
Next Steps
Ready to proceed with implementation using:
Commit:
17b3b086Design document: 2026-02-05-npu-worker-pool-design.md
feat(npu): add CircuitState enum and WorkerState dataclass (#168)
docs(planning): add NPU multi-worker pool design (#168)
feat(npu): add load_worker_config for YAML parsing (#168)
feat(npu): add NPUWorkerPool class initialization (#168)
feat(npu): add worker selection algorithm (#168)
feat(npu): add health check method for workers (#168)
feat(npu): add circuit breaker logic (#168)
feat(npu): add background health monitor (#168)
feat(npu): add task execution with retry and failover (#168)
feat(npu): add get_npu_pool() singleton function (#168)
feat(npu): add pool management API endpoints (#168)
test(npu): add integration tests for worker pool (#168)
docs(npu): add NPU worker pool API documentation (#168)
mrveiss commentedon Feb 6, 2026
Implementation Complete ✅
NPU Multi-Worker Load Balancing & Pool Management has been fully implemented on the
Dev_new_guibranch.Summary
All 12 implementation tasks completed:
Test Coverage
43 tests passing:
tests/test_npu_worker_pool.pytests/integration/test_npu_pool_integration.pyKey Files
New/Modified:
src/npu_integration.py- Core pool implementation with CircuitState, WorkerState, NPUWorkerPoolbackend/api/npu_workers.py- Pool management API endpointsdocs/api/npu-worker-pool.md- Complete API documentationdocs/plans/2026-02-05-npu-worker-pool-implementation.md- Implementation planAPI Endpoints Added
/api/npu/pool/stats/api/npu/pool/workers/api/npu/pool/reloadFeatures Implemented
Performance Targets Met
Branch:
Dev_new_guiPR: #787 (closed - will merge when Dev_new_gui reconciles with main)