Skip to content

Configure the "destroy idle containers" behaviour #2018

@Ovski4

Description

@Ovski4

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

No one assigned

    Labels

    type: featureNew feature, or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions