Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-max-concurrent-instances #294

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 46 additions & 10 deletions docs/project-structure/genezio-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,18 @@ If scripts are declared in the `scripts` field, they will be executed from this

Note: Setting this value to 1 disables concurrent requests served within the same execution environment. In this case, 2 or more incoming concurrent requests will be automatically distributed across separate execution environments, which are scaled up dynamically by Genezio.

- `maxConcurrentInstances`: `number` **Optional**

Specifies the number of concurrent instances that can be served simultaneously for a class.
The default value for this setting is 3 concurrent instances per class.

To increase the maximum value up to 10 concurrent instances, you [can upgrade to a Pro Subscription](https://app.genez.io/billing).
Afterwards, you can adjust this in increments of 1 up to a maximum value of 10 concurrent instances per class.

For larger values, [contact us](mailto:contact@genez.io).

Note: Setting this value to 1 disables concurrent instances served. In this case, your class will open only one instance. Any traffic trying to access the instance when it has reached the maximum number of concurrent requests will be dropped. THIS IS NOT RECOMMENDED.

- `cooldownTime`: `number` **Optional**

Specifies the time in milliseconds that the execution environment will be kept alive after the response is sent.
Expand Down Expand Up @@ -483,6 +495,18 @@ This resource exposes `url` as an output expression: `${{backend.functions.<func

Note: Setting this value to 1 disables concurrent requests served within the same execution environment. In this case, 2 or more incoming concurrent requests will be automatically distributed across separate execution environments, which are scaled up dynamically by Genezio.

- `maxConcurrentInstances`: `number` **Optional**

Specifies the number of concurrent instances that can be served simultaneously for a function.
The default value for this setting is 3 concurrent instances per function.

To increase the maximum value up to 10 concurrent instances, you [can upgrade to a Pro Subscription](https://app.genez.io/billing).
Afterwards, you can adjust this in increments of 1 up to a maximum value of 10 concurrent instances per function.

For larger values, [contact us](mailto:contact@genez.io).

Note: Setting this value to 1 disables concurrent instances served. In this case, your function will open only one instance. Any traffic trying to access the instance when it has reached the maximum number of concurrent requests will be dropped. THIS IS NOT RECOMMENDED.

- `cooldownTime`: `number` **Optional**

Specifies the time in milliseconds that the execution environment will be kept alive after the response is sent.
Expand Down Expand Up @@ -758,6 +782,18 @@ The Docker container configuration. This field can be omitted if the project is

Note: Setting this value to 1 disables concurrent requests served within the same execution environment. In this case, 2 or more incoming concurrent requests will be automatically distributed across separate execution environments, which are scaled up dynamically by Genezio.

- `maxConcurrentInstances`: `number` **Optional**

Specifies the number of concurrent instances that can be served simultaneously for a container.
The default value for this setting is 3 concurrent instances per container.

To increase the maximum value up to 10 concurrent instances, you [can upgrade to a Pro Subscription](https://app.genez.io/billing).
Afterwards, you can adjust this in increments of 1 up to a maximum value of 10 concurrent instances per container.

For larger values, [contact us](mailto:contact@genez.io).

Note: Setting this value to 1 disables concurrent instances served. In this case, your container will open only one instance. Any traffic trying to access the instance when it has reached the maximum number of concurrent requests will be dropped. THIS IS NOT RECOMMENDED.

- `cooldownTime`: `number` **Optional**

Specifies the time in milliseconds that the execution environment will be kept alive after the response is sent.
Expand Down Expand Up @@ -822,16 +858,16 @@ region: us-east-1
yamlVersion: 2
# Configuration specific to the Next.js project setup.
nextjs:
# The path where the Next.js project is located.
path: .
# The package manager to be used for this project (npm, yarn, etc.)
packageManager: npm
# Custom scripts to be run during deployment, e.g., installing dependencies.
scripts:
deploy:
- npm install
# The subdomain that will be associated with this Next.js application.
subdomain: my-nextjs-app
# The path where the Next.js project is located.
path: .
# The package manager to be used for this project (npm, yarn, etc.)
packageManager: npm
# Custom scripts to be run during deployment, e.g., installing dependencies.
scripts:
deploy:
- npm install
# The subdomain that will be associated with this Next.js application.
subdomain: my-nextjs-app
```

## Expressions
Expand Down
Loading