Skip to content

Commit d779e57

Browse files
committed
Adjust cpu for el9 presubmits
1 parent 04b8725 commit d779e57

31 files changed

+60
-63
lines changed

test/bin/vm_scheduler.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@ init_scheduler() {
148148
}
149149

150150
# Default VM resources when not specified in launch_vm
151-
# Using 4 vCPUs by default maximizes VM reuse potential:
152-
# - All VMs can run any scenario (no vcpu mismatch)
153-
# - More queuing = more reuse opportunities
154-
DEFAULT_VM_VCPUS=4
151+
DEFAULT_VM_VCPUS=2
155152
DEFAULT_VM_MEMORY=4096
156153

157154
parse_static_scenario_resources() {

test/scenarios-bootc/el9/presubmits/el98-src@auto-recovery-extra.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Opt-in to dynamic VM scheduling by declaring requirements
66
dynamic_schedule_requirements() {
77
cat <<EOF
8-
min_vcpus=2
8+
min_vcpus=4
99
min_memory=4096
1010
min_disksize=20
1111
networks=
@@ -17,7 +17,7 @@ EOF
1717

1818
scenario_create_vms() {
1919
prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source
20-
launch_vm rhel98-bootc
20+
launch_vm rhel98-bootc --vm_vcpus 4
2121
}
2222

2323
scenario_remove_vms() {

test/scenarios-bootc/el9/presubmits/el98-src@auto-recovery.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Opt-in to dynamic VM scheduling by declaring requirements
66
dynamic_schedule_requirements() {
77
cat <<EOF
8-
min_vcpus=2
8+
min_vcpus=4
99
min_memory=4096
1010
min_disksize=20
1111
networks=
@@ -17,7 +17,7 @@ EOF
1717

1818
scenario_create_vms() {
1919
prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source
20-
launch_vm rhel98-bootc
20+
launch_vm rhel98-bootc --vm_vcpus 4
2121
}
2222

2323
scenario_remove_vms() {

test/scenarios-bootc/el9/presubmits/el98-src@backup-and-restore-on-reboot.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Opt-in to dynamic VM scheduling by declaring requirements
66
dynamic_schedule_requirements() {
77
cat <<EOF
8-
min_vcpus=2
8+
min_vcpus=4
99
min_memory=4096
1010
min_disksize=20
1111
networks=
@@ -17,7 +17,7 @@ EOF
1717

1818
scenario_create_vms() {
1919
prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source
20-
launch_vm rhel98-bootc
20+
launch_vm rhel98-bootc --vm_vcpus 4
2121
}
2222

2323
scenario_remove_vms() {

test/scenarios-bootc/el9/presubmits/el98-src@backups.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Opt-in to dynamic VM scheduling by declaring requirements
66
dynamic_schedule_requirements() {
77
cat <<EOF
8-
min_vcpus=2
8+
min_vcpus=4
99
min_memory=4096
1010
min_disksize=20
1111
networks=
@@ -17,7 +17,7 @@ EOF
1717

1818
scenario_create_vms() {
1919
prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source
20-
launch_vm rhel98-bootc
20+
launch_vm rhel98-bootc --vm_vcpus 4
2121
}
2222

2323
scenario_remove_vms() {

test/scenarios-bootc/el9/presubmits/el98-src@configuration.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Opt-in to dynamic VM scheduling by declaring requirements
66
dynamic_schedule_requirements() {
77
cat <<EOF
8-
min_vcpus=2
8+
min_vcpus=4
99
min_memory=4096
1010
min_disksize=20
1111
networks=
@@ -17,7 +17,7 @@ EOF
1717

1818
scenario_create_vms() {
1919
prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source
20-
launch_vm rhel98-bootc
20+
launch_vm rhel98-bootc --vm_vcpus 4
2121
}
2222

2323
scenario_remove_vms() {

test/scenarios-bootc/el9/presubmits/el98-src@containers-policy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Opt-in to dynamic VM scheduling by declaring requirements
66
dynamic_schedule_requirements() {
77
cat <<EOF
8-
min_vcpus=2
8+
min_vcpus=4
99
min_memory=4096
1010
min_disksize=20
1111
networks=
@@ -17,7 +17,7 @@ EOF
1717

1818
scenario_create_vms() {
1919
prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source
20-
launch_vm rhel98-bootc
20+
launch_vm rhel98-bootc --vm_vcpus 4
2121
}
2222

2323
scenario_remove_vms() {

test/scenarios-bootc/el9/presubmits/el98-src@dns.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Opt-in to dynamic VM scheduling by declaring requirements
66
dynamic_schedule_requirements() {
77
cat <<EOF
8-
min_vcpus=2
8+
min_vcpus=4
99
min_memory=4096
1010
min_disksize=20
1111
networks=default
@@ -16,7 +16,7 @@ EOF
1616

1717
scenario_create_vms() {
1818
prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source
19-
launch_vm rhel98-bootc
19+
launch_vm rhel98-bootc --vm_vcpus 4
2020
}
2121

2222
scenario_remove_vms() {

test/scenarios-bootc/el9/presubmits/el98-src@dual-stack.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Opt-in to dynamic VM scheduling by declaring requirements
66
dynamic_schedule_requirements() {
77
cat <<EOF
8-
min_vcpus=2
8+
min_vcpus=4
99
min_memory=4096
1010
min_disksize=20
1111
networks="${VM_DUAL_STACK_NETWORK}"
@@ -16,7 +16,7 @@ EOF
1616

1717
scenario_create_vms() {
1818
prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source
19-
launch_vm rhel98-bootc --network "${VM_DUAL_STACK_NETWORK}"
19+
launch_vm rhel98-bootc --vm_vcpus 4 --network "${VM_DUAL_STACK_NETWORK}"
2020
}
2121

2222
scenario_remove_vms() {

test/scenarios-bootc/el9/presubmits/el98-src@etcd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Opt-in to dynamic VM scheduling by declaring requirements
66
dynamic_schedule_requirements() {
77
cat <<EOF
8-
min_vcpus=2
8+
min_vcpus=4
99
min_memory=4096
1010
min_disksize=20
1111
networks=default
@@ -16,7 +16,7 @@ EOF
1616

1717
scenario_create_vms() {
1818
prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source
19-
launch_vm rhel98-bootc
19+
launch_vm rhel98-bootc --vm_vcpus 4
2020
}
2121

2222
scenario_remove_vms() {

0 commit comments

Comments
 (0)