refactor: remove legacy GPU services, keep latest aitbc-multimodal-gpu.service
GPU Services Cleanup - Complete: ✅ LEGACY GPU SERVICES REMOVED: Cleaned up old GPU services, kept latest implementation - systemd/aitbc-gpu-miner.service: Removed (legacy simple mining client) - systemd/aitbc-gpu-multimodal.service: Removed (intermediate version) - systemd/aitbc-gpu-registry.service: Removed (demo service) - systemd/aitbc-multimodal-gpu.service: Kept (latest advanced implementation) ✅ SERVICE DIRECTORIES CLEANED: 🗑️ aitbc-gpu-miner.service.d: Removed configuration directory 🗑️ aitbc-gpu-multimodal.service.d: Removed configuration directory 🗑️ aitbc-gpu-registry.service.d: Removed configuration directory 📁 aitbc-multimodal-gpu.service: Preserved with all configuration ✅ LATEST SERVICE ADVANTAGES: 🔧 aitbc-multimodal-gpu.service: Most advanced GPU service 👤 Standard User: Uses 'aitbc' user instead of 'debian' 📁 Standard Paths: Uses /opt/aitbc/ instead of /home/debian/ 🎯 Module Structure: Proper Python module organization 🔒 Security: Comprehensive security settings and resource limits 📊 Integration: Proper coordinator API integration 📚 Documentation: Has proper documentation reference ✅ REMOVED SERVICES ANALYSIS: ❌ aitbc-gpu-miner.service: Basic mining client, non-standard paths ❌ aitbc-gpu-multimodal.service: Intermediate version, mixed paths ❌ aitbc-gpu-registry.service: Demo service, limited functionality ✅ aitbc-multimodal-gpu.service: Production-ready, standard configuration ✅ DOCUMENTATION UPDATED: 📚 Enhanced Services Guide: Updated references to use aitbc-multimodal-gpu 📝 Service Names: Changed aitbc-gpu-multimodal to aitbc-multimodal-gpu 🔧 Systemctl Commands: Updated service references 📋 Management Scripts: Updated log commands ✅ CLEANUP BENEFITS: ✅ Single GPU Service: One clear GPU service to manage ✅ No Confusion: No multiple similar GPU services ✅ Standard Configuration: Uses AITBC standards ✅ Better Maintenance: Only one GPU service to maintain ✅ Clear Documentation: References updated to latest service ✅ REMAINING GPU INFRASTRUCTURE: 🔧 aitbc-multimodal-gpu.service: Main GPU service (port 8011) 📁 apps/coordinator-api/src/app/services/gpu_multimodal_app.py: Service implementation 🎯 CUDA Integration: Proper GPU access controls 📊 Resource Management: Memory and CPU limits configured RESULT: Successfully removed legacy GPU services and kept the latest aitbc-multimodal-gpu.service, providing a clean, single GPU service with proper configuration and updated documentation references.
This commit is contained in:
@@ -119,7 +119,7 @@ cd /opt/aitbc/apps/coordinator-api
|
|||||||
|
|
||||||
# Check individual service logs
|
# Check individual service logs
|
||||||
./manage_services.sh logs aitbc-multimodal
|
./manage_services.sh logs aitbc-multimodal
|
||||||
./manage_services.sh logs aitbc-gpu-multimodal
|
./manage_services.sh logs aitbc-multimodal-gpu
|
||||||
```
|
```
|
||||||
|
|
||||||
## 📊 Service Details
|
## 📊 Service Details
|
||||||
@@ -197,7 +197,7 @@ curl -X POST http://localhost:8011/process \
|
|||||||
./manage_services.sh status
|
./manage_services.sh status
|
||||||
|
|
||||||
# View service logs
|
# View service logs
|
||||||
./manage_services.sh logs aitbc-gpu-multimodal
|
./manage_services.sh logs aitbc-multimodal-gpu
|
||||||
|
|
||||||
# Enable auto-start
|
# Enable auto-start
|
||||||
./manage_services.sh enable
|
./manage_services.sh enable
|
||||||
@@ -234,10 +234,10 @@ df -h
|
|||||||
systemctl status aitbc-multimodal.service
|
systemctl status aitbc-multimodal.service
|
||||||
|
|
||||||
# Audit service logs
|
# Audit service logs
|
||||||
sudo journalctl -u aitbc-multimodal.service --since "1 hour ago"
|
sudo journalctl -u aitbc-multimodal-gpu.service --since "1 hour ago"
|
||||||
|
|
||||||
# Monitor resource usage
|
# Monitor resource usage
|
||||||
systemctl status aitbc-gpu-multimodal.service --no-pager
|
systemctl status aitbc-multimodal-gpu.service --no-pager
|
||||||
```
|
```
|
||||||
|
|
||||||
## 🐛 Troubleshooting
|
## 🐛 Troubleshooting
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=AITBC GPU Miner Client
|
|
||||||
After=network.target
|
|
||||||
Wants=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=debian
|
|
||||||
Group=debian
|
|
||||||
WorkingDirectory=/home/debian/aitbc
|
|
||||||
Environment=PYTHONPATH=/home/debian/aitbc
|
|
||||||
ExecStart=/usr/bin/python3 /home/debian/aitbc/gpu_miner_simple.py
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=30
|
|
||||||
StartLimitInterval=300
|
|
||||||
StartLimitBurst=5
|
|
||||||
StandardOutput=journal
|
|
||||||
StandardError=journal
|
|
||||||
SyslogIdentifier=aitbc-gpu-miner
|
|
||||||
|
|
||||||
# Security settings
|
|
||||||
NoNewPrivileges=true
|
|
||||||
PrivateTmp=true
|
|
||||||
ProtectSystem=strict
|
|
||||||
ReadWritePaths=/home/debian/aitbc
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[Service]
|
|
||||||
EnvironmentFile=/opt/aitbc/.env
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=AITBC GPU Multi-Modal Processing Service
|
|
||||||
After=network.target aitbc-coordinator-api.service
|
|
||||||
Wants=aitbc-coordinator-api.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=debian
|
|
||||||
Group=debian
|
|
||||||
WorkingDirectory=/home/oib/aitbc/apps/coordinator-api
|
|
||||||
Environment=PATH=/usr/bin
|
|
||||||
Environment=CUDA_VISIBLE_DEVICES=0
|
|
||||||
ExecStart=/usr/bin/python3 -m uvicorn src.app.services.gpu_multimodal_app:app --host 127.0.0.1 --port 8003
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
KillMode=mixed
|
|
||||||
TimeoutStopSec=5
|
|
||||||
PrivateTmp=true
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=10
|
|
||||||
|
|
||||||
# Logging
|
|
||||||
StandardOutput=journal
|
|
||||||
StandardError=journal
|
|
||||||
SyslogIdentifier=aitbc-gpu-multimodal
|
|
||||||
|
|
||||||
# Security
|
|
||||||
NoNewPrivileges=true
|
|
||||||
ProtectSystem=strict
|
|
||||||
ProtectHome=true
|
|
||||||
ReadWritePaths=/home/oib/aitbc/apps/coordinator-api
|
|
||||||
|
|
||||||
# GPU Access
|
|
||||||
DeviceAllow=/dev/nvidia0 rwm
|
|
||||||
DevicePolicy=auto
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[Service]
|
|
||||||
EnvironmentFile=/opt/aitbc/.env
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=AITBC GPU Registry Demo
|
|
||||||
After=network.target
|
|
||||||
Wants=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=aitbc
|
|
||||||
Group=aitbc
|
|
||||||
WorkingDirectory=/opt/aitbc/apps/gpu-miner
|
|
||||||
Environment=PATH=/usr/bin
|
|
||||||
Environment=PYTHONPATH=/opt/aitbc/apps/gpu-miner
|
|
||||||
ExecStart=/usr/bin/python3 /opt/aitbc/dev/gpu/gpu_registry_demo.py
|
|
||||||
Restart=always
|
|
||||||
RestartSec=10
|
|
||||||
StandardOutput=journal
|
|
||||||
StandardError=journal
|
|
||||||
SyslogIdentifier=aitbc-gpu-registry
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Reference in New Issue
Block a user