From 9c9f95ea8b54563ac37209b1621537c268330a45 Mon Sep 17 00:00:00 2001 From: erharjotsingh <136554658+erharjotsingh@users.noreply.github.com> Date: Mon, 31 Jul 2023 16:50:00 +0530 Subject: [PATCH] Fixing #5537: Adding mandatory target annotation and their units. (#5629) * Issue# #5537: Update autoscaling-metrics.md to add the mandatory target values As per issue #5537, creating this PR for adding mandatory target annotation. * Fixing #5537: Implementing PR comments * Fixing #5634: Update home.html * Reverting the commit for other issue Reverting the commit for other issue so that I can fork one branch per issue * Fixing #5537: Adding review comments * Fixing#5537: Updating note formatting * Update autoscaling-metrics.md * Update autoscaling-metrics.md * Update autoscaling-metrics.md * Update autoscaling-metrics.md --- docs/serving/autoscaling/autoscaling-metrics.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/serving/autoscaling/autoscaling-metrics.md b/docs/serving/autoscaling/autoscaling-metrics.md index f6606cab1e..20224692c9 100644 --- a/docs/serving/autoscaling/autoscaling-metrics.md +++ b/docs/serving/autoscaling/autoscaling-metrics.md @@ -32,7 +32,10 @@ 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" ``` + !!! note + The `autoscaling.knative.dev/target-utilization-percentage` annotation for "Concurrency" specifies a percentage value === "Requests per second" @@ -47,7 +50,10 @@ For more information about KPA and HPA, see the documentation on [Supported Auto metadata: annotations: autoscaling.knative.dev/metric: "rps" + autoscaling.knative.dev/target: "150" ``` + !!! note + The `autoscaling.knative.dev/target` annotation for "Requests per second" specifies an integer value === "CPU" @@ -63,7 +69,10 @@ For more information about KPA and HPA, see the documentation on [Supported Auto annotations: autoscaling.knative.dev/class: "hpa.autoscaling.knative.dev" autoscaling.knative.dev/metric: "cpu" + autoscaling.knative.dev/target: "100" ``` + !!! note + The `autoscaling.knative.dev/target` annotation for "CPU" specifies the integer value in millicore === "Memory" @@ -79,7 +88,10 @@ For more information about KPA and HPA, see the documentation on [Supported Auto annotations: autoscaling.knative.dev/class: "hpa.autoscaling.knative.dev" autoscaling.knative.dev/metric: "memory" + autoscaling.knative.dev/target: "75" ``` + !!! note + The `autoscaling.knative.dev/target` annotation for "Memory" specifies the integer value in Mi === "Custom metric" @@ -98,6 +110,7 @@ For more information about KPA and HPA, see the documentation on [Supported Auto annotations: autoscaling.knative.dev/class: "hpa.autoscaling.knative.dev" autoscaling.knative.dev/metric: "" + autoscaling.knative.dev/target: "" ``` Where `` is your custom metric.