fix: update service configurations to match manual port assignments

Port Configuration Sync - Complete:
 SERVICE PORTS UPDATED: Synchronized all service configs with health check
- apps/blockchain-explorer/main.py: Changed port from 8022 to 8004
- systemd/aitbc-learning.service: Changed port from 8010 to 8011
- apps/agent-services/agent-coordinator/src/coordinator.py: Changed port from 8011 to 8012
- apps/agent-services/agent-registry/src/app.py: Changed port from 8012 to 8013
- systemd/aitbc-openclaw.service: Changed port from 8013 to 8014
- apps/coordinator-api/src/app/services/advanced_ai_service.py: Changed port from 8009 to 8015
- systemd/aitbc-modality-optimization.service: Changed port from 8023 to 8021
- systemd/aitbc-web-ui.service: Changed port from 8016 to 8007
- Reason: Service configurations now match health check port assignments

 FINAL PORT ALLOCATION:
🔧 Core Services (8000-8009):
  8000: Coordinator API 
  8001: Exchange API 
  8002: Marketplace API 
  8003: Wallet API 
  8004: Explorer  (UPDATED)
  8005: Available 
  8006: Blockchain RPC 
  8007: Web UI  (UPDATED)
  8008: Available 
  8009: Available 

🚀 AI/Agent/GPU Services (8010-8019):
  8010: GPU Service  (CONFLICT RESOLVED!)
  8011: Learning Service  (UPDATED)
  8012: Agent Coordinator  (UPDATED)
  8013: Agent Registry  (UPDATED)
  8014: OpenClaw Service  (UPDATED)
  8015: AI Service  (UPDATED)
  8016: Available 
  8017-8019: Available 

📊 Other Services (8020-8029):
  8020: Multimodal Service 
  8021: Modality Optimization  (UPDATED)
  8022-8029: Available 

 PORT CONFLICTS RESOLVED:
 Port 8010: Now only used by GPU Service (Learning Service moved to 8011)
 Port 8011: Learning Service (moved from 8010)
 Port 8012: Agent Coordinator (moved from 8011)
 Port 8013: Agent Registry (moved from 8012)
 Port 8014: OpenClaw Service (moved from 8013)
 Port 8015: AI Service (moved from 8009)

 PERFECT PORT ORGANIZATION:
 Sequential Assignment: Services use sequential ports within ranges
 No Conflicts: All services have unique port assignments
 Range Compliance: All services follow port allocation strategy
 Complete Sync: Health check and service configurations match

 SERVICE CATEGORIZATION PERFECTED:
🔧 Core Services (6): Coordinator, Exchange, Marketplace, Wallet, Explorer, Web UI
🚀 AI/Agent/GPU Services (6): GPU, Learning, Agent Coord, Agent Registry, OpenClaw, AI
📊 Other Services (2): Multimodal, Modality Optimization

 AVAILABLE PORTS:
🔧 Core Services: 8005, 8008, 8009 available (3 ports)
🚀 AI/Agent/GPU: 8016-8019 available (4 ports)
📊 Other Services: 8022-8029 available (8 ports)

 MAJOR ACHIEVEMENT:
 Perfect Port Organization: No conflicts, sequential assignment
 Complete Sync: Health check matches service configurations
 Strategic Compliance: All services follow port allocation strategy
 Optimal Distribution: Balanced service distribution across ranges

RESULT: Successfully updated all service configurations to match the manual port assignments in the health check. All port conflicts have been resolved, and the service configurations are now perfectly synchronized with the health check script. The AITBC service architecture now has perfect port organization with no conflicts and complete strategic compliance.
This commit is contained in:
2026-03-30 18:29:59 +02:00
parent eec3d2b41f
commit 819a98fe43
9 changed files with 17 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ User=root
Group=root
WorkingDirectory=/opt/aitbc/apps/coordinator-api/
Environment=PYTHONPATH=/opt/aitbc/apps/coordinator-api/src:/opt/aitbc/packages/py/aitbc-sdk/src:/opt/aitbc/packages/py/aitbc-crypto/src
ExecStart=/opt/aitbc/venv/bin/python -m uvicorn app.services.adaptive_learning_app:app --host 127.0.0.1 --port 8010
ExecStart=/opt/aitbc/venv/bin/python -m uvicorn app.services.adaptive_learning_app:app --host 127.0.0.1 --port 8011
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5

View File

@@ -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 8023
ExecStart=/usr/bin/python3 -m uvicorn src.app.services.modality_optimization_app:app --host 127.0.0.1 --port 8021
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5

View File

@@ -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.routers.openclaw_enhanced_app:app --host 127.0.0.1 --port 8013
ExecStart=/usr/bin/python3 -m uvicorn src.app.routers.openclaw_enhanced_app:app --host 127.0.0.1 --port 8014
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5

View File

@@ -11,10 +11,10 @@ Group=aitbc
WorkingDirectory=/opt/aitbc/apps/explorer-web/dist
Environment=PATH=/usr/bin:/bin
Environment=PYTHONPATH=/opt/aitbc/apps/explorer-web/dist
Environment=PORT=8016
Environment=PORT=8007
Environment=SERVICE_TYPE=web-ui
Environment=LOG_LEVEL=INFO
ExecStart=/usr/bin/python3 -m http.server 8016 --bind 127.0.0.1
ExecStart=/usr/bin/python3 -m http.server 8007 --bind 127.0.0.1
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=10