You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lambda Managed Instances run your functions on EC2 instances (managed by AWS) with multi-concurrent invocations. This requires setting up a **capacity provider** - a configuration that defines VPC settings, instance requirements, and scaling parameters for the managed instances.
34
+
35
+
-**Activation**: Detected automatically via the `AWS_LAMBDA_INITIALIZATION_TYPE` environment variable. When this equals `"lambda-managed-instances"`, Bottlecap enters Managed Instance mode
34
36
-**Flush Behavior**:
35
-
- A dedicated background task continuously flushes data at regular intervals (default: 60 seconds)
37
+
- A dedicated background task continuously flushes data at regular intervals (default: 30 seconds)
36
38
- All flushes are **non-blocking** and run concurrently with invocation processing
37
39
- Prevents resource buildup by skipping a flush cycle if the previous flush is still in progress
38
40
-`DD_SERVERLESS_FLUSH_STRATEGY` is **ignored** in this mode
39
41
-**Shutdown Behavior**:
40
42
- Background flusher waits for pending flushes to complete before shutdown
41
43
- Final flush ensures all remaining data is sent before the execution environment terminates
42
-
-**Use case**: High-concurrency Lambda functions with multiple concurrent invocations
44
+
-**Execution Model**: Multi-concurrent invocations where one execution environment handles multiple invocations simultaneously (unlike traditional Lambda's one-invocation-per-environment model)
45
+
-**Use case**: Steady-state, high-volume workloads where optimizing costs with predictable capacity is desired
43
46
-**Key advantage**: Zero flush overhead per invocation - flushing happens independently in the background
47
+
-**Infrastructure**: Lambda launches 3 instances by default for availability zone resiliency when a function version is published to a capacity provider
44
48
45
49
#### On-Demand Mode (Traditional Mode)
46
50
-**Activation**: Default mode for standard Lambda execution (one invocation at a time)
@@ -89,7 +93,7 @@ Bottlecap supports several flush strategies that control when and how observabil
89
93
90
94
| Mode | Strategy | Blocking? | Adapts? | Best For |
0 commit comments