Uploaded image for project: 'OpenShift API Server'
  1. OpenShift API Server
  2. API-1647 apiserver: scalability
  3. API-1232

cr listing is inefficient due to v1beta1 objectmeta normalization" issue

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • False
    • False
    • Undefined

      cr listing is inefficient due to v1beta1 objectmeta normalization" issue

      (where it was 33% of all apiserver usage)

       

      ref: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce.go#L33

       

      It's from the time where we didn't have pruning for ObjectMeta for CRDs. so in etcd you can basically have garbage in there. we could enforce a one-time cleanup (migration), then annotate the CRD to skip this insane loop. 

      Or we can check whether maybe the old code was never live in a 4.x cluster. Not sure when we added pruning releative to 4.1 release.

       

      Slack thread: https://coreos.slack.com/archives/CC3CZCQHM/p1617973777462900

       

       

              Unassigned Unassigned
              akashem@redhat.com Abu H Kashem
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: