• Kubernetes Submit Queue's avatar
    Merge pull request #36889 from wojtek-t/reuse_fields_and_labels · cd560926
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Reuse fields and labels
    
    This should significantly reduce memory allocations in apiserver in large cluster.
    Explanation:
    - every kubelet is refreshing watch every 5-10 minutes (this generally is not causing relist - it just renews watch)
    - that means, in 5000-node cluster, we are issuing ~10 watches per second
    - since we don't have "watch heartbets", the watch is issued from previously received resourceVersion
    - to make some assumption, let's assume pods are evenly spread across pods, and writes for them are evenly spread - that means, that a given kubelet is interested in 1 per 5000 pod changes
    - with that assumption, each watch, has to process 2500 (on average) previous watch events
    - for each of such even, we are currently computing fields.
    
    This PR is fixing this problem.
    cd560926
Name
Last commit
Last update
..
apiserver Loading commit data...
cluster-dns Loading commit data...
cockroachdb Loading commit data...
elasticsearch Loading commit data...
experimental/persistent-volume-provisioning Loading commit data...
explorer Loading commit data...
guestbook Loading commit data...
guestbook-go Loading commit data...
https-nginx Loading commit data...
javaee Loading commit data...
javaweb-tomcat-sidecar Loading commit data...
job Loading commit data...
k8petstore Loading commit data...
kubectl-container Loading commit data...
meteor Loading commit data...
mysql-cinder-pd Loading commit data...
mysql-wordpress-pd Loading commit data...
newrelic Loading commit data...
nodesjs-mongodb Loading commit data...
openshift-origin Loading commit data...
phabricator Loading commit data...
podsecuritypolicy/rbac Loading commit data...
runtime-constraints Loading commit data...
selenium Loading commit data...
sharing-clusters Loading commit data...
spark Loading commit data...
storage Loading commit data...
storm Loading commit data...
sysdig-cloud Loading commit data...
volumes Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
doc.go Loading commit data...
examples_test.go Loading commit data...
guidelines.md Loading commit data...
pod Loading commit data...
scheduler-policy-config-with-extender.json Loading commit data...
scheduler-policy-config.json Loading commit data...
simple-nginx.md Loading commit data...