mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Speedup load test
This commit is contained in:
parent
8355cefb7b
commit
b953048f0b
@ -126,17 +126,17 @@ var _ = KubeDescribe("Load capacity", func() {
|
|||||||
|
|
||||||
// We would like to spread creating replication controllers over time
|
// We would like to spread creating replication controllers over time
|
||||||
// to make it possible to create/schedule them in the meantime.
|
// to make it possible to create/schedule them in the meantime.
|
||||||
// Currently we assume 5 pods/second average throughput.
|
// Currently we assume 10 pods/second average throughput.
|
||||||
// We may want to revisit it in the future.
|
// We may want to revisit it in the future.
|
||||||
creatingTime := time.Duration(totalPods/5) * time.Second
|
creatingTime := time.Duration(totalPods/10) * time.Second
|
||||||
createAllRC(configs, creatingTime)
|
createAllRC(configs, creatingTime)
|
||||||
By("============================================================================")
|
By("============================================================================")
|
||||||
|
|
||||||
// We would like to spread scaling replication controllers over time
|
// We would like to spread scaling replication controllers over time
|
||||||
// to make it possible to create/schedule & delete them in the meantime.
|
// to make it possible to create/schedule & delete them in the meantime.
|
||||||
// Currently we assume that 5 pods/second average throughput.
|
// Currently we assume that 10 pods/second average throughput.
|
||||||
// The expected number of created/deleted pods is less than totalPods/3.
|
// The expected number of created/deleted pods is less than totalPods/3.
|
||||||
scalingTime := time.Duration(totalPods/15) * time.Second
|
scalingTime := time.Duration(totalPods/30) * time.Second
|
||||||
scaleAllRC(configs, scalingTime)
|
scaleAllRC(configs, scalingTime)
|
||||||
By("============================================================================")
|
By("============================================================================")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user