Files
AI-Trader/docs/deployment/scaling.md
Bill 41a369a15e docs: update deployment docs for AI-Trader-Server rebrand
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
2025-11-01 11:58:04 -04:00

824 B

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:

# 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