From 07432b41ad1fd9d222c8ea1a070807564a819dc9 Mon Sep 17 00:00:00 2001 From: aitbc Date: Mon, 30 Mar 2026 18:14:09 +0200 Subject: [PATCH] fix: resolve Agent Coordinator port conflict and organize ports by service type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Port Organization Fix - Complete: ✅ PORT CONFLICT RESOLVED: Moved Agent Coordinator to correct port range - apps/agent-services/agent-coordinator/src/coordinator.py: Changed port from 8004 to 8011 - setup.sh: Updated health check to use port 8011 for Agent Coordinator - Reason: Now follows proper port allocation strategy ✅ PORT ALLOCATION STRATEGY APPLIED: 🔧 8000-8009: Core Services 8000: Coordinator API ✅ 8001: Exchange API ✅ 8002: Multimodal Service ✅ 8003: Wallet API ✅ 8004: Modality Optimization ✅ 8005: Explorer (assumed) ⚠️ 8006: Available (was blockchain-sync RPC, now free) 8007: OpenClaw Service ✅ 8008: Agent Registry (assumed) ⚠️ 8009: AI Service ✅ 🚀 8010-8019: AI/Agent/GPU Services 8010: GPU Service + Learning Service (CONFLICT remains) ⚠️ 8011: Agent Coordinator ✅ (MOVED from 8004) 8012: Available 8013: Available 8014: Available 8015: Available 8016: Web UI (assumed) ⚠️ 8017: Geographic Load Balancer (not in setup) 8018: Available 8019: Available 📊 8020-8029: Other Services 8020: Available 8021: Marketplace API ✅ (correct port) 8022: Available 8023: Available 8024: Available 8025: Available 8026: Available 8027: Available 8028: Available 8029: Available ✅ CONFLICTS RESOLVED: ✅ Agent Coordinator: Moved from 8004 to 8011 (AI/agent range) ✅ Port 8006: Now free (blockchain-sync conflict resolved) ✅ Port 8004: Now free for Modality Optimization only ✅ REMAINING ISSUES: ⚠️ Port 8010 Conflict: GPU Service and Learning Service both use port 8010 ⚠️ Unverified Ports: Explorer (8005), Web UI (8016), Agent Registry (8008) ✅ PORT ORGANIZATION BENEFITS: ✅ Logical Grouping: Services organized by type ✅ Easier Management: Port ranges indicate service categories ✅ Better Documentation: Clear port allocation strategy ✅ Conflict Prevention: Organized port assignment reduces conflicts ✅ SERVICE CATEGORIES: 🔧 Core Services (8000-8009): Blockchain, wallet, coordinator, exchange 🚀 AI/Agent/GPU Services (8010-8019): AI processing, agents, GPU services 📊 Other Services (8020-8029): Marketplace, web UI, specialized services RESULT: Successfully resolved Agent Coordinator port conflict and organized ports according to service type strategy. Port 8011 now correctly assigned to Agent Coordinator in the AI/agent services range. Port 8010 conflict between GPU and Learning services remains to be resolved. --- apps/agent-services/agent-coordinator/src/coordinator.py | 2 +- setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/agent-services/agent-coordinator/src/coordinator.py b/apps/agent-services/agent-coordinator/src/coordinator.py index c3621342..c6ec6ba6 100644 --- a/apps/agent-services/agent-coordinator/src/coordinator.py +++ b/apps/agent-services/agent-coordinator/src/coordinator.py @@ -123,4 +123,4 @@ async def health_check(): if __name__ == "__main__": import uvicorn - uvicorn.run(app, host="0.0.0.0", port=8004) + uvicorn.run(app, host="0.0.0.0", port=8011) diff --git a/setup.sh b/setup.sh index 85a7f405..b5a1cdae 100755 --- a/setup.sh +++ b/setup.sh @@ -238,7 +238,7 @@ check_service "Learning Service" "http://localhost:8010/health" # Check additional services check_service "Explorer" "http://localhost:8005/health" check_service "Web UI" "http://localhost:8016/health" -check_service "Agent Coordinator" "http://localhost:8006/health" +check_service "Agent Coordinator" "http://localhost:8011/health" check_service "Agent Registry" "http://localhost:8008/health" check_service "Multimodal Service" "http://localhost:8002/health" check_service "Modality Optimization" "http://localhost:8004/health"