File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
sources/platform/actors/development/actor_definition/dynamic_actor_memory Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ This helps:
2626- _ Reduce costs_ for small runs (less memory when it’s not needed).
2727- _ Provide better user experience_ , so users get optimal performance without having to manually configure memory.
2828
29+ For example, the developer of an Actor could define an expression like:
30+
31+ ``` js
32+ min (get (input, ' startUrls.length' , 1 ) * 64 , 4096 )
33+ ```
34+
35+ This expression calculates memory based on the number of URLs provided by the user, making sure that for large inputs the Actor doesn’t exceed 4 GB.
36+
2937:::info Dynamic memory is not runtime auto-scaling.
3038
3139_ This feature does not change memory while the Actor is running._
You can’t perform that action at this time.
0 commit comments