-
Notifications
You must be signed in to change notification settings - Fork 346
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
Update Emergency Tier's Priority to 50 #1665
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1665 +/- ##
==========================================
+ Coverage 63.31% 63.78% +0.46%
==========================================
Files 170 181 +11
Lines 14250 16072 +1822
==========================================
+ Hits 9023 10252 +1229
- Misses 4292 4772 +480
- Partials 935 1048 +113
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
I think it would be good to add the rationale for this change in the commit message / PR description.
Also it seems that in case of an Antrea update, the priority for the emergency tier will stay the same (at 5) and not be updated (to 20). Is that acceptable?
apologies i wanted to keep it WIP. im thinking of force update priority to 20 for existing Emergency Tiers. However, that has the inherent issue of it being demoted below other user created CRDs whose priority lies between 6-19. I am wondering if that is acceptable. May need a release note. |
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.
How many tiers in total we support?
Feel something like {50, 100, 150, 200} sounds better, but maybe you want to change all tiers.
Theoretically we can support up to 255. Practically we put a soft limit of 20 Tiers, but this limit of 20 can be relaxed with a single LOC change in validation. Current Tier priorities after this change is as follows:
we could do:
Let me know if you prefer to keep proposal 1 or change to proposal 2. |
Ok. Seems I missed application tier. Any reason we go from 150 to 200 for application tier today? This combination looks easier to understand for me: |
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.
Not a big fan of a change like this, but I guess it can be good to have more evenly-spaced out system tier priorities, and the API is still in alpha.
The PR description also needs update |
/test-all |
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.
Some nits, otherwise LGTM
Maybe @tnqn would like to take a quick look in case he has comments on the userInfo
approach I suggested?
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.
LGTM
/test-all |
This PR updates the priority of Emergency Tier created by Antrea, and set it to 20 as opposed to the intially assigned value of 5.
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.
LGTM
/test-all |
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.
LGTM
This PR updates the priority of Tiers created by Antrea, and space them out evenly. The current Antrea generated Tier priorities do not allow enough room for user defined Tiers to be created, for example Emergency Tier allows only 4 user created Tiers with higher priority. Since it ultimately is up to the users as to which Tiers go atop and the purpose of Antrea created Tiers is mainly that of convenience, we decided to distribute the priorities more evenly across available priority space. For example, setting the priority of the top most Tier of Emergency to a value of 50 gives enough room for admins to create their own Tier hierarchy without having to rely on Antrea created Tiers.
This PR updates the priority of Tiers created by Antrea, and space them out evenly. The current Antrea generated Tier priorities do not allow enough room for user defined Tiers to be created, for example Emergency Tier allows only 4 user created Tiers with higher priority. Since it ultimately is up to the users as to which Tiers go atop and the purpose of Antrea created Tiers is mainly that of convenience, we decided to distribute the priorities more evenly across available priority space. For example, setting the priority of the top most Tier of Emergency to a value of 50 gives enough room for admins to create their own Tier hierarchy without having to rely on Antrea created Tiers.
Summary of change:
NOTE: Existing users of Antrea created Tiers are advised to re-evaluate their Tier hierarchy and take action to recreate any user created Tier resource, such that they continue to be enforced as per user's intention.