How a warm pool works
Amazon EC2 Auto Scaling has a feature with this name for EC2 instances. AWS Lambda uses provisioned concurrency for execution environments that are ready in advance. A request that gets a pooled sandbox skips the cold start. If the pool runs out, the request waits for a cold start.
Who pays for the idle capacity
A warm pool costs money while it waits. AWS bills stopped instances only for their volumes and addresses. You pay for an instance only while it runs. Lambda bills provisioned concurrency while it is configured. It runs continually and bills apart from the requests.
Snapshots as another way
A snapshot keeps a saved state. A sandbox restored from a snapshot skips setup that already ran. A snapshot does not run while it waits, so its cost is the storage it uses.
What to check
- How many sandboxes the pool keeps ready, and the minimum it keeps.
- Whether pooled sandboxes are stopped or running. AWS discourages running pooled instances, because it costs more.
- The cost of the pool when no request comes.
- How long a request waits when the pool is empty.