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

[Task] Define the env app min and max scaling values #421

Open
1 task done
taorepoara opened this issue Sep 7, 2023 · 0 comments
Open
1 task done

[Task] Define the env app min and max scaling values #421

taorepoara opened this issue Sep 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@taorepoara
Copy link
Member

What should be done

Define the scale max and min limits for an app environment in order to let the creator keep the control on it and do not have billing surprises.

The default min is 0.

The default max is 5.

Technical recommandation

When the min is defined to 0, the app is scaled to 0 only when the environment stops (all the socket session for this env are closed). It scales to 1 when the env starts. See this PR for more informations: lenra-io/application-runner#358. When the min is higher than 0, the app never scales to 0.

The max can't be lower than 1 nor the min limit.

We'll use the OpenFaaS limits labels to handle this.

The scaling limits are saved in the database.

Ecological concerns

When the user chose to define the min higher than 0, we should warn him.

Is this task linked with any other ?

Linked to lenra-io/application-runner#357

Blocked by:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🟡 Backlog
Development

No branches or pull requests

1 participant