pub fn http_backoff() -> ExponentialBackoffExpand description
Create exponential backoff configuration for HTTP API retries.
HTTP API calls (e.g., bindcar sidecar) use faster retry cycles than Kubernetes API since they target local/nearby services that should fail fast.
§Configuration
- Initial interval: 50ms
- Max interval: 10 seconds
- Max elapsed time: 2 minutes total
- Multiplier: 2.0 (exponential growth)
- Randomization: ±10% (prevents thundering herd)
§Retry Schedule
With these settings, retries occur at approximately:
- 50ms
- 100ms
- 200ms
- 400ms
- 800ms
- 1.6s
- 3.2s
- 6.4s
- 10s (capped at max interval) 10-12. 10s intervals until 2 minutes elapsed
§Returns
Configured ExponentialBackoff instance