wheels deploy proxy
Configure and manage deployment proxy settings for routing traffic during deployments.
Synopsis
Description
The wheels deploy proxy
command manages proxy configurations for zero-downtime deployments, traffic routing, and load balancing during deployment operations. It handles blue-green deployments, canary releases, and traffic splitting strategies.
Actions
config
- View or update proxy configurationroute
- Manage traffic routing ruleshealth
- Check proxy and backend healthswitch
- Switch traffic between deploymentsrollback
- Revert proxy to previous configurationstatus
- Show current proxy status
Options
--environment, -e
- Target environment (default: production)--strategy
- Deployment strategy (blue-green, canary, rolling)--weight
- Traffic weight percentage for canary deployments--backend
- Backend server or service identifier--health-check
- Health check endpoint--timeout
- Proxy timeout in seconds--sticky-sessions
- Enable session affinity--ssl-redirect
- Force SSL redirect
Deployment Strategies
Blue-Green Deployment
Canary Deployment
Rolling Deployment
Examples
Configure proxy settings
View proxy status
Set up canary deployment
Health check configuration
Traffic Routing Rules
Weight-based routing
Header-based routing
Geographic routing
Proxy Configuration
Load balancing
Session affinity
SSL/TLS settings
Use Cases
Zero-downtime deployment
A/B testing
Gradual rollout
Monitoring
The proxy provides metrics for:
Request count and latency
Error rates
Backend health status
Traffic distribution
Connection pool status
View metrics
Export metrics
Best Practices
Always health check: Configure health checks for all backends
Gradual rollouts: Start with small traffic percentages
Monitor metrics: Watch error rates during transitions
Test rollback: Ensure rollback procedures work
Document rules: Keep routing rules well-documented
Use sticky sessions carefully: They can affect load distribution
SSL everywhere: Always use SSL in production
Troubleshooting
Backend not receiving traffic
High error rates
See Also
Last updated
Was this helpful?