generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 138
Add troubleshooting entry for killed processes in MTX #2309
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
29cd760
Add troubleshooting entry for killed processes in MTX
swaldmann beb87e8
Enhance guidance on resource management for MTX
swaldmann 97399e1
Fixes
swaldmann f9674cc
Update index.md
swaldmann 2db8fdf
jsonc
swaldmann 278e763
Merge branch 'main' into troubleshooting-mtx
swaldmann 6416355
Update get-help.md
swaldmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -600,7 +600,41 @@ Do not use a `XS_` prefix. | |||||
|
|
||||||
| ## MTXS | ||||||
|
|
||||||
| ### I get a 401 error when logging in to MTXS through App Router { #mtxs-sidecar-approuter-401} | ||||||
| ### My MTX sidecar is killed with 'Exit status 137' | ||||||
|
|
||||||
| In this case, the process was killed by a `SIGKILL` signal, typically because it exceeded its resource limits, for example memory or CPU, causing the container platform to terminate it. | ||||||
|
|
||||||
| ::: tip Distinguish extensibility and non-extensibility scenarios | ||||||
| While out-of-memory issues are more common, with **extensibility enabled** you’re more likely to run into CPU bottlenecks due to expensive compilations that need to be performed at (MTX) runtime. | ||||||
| ::: | ||||||
|
|
||||||
| MTX uses **four parallel workers** by default to perform tenant upgrades. If your project exceeds a certain complexity threshold, you might run into these resource bottlenecks. We advise you to **follow this algorithm** to mitigate resource overload: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| 1. **Decrease your model complexity**: Ask yourself, is your current domain model a good compression of your business domain? Decreasing complexity here will have positive trickle-down effects, including tenant upgrade performance. | ||||||
| 2. **Increase resources (scale up)**: Increase the RAM assigned to your MTX sidecar or upgrade task. This is typically done in deployment resources like _mta.yaml_ (Cloud Foundry) or _values.yaml_ (Kyma). | ||||||
|
|
||||||
| [Learn more about database upgrade task configuration](../guides/multitenancy/#update-database-schema){.learn-more} | ||||||
|
|
||||||
| ::: info In Cloud Foundry, CPU shares scale with memory | ||||||
| As there is no way to increase CPU independently from memory, your memory configuration might be a bottleneck even if the process is killed due to CPU spikes. | ||||||
| ::: | ||||||
| 3. **Decrease workers in async MTX operations**: When scaling up resources is no longer feasible, you can run with fewer parallel migrations: | ||||||
| ```jsonc | ||||||
| "cds": { | ||||||
| "requires": { | ||||||
| "multitenancy": { | ||||||
| "jobs": { | ||||||
| "workerSize": 3 // default: 4 | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| ``` | ||||||
| > This won't affect application runtime performance. | ||||||
|
|
||||||
| 4. **Increase the number of MTX sidecars (scale out)**: To compensate for eventual performance losses from **3.**, distribute the work across multiple sidecars. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it's more future-proof if we describe what 3. refers too :)
Suggested change
|
||||||
|
|
||||||
| ### I get a 401 error for `cds login` through App Router { #mtxs-sidecar-approuter-401} | ||||||
|
|
||||||
| See [How to configure your App Router](../guides/extensibility/customization#app-router) to verify your setup. | ||||||
| Also check the [documentation about `cds login`](../guides/extensibility/customization#cds-login). | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.