mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-08 14:29:45 +00:00
Merge pull request #22912 from Random-Liu/kubelet-perf
Automatic merge from submit-queue Add generalized performance data type in e2e test For kubernetes/contrib/issues/564 and #15554. This PR added two files in e2e test: 1) `perftype/perftype.go`: This file contains generalized performance data type. The type can be pretty printed in Json format and analyzed by other performance analyzing tools, such as [Perfdash](https://github.com/kubernetes/contrib/tree/master/perfdash). 2) `perf_util.go`: This file contains functions which convert e2e performance test result into new performance data type. The new performance data type is now used in *Density test, Load test and Kubelet resource tracking*. It's easy to support other e2e performance test by adding new convert function in `perf_util.go`. @gmarek @yujuhong /cc @kubernetes/sig-testing
This commit is contained in:
@@ -287,7 +287,10 @@ func HighLatencyRequests(c *client.Client) (int, error) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO(random-liu): Remove the log when we migrate to new perfdash
|
||||
Logf("API calls latencies: %s", PrettyPrintJSON(metrics))
|
||||
// Log perf data
|
||||
PrintPerfData(ApiCallToPerfData(metrics))
|
||||
|
||||
return badMetrics, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user