How kanatti/locust-shadow works
Main Components
A. Source Components:
• Production Log Sources
• Log Processing Pipeline
• Minute-Batch Storage (File/S3-based, as seen in the request_provider directory)
B. Core Components:
• Locust Master Node
• Locust Worker Nodes
• Request Providers (File and S3 implementations)
• Shadow Configuration System
C. Target Components:
• Target System (Production Shadow)
• Echo Server (for testing/development)
[Input Layer]
• Production Logs
• Minute Batch Storage (S3/File)
• Configuration Files (yaml)
[Processing Layer]
• Locust Master
• Shadow Configuration
• Request Provider System
• File Provider
• S3 Provider
• Locust Workers
• Strict RPS Control
• Warmup Functionality
[Output Layer]
• Target System
• Monitoring/Metrics
Key Relationships to Highlight
• Data flow from production logs through the minute batch processing
• Relationship between Locust Master and Workers
• Demonstrate how request providers interact with storage systems
• Synchronization mechanism between components
Implementation Details
• Separation between the core locust-shadow package and supporting components
• Warmup functionality as a distinct feature
• Shadow configuration flow
• Demonstrate the minute batch processing pipeline
Technical Notes
• Python-based implementation
• Locust as the core load testing framework
• Support for both file and S3-based request sources
• Distributed architecture with master/worker pattern
• Configuration-driven behavior
Additional Elements
Annotations for:
• Package versions and dependencies
• Configuration file formats
• API endpoints and protocols
• Monitoring points
• Scaling capabilities