Skip to content

Commit de7ed9b

Browse files
authored
Merge pull request #141 from hparra/patch-1
Update warm container TTL
2 parents 94cf7f3 + f2f082c commit de7ed9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/guides/using/throughput_tuning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ aio rt:action:create actionName fileName.js -c 100
1212
```
1313

1414
Some considerations to keep in mind:
15-
1. A container is kept warm after an invocation finished for 10 minutes. This means that for 10 minutes you can be 99% you don't get cold-starts when executing the same action
15+
1. A container is kept warm after an invocation finished for 5 minutes. This means that for 5 minutes you can be 99% you don't get cold-starts when executing the same action
1616
2. Depending on how much memory/resources your action consumes, you can use a smaller or a higher value. A good average number to start with is `200`. You should experiment to make sure the value you choose is working
1717
3. Make sure that your code is working when being executed in parallel. Using global variables to store values that are different between invocations is a recipe for disaster
1818
4. If your Action works on some large data that is not different between invocations, then using a global variable can maximize the chances that the next execution can reuse it. However your code should handle the situation where the variable is not initialized

0 commit comments

Comments
 (0)