-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
type: featureNew feature, or improvement to an existing featureNew feature, or improvement to an existing feature
Description
Hi,
Would it be ok if it was possible to configure the "destroy idle containers behaviour"?
Running lambdas for the first time is slow. This is not an issue for asynchronous lambdas. However in my case some lambdas gets triggered by http requests and are called synchrously. http requests time out before the lambda gets bootstrapped and run for the first time.
When developing I'm not reloading pages every 10 minutes to keep lambda containers alive.
A few options I can think of:
- set the value of MAX_CONTAINER_IDLE_TIME_MS from an environment variable
- have another variable like DESTROY_IDLE_LAMBDAS that could be set to false and defaulted to true
What do you think? I would be happy to work on a PR for it
Metadata
Metadata
Assignees
Labels
type: featureNew feature, or improvement to an existing featureNew feature, or improvement to an existing feature