mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-01 17:17:24 -04:00
Update deployment documentation files: - docker-deployment.md: Update git clone URL, Docker image references (ghcr.io/xe138/ai-trader to ghcr.io/xe138/ai-trader-server), and container/service names (ai-trader to ai-trader-server) - monitoring.md: Update container names in all docker commands - scaling.md: Update multi-instance service names and Docker image references All deployment examples now use ai-trader-server naming. Part of Phase 3: Developer & Deployment Documentation
47 lines
824 B
Markdown
47 lines
824 B
Markdown
# Scaling
|
|
|
|
Running multiple instances and load balancing.
|
|
|
|
---
|
|
|
|
## Current Limitations
|
|
|
|
- Maximum 1 concurrent job per instance
|
|
- No built-in load balancing
|
|
- Single SQLite database per instance
|
|
|
|
---
|
|
|
|
## Multi-Instance Deployment
|
|
|
|
For parallel simulations, deploy multiple instances:
|
|
|
|
```yaml
|
|
# docker-compose.yml
|
|
services:
|
|
ai-trader-server-1:
|
|
image: ghcr.io/xe138/ai-trader-server:latest
|
|
ports:
|
|
- "8081:8080"
|
|
volumes:
|
|
- ./data1:/app/data
|
|
|
|
ai-trader-server-2:
|
|
image: ghcr.io/xe138/ai-trader-server:latest
|
|
ports:
|
|
- "8082:8080"
|
|
volumes:
|
|
- ./data2:/app/data
|
|
```
|
|
|
|
**Note:** Each instance needs separate database and data volumes.
|
|
|
|
---
|
|
|
|
## Load Balancing (Future)
|
|
|
|
Planned for v0.4.0:
|
|
- Shared PostgreSQL database
|
|
- Job queue with multiple workers
|
|
- Horizontal scaling support
|