Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for storeScaleEvent (0.15 sec)

  1. pkg/controller/podautoscaler/horizontal.go

    		Message: fmt.Sprintf("the HPA was unable to compute the replica count: %v", err),
    	}
    }
    
    // storeScaleEvent stores (adds or replaces outdated) scale event.
    // outdated events to be replaced were marked as outdated in the `markScaleEventsOutdated` function
    func (a *HorizontalController) storeScaleEvent(behavior *autoscalingv2.HorizontalPodAutoscalerBehavior, key string, prevReplicas, newReplicas int32) {
    	if behavior == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  2. pkg/controller/podautoscaler/horizontal_test.go

    				},
    			}
    			gotReplicasChangeUp := getReplicasChangePerPeriod(60, hcUp.scaleUpEvents[tc.key])
    			assert.Equal(t, tc.expectedReplicasChange, gotReplicasChangeUp)
    			hcUp.storeScaleEvent(behaviorUp, tc.key, 10, 10+tc.replicaChange)
    			if !assert.Len(t, hcUp.scaleUpEvents[tc.key], len(tc.newScaleEvents), "up: scale events differ in length") {
    				return
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
Back to top