Back

What's the appwrite function container alive time?

  • 0
  • Functions
Daniel
19 Nov, 2024, 23:18

To be more specific, Functions have a cold start which means that the first time they are executed, They take some time to execute in contrast with the subsequent executions. But after some time the container is put to sleep/hibernation ? So what's the default time ?

TL;DR
The appwrite function container's default alive time is between 60 seconds and 1 hour. It has a cold start when first executed, taking more time initially, compared to subsequent executions. There is an option to increase the sleep interval by configuring the environment variable ```_APP_FUNCTIONS_INACTIVE_THRESHOLD``` (default set to 60 seconds).
D5
19 Nov, 2024, 23:35

From what I understand, between 60s and 1h.

You can configure the env variable: https://appwrite.io/docs/advanced/self-hosting/environment-variables#functions

_APP_FUNCTIONS_INACTIVE_THRESHOLD (default 60s) In order to increase the sleep interval

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more