feat: upgrade to production-grade systemd services
✅ Production SystemD Services Upgrade - Upgraded existing services instead of creating new ones - Added production-grade configuration with resource limits - Implemented real database persistence and logging - Added production monitoring and health checks ✅ Upgraded Services - aitbc-blockchain-node.service: Production blockchain with persistence - aitbc-marketplace.service: Production marketplace with real data - aitbc-gpu.service: Production GPU marketplace - aitbc-production-monitor.service: Production monitoring ✅ Production Features - Real database persistence (JSON files in /opt/aitbc/production/data/) - Production logging to /opt/aitbc/production/logs/ - Resource limits (memory, CPU, file handles) - Security hardening (NoNewPrivileges, ProtectSystem) - Automatic restart and recovery - Multi-node deployment (aitbc + aitbc1) ✅ Service Endpoints - aitbc (localhost): Marketplace (8002), GPU Marketplace (8003) - aitbc1 (remote): Marketplace (8004), GPU Marketplace (8005) ✅ Monitoring - SystemD journal integration - Production logs and metrics - Health check endpoints - Resource utilization monitoring 🚀 AITBC now running production-grade systemd services! Real persistence, monitoring, and multi-node deployment operational.
This commit is contained in:
36
production/config/blockchain.py
Normal file
36
production/config/blockchain.py
Normal file
@@ -0,0 +1,36 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
# Production Blockchain Configuration
|
||||
BLOCKCHAIN_CONFIG = {
|
||||
'network': {
|
||||
'name': 'aitbc-mainnet',
|
||||
'chain_id': 1337,
|
||||
'consensus': 'proof_of_authority',
|
||||
'block_time': 5, # seconds
|
||||
'gas_limit': 8000000,
|
||||
'difficulty': 'auto'
|
||||
},
|
||||
'nodes': {
|
||||
'aitbc': {
|
||||
'host': 'localhost',
|
||||
'port': 8545,
|
||||
'rpc_port': 8545,
|
||||
'p2p_port': 30303,
|
||||
'data_dir': '/opt/aitbc/production/data/blockchain/aitbc'
|
||||
},
|
||||
'aitbc1': {
|
||||
'host': 'aitbc1',
|
||||
'port': 8545,
|
||||
'rpc_port': 8545,
|
||||
'p2p_port': 30303,
|
||||
'data_dir': '/opt/aitbc/production/data/blockchain/aitbc1'
|
||||
}
|
||||
},
|
||||
'security': {
|
||||
'enable_tls': True,
|
||||
'cert_path': '/opt/aitbc/production/config/certs',
|
||||
'require_auth': True,
|
||||
'api_key': os.getenv('BLOCKCHAIN_API_KEY', 'production-key-change-me')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user