HAProxy Traffic Capture
What You'll Learn
Use Cases
Prerequisites
Part 1: HAProxy Load Balancer Setup
Step 1: Create Project Directory
Step 2: Create HAProxy Configuration
Step 3: Create Backend Service
Step 4: Create Qtap Configuration
Step 5: Create Docker Compose Setup
Part 2: Running and Testing
Step 1: Start the Services
Step 2: Generate Test Traffic
Step 3: View Captured Traffic
Part 3: Advanced Configurations
Configuration 1: Monitor Load Balancing Distribution
Configuration 2: Capture Health Check Failures
Configuration 3: Backend-Specific Capture
Configuration 4: Production Setup with S3
Part 4: Real-World Use Cases
Use Case 1: Debugging Sticky Sessions
Use Case 2: Blue/Green Deployment Monitoring
Use Case 3: API Rate Limiting Detection
Use Case 4: Multi-Datacenter Load Balancing
Understanding HAProxy + Qtap
Dual Capture for Load Balancing
HAProxy-Specific Features
Troubleshooting
Not Seeing HAProxy Traffic?
Seeing Only Health Checks?
Backend Server Down?
Too Much Traffic?
Performance Considerations
HAProxy + Qtap Performance
Scaling Recommendations
HAProxy vs NGINX/Caddy/Traefik
Next Steps
Cleanup
Last updated