1. 24 Jun, 2018 3 commits
  2. 18 Jun, 2018 2 commits
  3. 08 Jun, 2018 14 commits
  4. 24 Jun, 2018 2 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #65391 from smarterclayton/describe · ec37c0f6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      When splitting `snake_case` words, omit the underscore
      
      While we require camelCase by convention for official APIs, CRDs may use
      `snake_case`, and the generic describer prints this as `Snake _ Case`.  We should print `Snake Case`
      
      Prow is impacted by this for the ProwJob CRD:
      
      ```
        Decoration _ Config:
          Gcs _ Configuration:
            Bucket:                    origin-ci-test
            Default _ Org:             openshift
            Default _ Repo:            origin
            Path _ Strategy:           single
          Gcs _ Credentials _ Secret:  gcs-publisher-credentials
      ```
      
      @kubernetes/sig-cli-pr-reviews
      
      ```release-note
      Using `kubectl describe` on CRDs that use underscores will be prettier.
      ```
      ec37c0f6
    • Kubernetes Submit Queue's avatar
      Merge pull request #65396 from bsalamat/sched_no_sort · f0311d82
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Improve scheduler's performance by eliminating sorting of nodes by their score
      
      **What this PR does / why we need it**:
      Profiling scheduler, I noticed that scheduler spends a significant amount of time in sorting the nodes after we score them to find nodes with the highest score. Finding nodes with the highest score does not need sorting the array. This PR replaces the sort with a linear scan.
      
      Eliminating the sort results in over 10% improvement in throughput of the scheduler.
      
      Before (3 runs for 5000 nodes, scheduling 1000 pods in a cluster running 2000 pods):
      BenchmarkScheduling/5000Nodes/2000Pods-12         	    1000	  20682552 ns/op
      BenchmarkScheduling/5000Nodes/2000Pods-12         	    1000	  20464729 ns/op
      BenchmarkScheduling/5000Nodes/2000Pods-12         	    1000	  21188906 ns/op
      
      After:
      BenchmarkScheduling/5000Nodes/2000Pods-12         	    1000	  18485866 ns/op
      BenchmarkScheduling/5000Nodes/2000Pods-12         	    1000	  18457749 ns/op
      BenchmarkScheduling/5000Nodes/2000Pods-12         	    1000	  18418200 ns/op
      
      **Release note**:
      
      ```release-note
      Improve scheduler's performance by eliminating sorting of nodes by their score.
      ```
      f0311d82
  5. 23 Jun, 2018 15 commits
  6. 22 Jun, 2018 4 commits