Page MenuHomePhabricator

New flavor for the integration project with more vCPU and ephemeral disk space
Closed, ResolvedPublic

Description

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.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
eqiad1: flavors: Add g4.cores10.ram24.disk20.ephemeral100.4xiopsrepos/cloud/cloud-vps/tofu-infra!304taavimain-I8d39c836621814994a0c19b150ac6945e6f5a735main
Customize query in GitLab

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

+1 this seems fine; would you like us to also remove the older 8-core flavor or do you expect to use both in the future?

The 8cores one (g4.cores8.ram24.disk20.ephemeral90.4xiops) can be removed, though it is currently in use but all those VM will be moved to the new flavor requested in this task.

eqiad1: flavors: Add g4.cores8.ram32.disk20.ephemeral90.4xiops

This is on the assumption that the bump to 32G would actually improve the service, which I don't see detailed in the request.

Thanks @taavi , the request for more RAM does not have any justification indeed! I'll check the Grafana dashboards and talk about it with @Peter and @zeljkofilipin during our Thursday morning meeting.

@taavi: @Peter and I have looked at the Jenkins instances, they barely show more than 8GB of memory usage (system included), a large amount of Cached memory (which I assumed is the disk cache and can be reclaimed by the Kernel if there is memory demand. And regardless all the instances show some amount of unused memory.

I thought about raising memory to 32G because I misremembered that Memory was an issue. Maybe it was at some point in the past (when we had 4 concurrent builds rather than 3 and instances with 16G of RAM).

Conclusion: we can have the new flavor with the same 24G of memory! g4.cores10.ram24.disk20.ephemeral100.4xiops.

This is done, sorry for the delay.

note to self: the old flavor (g4.cores8.ram24.disk20.ephemeral90.4xiops) is available in other projects (according to tofu-infra: ["integration", "search", "gitlab-runners", "wikiapiary", "zuul3"]) so I'm leaving it as is.