network: add hub registration, Redis persistence, and federated mesh join protocol
Some checks failed
CLI Tests / test-cli (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
API Endpoint Tests / test-api-endpoints (push) Has been cancelled
Systemd Sync / sync-systemd (push) Has been cancelled
Some checks failed
CLI Tests / test-cli (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
API Endpoint Tests / test-api-endpoints (push) Has been cancelled
Systemd Sync / sync-systemd (push) Has been cancelled
- Change default P2P port from 7070 to 8001 in config and .env.example - Add redis_url configuration option for hub persistence (default: redis://localhost:6379) - Implement DNS-based hub registration/unregistration via HTTPS API endpoints - Add Redis persistence for hub registrations with 1-hour TTL - Add island join request/response protocol with member list and blockchain credentials - Add GPU marketplace tracking (offers, bids, providers) in hub manager - Add
This commit is contained in:
@@ -31,7 +31,7 @@ def main():
|
||||
|
||||
# Run the marketplace service
|
||||
import uvicorn
|
||||
uvicorn.run(app, host="0.0.0.0", port=8002)
|
||||
uvicorn.run(app, host="0.0.0.0", port=8007)
|
||||
|
||||
except ImportError as e:
|
||||
logger.error(f"Failed to import marketplace app: {e}")
|
||||
@@ -43,7 +43,7 @@ def main():
|
||||
logger.info("Successfully imported unified marketplace app")
|
||||
|
||||
import uvicorn
|
||||
uvicorn.run(app, host="0.0.0.0", port=8002)
|
||||
uvicorn.run(app, host="0.0.0.0", port=8007)
|
||||
|
||||
except ImportError as e2:
|
||||
logger.error(f"Failed to import unified marketplace: {e2}")
|
||||
@@ -73,8 +73,8 @@ def heartbeat_service():
|
||||
async def root():
|
||||
return {"service": "marketplace", "status": "running", "endpoints": ["/health", "/"]}
|
||||
|
||||
logger.info("Starting simple marketplace API on port 8002")
|
||||
uvicorn.run(app, host="0.0.0.0", port=8002)
|
||||
logger.info("Starting simple marketplace API on port 8007")
|
||||
uvicorn.run(app, host="0.0.0.0", port=8007)
|
||||
|
||||
except ImportError:
|
||||
# Fallback to simple heartbeat
|
||||
|
||||
Reference in New Issue
Block a user