Project Name: integration
Type of quota increase requested: new flavor
Amount to increase: flavor with a bit more CPU and ephemeral disk space
Reason:
Historical context
The CI Jenkins agents allow up to 3 builds in parallel. They were originally scaled based on:
- PHPUnit taking a whole CPU + some CPU for the MysSQL server (~2 cpus)
- Selenium tests consuming CPU for the test suite, web browser + MediaWiki and its MySQL server (~3cpus)
The CI job consuming 2/3 cpus per build, with 3 concurrent builds that is a usage of 6/9 CPUs. That fitted in an instance with 8 vCPUs (cores8).
Introduction of parallelism in test suites
There has been work done to run tests in parallel, notably:
- MediaWiki PHPUnit test suite now runs tests in parallel (across 8 processes)
- MediaWiki Webdriver.io tests suite were also made to run in parallel (across 4 instances)
When 3 builds each run tests in parallel there is contention for vCPU execution and the processes are waiting. We end up with jobs taking longer than expected:
- PHPUnit, we could have 8 processes * 3 builds = 24 concurrent processes.
- for webdriver.io that would be 4 instances of webdriver.io each hitting MediaWiki + 4 browsers being driven. MySQL is a single process and remains a bottleneck.
I'd like to get more CPUs available, possibly starting by raising number of vCPUs from 8 to 10 (25% increase)
disk space issue
The instances have a 90G ephemeral disk split in two partitions of 45G. One is dedicated to Docker the other is /srv which has a 10G space leaving ~ 35G for the Jenkins jobs.
There are jobs failing from time to time due to disk space issue T384187. I'd like to raise the ephemeral disk from 90G to 100G which will give 45G for the Jenkins jobs (~ 28% increase).
New flavor request
The instances uses the flavor g4.cores8.ram24.disk20.ephemeral90.4xiops. Do note the 4xiops prefix
g4.cores10.ram24.disk20.ephemeral100.4xiops
Previous creations are at T299704#7652833 and T340070#8977238. Taking the later that would translate to:
export OS_PROJECT_ID=integration openstack flavor create --ram 24576 --disk 20 --ephemeral 100 --vcpus 10 --property "aggregate_instance_extra_specs:ceph=true" --property "quota:disk_read_iops_sec=20000" --property "quota:disk_total_bytes_sec=800000000" --property "quota:disk_write_iops_sec=2000" --property "quota:disk_write_iops_sec_max=6000" g4.cores10.ram24.disk20.ephemeral100.4xiops
Depending on WMCS capacity, may we also get more RAM while at it? (32G or --ram 32768).
Impact
We have 29 Jenkins agents instances using g4.cores8.ram24.disk20.ephemeral90.4xiops. With a new flavor of 2 more vCPUs and 10 more ephemeral disk space that would be a total increase of:
- + 58 vCPUs
- + 580G ephemeral disk
If RAM can be raised from 24 G to 32 G: that is (29 instances * + 8 G) = + 232 G more RAM.