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:
@@ -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