-
Notifications
You must be signed in to change notification settings - Fork 100
THREESCALE-8997 Allow defining the pod priority of components via APIManager CR #808
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
Conversation
|
In my opinion, I would pull the priorityClassName from within the each deployment config functions rather than from reconciler. Is systemOptions something we could leverage here to stay consistent? |
305c335 to
cc8bc83
Compare
8cead92 to
e35bbfc
Compare
|
Hello @eguzki , @MStokluska , I'd like provide this PR for Review. I hope it's implemented now, as Eguzki suggested. I will be in PTO from tomorrow, as can't address your comments, but any notes will be appreciated and I can address it at the end of next week. |
|
Hello @eguzki , @MStokluska , just wanted say that it's working for me now (I found annoying issue wher "PriorityClass" had typo (and it was reason of issue). Now - it's tested for apicast-staging (as appears in description validation notes). I will try do more tests, but wanted to ask ask you to review if you will have time.. Thank you |
|
Upgrade procedures are missing. Implemented, as an example, the upgrade for the apicast-staging DC. The others should be done in a similar way valerymo#3 |
585f857 to
2bc908a
Compare
|
Hi @eguzki . Priority Class Name upgrade - implemented. Thank you very much for example. |
bc8ca0e to
928d987
Compare
|
/test test-e2e |
eguzki
left a comment
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.
Missing upgrade for:
- backend-cron
- backend-listener
- backend-worker
928d987 to
6836087
Compare
@eguzki , sorry for delay with addressing the comments (PTO + other ...). DeploymentConfigPriorityClassMutator was added to GenericBackendMutators, it is not right? |
ac572ec to
f519ecd
Compare
f519ecd to
267eb4b
Compare
|
Hello @eguzki , Test done after fix as following
All pods had Priority Class Hope, this is the test of Upgrade, or if it's wrong test, could you please help, how to check. |
|
Hello @eguzki , hope I addressed all your comments. Thank you very much for your comments and help! Hope the testing table now could be completed. Could you please look when will have time. Thank you! |
|
|
|
|
It's implemented now, but problem found in Upgrade - pod rolling update is not working. Please see log bellow |
Fixed. Thank you! |
04be67c to
ec92435
Compare
|
Code Climate has analyzed commit ec92435 and detected 18 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
|
@eguzki After change Priority Class: |
|
Hi guys. Sorry I'm late to the party here but I wonder if there is any value in a single entry that could be applied to all pods, given that we likely wont differentiate between 3scale components themselves in terms of priority and consider it's priority as a whole. wdyt? Also, and I know it's just for example/verification but I don't think we would recommend the use of |
|
|
Thanks Valery. I understand it's used an example but just noting that PriorityClass is reserved for system critical pods so shouldn't be used for user workloads/applications. |
Thank you Laura. Yes agree, also seems to me it's a Big Risk to have option set Default priority on application level for All pods together. Current approach seems to me - safe Yes, I agree, probably system-node-critical is not good for testing example, confusing. I can change it to openshift-user-critical in Validation section, if required. |
|
APIManager CR example updated in validation section. Priority Class changed to |
|
@laurafitzgerald , @eguzki could you please tell if any changes required in current solution. |
eguzki
left a comment
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.
Good Job @valerymo 🎖️
|
Do the honors and merge the PR @valerymo :) |
|
@eguzki , @laurafitzgerald , Thank you very much for your kind help and review! |
WHAT
Jira: https://issues.redhat.com/browse/THREESCALE-8997
Allow defining the pod priority of components via APIManager CR
Added optional priorityClassName definition for following 3scale pods: (testing WIP)
priorityClassNamepriorityClassNamesystem-sphinxApiManager CR example for apicast-staging (see Validation section for CR example for all/other DCs/pods
S3 secret example
Validation
Install 3scale operator
Secret and CR to be installed on separate terminal window.
Secrets & CRs for test
echo ABC |base64Describe pods and see that priorityClassName set
Check similar for other pods