How joaovitormoreirapassos/horizontal-elasticity works
Main Components Identification
First, let's identify the key components visible in the file structure:
• Frontend (served through Nginx)
• Proxy service
• Passer service
• Server service
• Autoscaler service
• Load testing component (Locust)
• Monitoring (Prometheus)
Component Relationships
Use the following conventions:
• Double lines for data streaming
• Blue: User-facing components (Nginx)
• Green: Core services (Proxy, Passer, Server)
• Orange: Infrastructure services (Autoscaler)
• Gray: Monitoring and testing tools
Detailed Component Specifications
For each component, include:
• Container name
• Port number (if applicable)
• Primary function
• Key dependencies (from requirements.txt files)
Infrastructure Details
Show:
• Docker container boundaries
• Network connections between services
• Scaling capabilities (especially for the server component)
Specific Elements
a) Client Interaction:
Browser -> Nginx (Port 8000) -> Proxy
b) Core Processing Flow:
Proxy -> Passer -> Server (Matrix Multiplication)
c) Infrastructure Management:
Autoscaler -> Server (scaling operations)
Prometheus -> All Services (monitoring)