add support for max number of runners · open-lambda/open-lambda@75acabf · GitHub
Skip to content

Commit 75acabf

Browse files
committed
add support for max number of runners
Now that we support multiple containers of the same handler, we should also have the ability to limit the number of concurrent requests in a container. This degenerates to serial reuse at 1 and 0 allows for unlimited parallel reuse. This takes care of adding and removing from the handler manager at appropriate times. Add when you are the first of the maxRunners to finish and Remove when you are the last of the concurrent runners to start.
1 parent f3b7934 commit 75acabf

2 files changed

Lines changed: 52 additions & 28 deletions

File tree

worker/config/config.go

Lines changed: 2 additions & 0 deletions

worker/handler/handler.go

Lines changed: 50 additions & 28 deletions

0 commit comments

Comments
 (0)