- The Mapping Resource
- Automatic Retries
- Canary Releases
- Circuit Breakers
- Cross-Origin Resource Sharing
- Method-based Routing
- Prefix Regex
- Traffic Shadowing
- Developer Portal
- The Ambassador Module
- Gzip Compression
- Host CRD, ACME Support, and External Load Balancer Configuration
- Ingress Controller
- Troubleshooting Ambassador
- Custom Filters
- Deploying to Kubernetes from GitHub
- Knative Serverless Framework
- Prometheus monitoring
- Frequently Asked Questions
Ambassador Edge Stack enables you to control timeouts in several different ways.
timeout_ms is the end-to-end timeout for an entire user-level transaction. It begins after the full incoming request is received up until the full response stream is returned to the client. This timeout includes all retries. By default, this is 3000ms. It can be disabled by setting the value to 0.
idle_timeout_ms controls how long a connection should remain open when no traffic is being sent through the connection.
idle_timeout_ms is distinct from
timeout_ms, as the idle timeout applies on either down or upstream request events and is reset every time an encode/decode event occurrs or data is processed for the stream.
idle_timeout_ms operates on a per-route basis and will overwrite behavior of the
cluster_idle_timeout_ms. If not set, Ambassador Edge Stack will default to the value set by
cluster_idle_timeout_ms. It can be disabled by setting the value to 0.
cluster_idle_timeout_ms controls how long a connection stream will remain open if there are no active requests. This timeout operates based on outgoing requests to upstream services. By default this is set to 30000ms. It can be disabled by setting the value to 0.
connect_timeout_ms sets the connection-level timeout for Ambassador Edge Stack to an upstream service at the network layer. This timeout runs until Ambassador can verify that a TCP connection has been established, including the TLS handshake. This timeout cannot be disabled. The default is 3000ms.
listener_idle_timeout_ms controls how long a connection stream will remain open if there are no active requests. This timeout operates based on incoming requests to the listener. By default, this is set to 30000ms. It can be disabled by setting the value to 0. Caution Disabling this timeout increases the likelihood of stream leaks due to missed FINs in the TCP connection.
The various timeouts are applied to a Mapping resource and can be combined.
---apiVersion: getambassador.io/v2kind: Mappingmetadata:name: quote-backendspec:prefix: /backend/service: quotetimeout_ms: 4000idle_timeout_ms: 500000connect_timeout_ms: 2000