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

Implement proper scaling rules for all container apps #1293

Closed
Tracked by #74
arealmaas opened this issue Oct 14, 2024 · 0 comments
Closed
Tracked by #74

Implement proper scaling rules for all container apps #1293

arealmaas opened this issue Oct 14, 2024 · 0 comments

Comments

@arealmaas
Copy link
Collaborator

arealmaas commented Oct 14, 2024

We can be creative here with what kind of event that will trigger a scale-up using https://keda.sh/

For now, implement CPU/MEM as scaling trigger

Beware of web-api that needs to be one replica until events are solved.

arealmaas added a commit that referenced this issue Oct 16, 2024
<!--- Provide a general summary of your changes in the Title above -->

## Description

- Enable automatic scaling based on CPU and memory for graphql and
web-api (enduser only)
- Setting 70 as the limit, this can be tweaked as we see how the
services behave under load
- Set a max number of 10 revisions for now. We might need to increase
this in yt01

<!--- Describe your changes in detail -->

## Related Issue(s)

- #1293

## Verification

- [ ] **Your** code builds clean without any errors or warnings
- [ ] Manual testing done (required)
- [ ] Relevant automated test added (if you find this hard, leave it and
we'll help out)

## Documentation

- [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
or a separate linked PR in
[altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
applicable)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced dynamic scaling configuration for container apps, allowing
for minimum and maximum replicas and custom scaling based on CPU and
memory utilization.
- **Enhancements**
- Improved deployment flexibility with a centralized scaling parameter
for container apps.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant