-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fixing #5537: Adding mandatory target annotation and their units. #5629
Conversation
…ry target values As per issue knative#5537, creating this PR for adding mandatory target annotation.
Issue# knative#5537: Update autoscaling-metrics.md to add the mandatory targ…
✅ Deploy Preview for knative ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Welcome @erharjotsingh! It looks like this is your first PR to knative/docs 🎉 |
@@ -32,6 +32,8 @@ For more information about KPA and HPA, see the documentation on [Supported Auto | |||
metadata: | |||
annotations: | |||
autoscaling.knative.dev/metric: "concurrency" | |||
autoscaling.knative.dev/target-utilization-percentage: "70" | |||
#autoscaling.knative.dev/target-utilization-percentage sepcifies a percentage value which when reached autoscaling is performed |
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.
rather than making these types of comments in the yaml (which isn't super easy to read), it might be better to put this info after the yaml block
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.
Hello @psschwei
Many thanks for your feedback. I have performed the suggested changes. Kindly review and thanks again!
Fixing knative#5634: Update home.html to fix title issue with knative
Reverting the commit for other issue so that I can fork one branch per issue
``` | ||
# autoscaling.knative.dev/target-utilization-percentage annotation for "Concurrency" sepcifies a percentage value which when reached autoscaling is performed |
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.
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.
A preview gets built on each commit you add: #5629 (comment) (or you can build locally and preview that way too)
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.
Thanks @psschwei for sharing information about preview feature. Currently I am redirected to knative homepage when I click the preview link. https://deploy-preview-5629--knative.netlify.app/
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.
This is the direct link to the preview of that page: https://deploy-preview-5629--knative.netlify.app/docs/serving/autoscaling/autoscaling-metrics/
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.
Hello @psschwei Thanks for showing the link. I have submitted another PR. Kindly review. Thanks!
https://deploy-preview-5629--knative.netlify.app/docs/serving/autoscaling/autoscaling-metrics/
autoscaling.knative.dev/target-utilization-percentage: "70" | ||
``` | ||
autoscaling.knative.dev/target-utilization-percentage annotation for "Concurrency" specifies a percentage value |
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.
You'll need to indent all the comments, otherwise it breaks the layout. It also might be nice to format them as notes, i.e.
autoscaling.knative.dev/target-utilization-percentage: "70" | |
``` | |
autoscaling.knative.dev/target-utilization-percentage annotation for "Concurrency" specifies a percentage value | |
autoscaling.knative.dev/target-utilization-percentage: "70" | |
``` | |
!!! note | |
The `autoscaling.knative.dev/target-utilization-percentage` annotation for "Concurrency" specifies a percentage value |
This should be done for all the updates
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.
Hello @psschwei
Sure, I added the note section and content to next line by splitting it by br tag. enter was not working to move the content to next line same line as viewed in preview section.
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.
Again, you need to align these properly so as to not break the formatting... please check the preview to ensure the page is rendering properly (compare with the existing doc page if needed)
autoscaling.knative.dev/target-utilization-percentage: "70" | ||
``` | ||
!!! note <br/> |
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.
autoscaling.knative.dev/target-utilization-percentage: "70" | |
``` | |
!!! note <br/> | |
autoscaling.knative.dev/target-utilization-percentage: "70" | |
``` | |
!!! note <br/> |
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.
Thanks @psschwei , I have compared the existing page and changes looks fine to me. Kindly review. Thanks again for your help!
Update autoscaling-metrics.md for formatting changes
``` | ||
!!! note <br/> | ||
The `autoscaling.knative.dev/target-utilization-percentage` annotation for "Concurrency" | ||
<br/> specifies a percentage value |
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.
These still aren't rendering properly...
Indents blocks are four spaces, and you don't need the the <br/>
tags at all.
``` | |
!!! note <br/> | |
The `autoscaling.knative.dev/target-utilization-percentage` annotation for "Concurrency" | |
<br/> specifies a percentage value | |
``` | |
!!! note | |
The `autoscaling.knative.dev/target-utilization-percentage` annotation for "Concurrency" specifies a percentage value |
It should look like this:
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.
Sure @psschwei Performed the suggested change. Thanks.
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: erharjotsingh, psschwei The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
"Fixes #5537 : Adding mandatory target annotation and their units."
Proposed Changes