From d38ba7d07458fe468214c1374af2385ae8c86fbf Mon Sep 17 00:00:00 2001 From: aitbc Date: Mon, 30 Mar 2026 18:19:15 +0200 Subject: [PATCH] fix: move Modality Optimization to correct port range MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Port Range Compliance Fix - Complete: ✅ MODALITY OPTIMIZATION PORT FIXED: Moved to correct Other Services range - systemd/aitbc-modality-optimization.service: Changed port from 8004 to 8023 - setup.sh: Updated health check to use port 8023 for Modality Optimization - Reason: Now follows port allocation strategy (8020-8029 for Other Services) ✅ UPDATED PORT ALLOCATION: 🔧 Core Services (8000-8009): 8000: Coordinator API ✅ 8001: Exchange API ✅ 8003: Wallet API ✅ 8021: Marketplace API ✅ (functionally core, out of range) 8004: Now available ✅ (freed from Modality Optimization) 8005: Available ✅ 8008: Available ✅ 8009: Available ✅ 🚀 AI/Agent/GPU Services (8010-8019): 8010: GPU Service + Learning Service (conflict) ⚠️ 8011: Agent Coordinator ✅ 8012: Agent Registry ✅ 8009: AI Service ✅ 8016: Web UI ✅ 📊 Other Services (8020-8029): 8020: Multimodal Service ✅ 8021: Marketplace API ✅ (functionally core, out of range) 8022: Explorer ✅ 8023: Modality Optimization ✅ (MOVED from 8004) 8007: OpenClaw Service (out of range) ✅ PORT STRATEGY COMPLIANCE: ✅ Port 8023: Modality Optimization now in correct range (8020-8029) ✅ Available Ports: 8004, 8005, 8008, 8009 available in Core Services ✅ Proper Organization: Services follow port allocation strategy ✅ Range Adherence: Other Services now use proper port range ✅ REMAINING PORT ISSUES: ⚠️ Port 8010 Conflict: GPU Service and Learning Service both use port 8010 ⚠️ Port 8007 Out of Range: OpenClaw Service should be moved to 8010-8019 range ⚠️ Port 8021 Out of Range: Marketplace API functionally core but in Other Services range 💭 Port 8004 Available: Could be used for new core service ✅ AVAILABLE PORTS BY RANGE: 🔧 Core Services (8000-8009): 8004, 8005, 8008, 8009 available 🚀 AI/Agent/GPU (8010-8019): 8013-8015, 8017-8019 available 📊 Other Services (8020-8029): 8024-8029 available ✅ SERVICE DISTRIBUTION: 🔧 Core Services (4): Coordinator, Exchange, Wallet, Marketplace 🚀 AI/Agent/GPU Services (6): GPU, Learning, Agent Coord, Agent Registry, AI, Web UI 📊 Other Services (4): Modality Opt, Explorer, Multimodal, OpenClaw RESULT: Successfully moved Modality Optimization from port 8004 to port 8023, complying with the port allocation strategy. Port 8004 is now available in the Core Services range. The Other Services section now properly uses ports in the 8020-8029 range. Port 8010 conflict and OpenClaw port 8007 out of range remain to be resolved. --- setup.sh | 2 +- systemd/aitbc-modality-optimization.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 0389185a..287b310c 100755 --- a/setup.sh +++ b/setup.sh @@ -244,7 +244,7 @@ check_service "Web UI" "http://localhost:8016/health" # Other Services (8020-8029) echo "" echo "📊 Other Services (8020-8029):" -check_service "Modality Optimization" "http://localhost:8004/health" +check_service "Modality Optimization" "http://localhost:8023/health" check_service "Explorer" "http://localhost:8022/health" check_service "Multimodal Service" "http://localhost:8020/health" check_service "OpenClaw Service" "http://localhost:8007/health" diff --git a/systemd/aitbc-modality-optimization.service b/systemd/aitbc-modality-optimization.service index 19f7a8ff..a322d32f 100644 --- a/systemd/aitbc-modality-optimization.service +++ b/systemd/aitbc-modality-optimization.service @@ -9,7 +9,7 @@ User=debian Group=debian WorkingDirectory=/home/oib/aitbc/apps/coordinator-api Environment=PATH=/usr/bin -ExecStart=/usr/bin/python3 -m uvicorn src.app.services.modality_optimization_app:app --host 127.0.0.1 --port 8004 +ExecStart=/usr/bin/python3 -m uvicorn src.app.services.modality_optimization_app:app --host 127.0.0.1 --port 8023 ExecReload=/bin/kill -HUP $MAINPID KillMode=mixed TimeoutStopSec=5