Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-21596

DevPrev: exposing new APIs to adjust KubeVirt rate limiting

XMLWordPrintable

    •  cnv-rate-limiting-api
    • False
    • Hide

      None

      Show
      None
    • False
      • a simple API to set raw numbers of the kubevirt rate limitng is availible to admins
    • Green
    • To Do
    • CNV-8291 - CNV Scalability
    • 0% To Do, 0% In Progress, 100% Done
    • dev-ready, doc-ready, po-ready, px-ready, qe-ready, ux-ready
    • Hide

      2022-12-19:   PR under review...

      Show
      2022-12-19:   PR under review...
    • ---
    • ---

      Goal

      Adjusting the rate limiting to scaling scenarios requires currently a command line like

      oc patch hco -n openshift-cnv kubevirt-hyperconverged --type=merge -p '{"metadata":{"annotations":{"kubevirt.kubevirt.io/jsonpatch":"[{\"op\":\"add\",\"path\":\"/spec/configuration\",\"value\":{\"apiConfiguration\":{\"restClient\":{\"rateLimiter\":{\"tokenBucketRateLimiter\":{\"burst\":200,\"qps\":100}},\"controllerConfiguration\":{\"restClient\":{\"rateLimiter\":{\"tokenBucketRateLimiter\":{\"burst\":400,\"qps\":200}}}},\"handlerConfiguration\":{\"restClient\":{\"rateLimiter\":{\"tokenBucketRateLimiter\":{\"burst\":400,\"qps\":200}}}},\"webhookConfiguration\":{\"restClient\":{\"rateLimiter\":{\"tokenBucketRateLimiter\":{\"burst\":400,\"qps\":200}}}}}},{\"op\": \"add\", \"path\": \"/spec/customizeComponents/patches\", \"value\": [{\"resourceType\": \"Deployment\", \"resourceName\": \"virt-api\", \"type\": \"json\", \"patch\": \"[

      {\\\"op\\\": \\\"replace\\\", \\\"path\\\": \\\"/spec/replicas\\\", \\\"value\\\": 10}

      ]\"}]}]"}}}'}}

      It would be more pleasant for the user, if there would be an API to set the values and be open to being extended by CNV-14170, e.g.

       

      {{
      Kind: HCO
      Spec:
        tuning:
          Static:  # Easy
             aNumber: 44
             bNumber: 55

      }}

      User Stories

      Non-Requirements

      • Setting the values automatically.

      Notes

      • Any additional details or decisions made/needed

      Done Checklist

      Who What Reference
      DEV Upstream roadmap issue (or individual upstream PRs) https://github.com/kubevirt/hyperconverged-cluster-operator/issues/2152
      DEV Upstream documentation merged hyperconverged-cluster-operator/docs/cluster-configuration.md
      DEV gap doc updated NA
      DEV Upgrade consideration NA
      DEV CEE/PX summary presentation NA
      QE Test plans in Polarion NA
      QE Automated tests merged NA
      DOC Downstream documentation merged NA

              dholler@redhat.com Dominik Holler
              dholler@redhat.com Dominik Holler
              Dominik Holler Dominik Holler
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: