mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Set requests in scalability tests
This commit is contained in:
parent
e7d0f06c4a
commit
4a7af87984
@ -49,7 +49,12 @@ func (c *Fake) DockerContainer(name string, req *cadvisorapi.ContainerInfoReques
|
||||
}
|
||||
|
||||
func (c *Fake) MachineInfo() (*cadvisorapi.MachineInfo, error) {
|
||||
return new(cadvisorapi.MachineInfo), nil
|
||||
// Simulate a matchin with 1 core and 3.75GB of memory.
|
||||
// We set it to non-zero values to make non-zero-capacity machines in Kubemark.
|
||||
return &cadvisorapi.MachineInfo{
|
||||
NumCores: 1,
|
||||
MemoryCapacity: 4026531840,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (c *Fake) VersionInfo() (*cadvisorapi.VersionInfo, error) {
|
||||
|
@ -218,6 +218,8 @@ var _ = Describe("Density", func() {
|
||||
PollInterval: itArg.interval,
|
||||
PodStatusFile: fileHndl,
|
||||
Replicas: totalPods,
|
||||
CpuRequest: 20, // 0.02 core
|
||||
MemRequest: 52428800, // 50MB
|
||||
MaxContainerFailures: &MaxContainerFailures,
|
||||
}
|
||||
|
||||
|
@ -183,13 +183,15 @@ func generateRCConfigsForGroup(c *client.Client, ns, groupName string, size, cou
|
||||
configs := make([]*RCConfig, 0, count)
|
||||
for i := 1; i <= count; i++ {
|
||||
config := &RCConfig{
|
||||
Client: c,
|
||||
Name: groupName + "-" + strconv.Itoa(i),
|
||||
Namespace: ns,
|
||||
Timeout: 10 * time.Minute,
|
||||
Image: image,
|
||||
Command: command,
|
||||
Replicas: size,
|
||||
Client: c,
|
||||
Name: groupName + "-" + strconv.Itoa(i),
|
||||
Namespace: ns,
|
||||
Timeout: 10 * time.Minute,
|
||||
Image: image,
|
||||
Command: command,
|
||||
Replicas: size,
|
||||
CpuRequest: 20, // 0.02 core
|
||||
MemRequest: 52428800, // 50MB
|
||||
}
|
||||
configs = append(configs, config)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user