-
Notifications
You must be signed in to change notification settings - Fork 3
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
[minor] Increase Manage sequence caches #223
Merged
Merged
Conversation
This file contains 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
tomklapiscak
changed the title
[patch] (WIP) Increase Manage sequence caches
[patch] Increase Manage sequence caches
Nov 15, 2024
whitfiea
approved these changes
Nov 15, 2024
whitfiea
changed the title
[patch] Increase Manage sequence caches
[minor] Increase Manage sequence caches
Nov 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
https://jsw.ibm.com/browse/MASCORE-3761
Description
Adds Job(s) that run once Manage is configured and healthy that execute into the db2u pods and increase the cache value of sequences created in DB2 by Manage. This is to improve performance when loading large amounts of data into Manage.
A separate Job is created for each DB2 instance reserved for use my Manage. Most likely there will only ever be a single DB2 reserved for use by Manage; i.e. exactly 1 entry in ibm-db2u-databases.yaml with mas_application_id: "manage". But as our config model (in theory) permits more than one, it seems prudent to ensure this post Manage-sync DB2 maintenance Job is executed against all.
Roles permitting pod/exec access are created in the db2 namespaces and bound to a ServiceAccount in the manage namespace. This service account is used by the Job(s) in the Manage namespace to execute the necessary commands on the db2u pod.
Testing
fvtsaastran
cluster:In Manage config ArgoCD app (
masdev.manage.fvtsaastran.fvtsaastran
) manifest:Job and associated sources are successful created, Job executes successfully:
Before Job:
Job runs:
After Job: