From d4e1b2d5bca9a251732cb1b51745f27a3c06ee6e Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 19 Jan 2021 14:58:47 +0100 Subject: [PATCH] copr-be: increase the chroot tmpfs space on builders Mock allocated 75g before, and this started to be not enough for some projects (tmpfs resides in ram + swap). Increasing the size isn't a huge deal for us since the major subset of builders is x86_64 and those have pretty large (currently unused) swap disk size. For aarch64 I had to add a bit more storage to guarantee that the large tmpfs will fit the swap (+17%). --- roles/copr/backend/files/provision/builderpb-aws-aarch64.yml | 2 +- roles/copr/backend/files/provision/files/mock/site-defaults.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/copr/backend/files/provision/builderpb-aws-aarch64.yml b/roles/copr/backend/files/provision/builderpb-aws-aarch64.yml index bd212f05d3..79ac9e9548 100644 --- a/roles/copr/backend/files/provision/builderpb-aws-aarch64.yml +++ b/roles/copr/backend/files/provision/builderpb-aws-aarch64.yml @@ -21,7 +21,7 @@ - device_name: sdb delete_on_termination: True volume_type: gp2 - volume_size: 120 + volume_size: 140 tasks: - include: "spinup_aws_task.yml" diff --git a/roles/copr/backend/files/provision/files/mock/site-defaults.cfg b/roles/copr/backend/files/provision/files/mock/site-defaults.cfg index 9e1d1698ec..250dfa056f 100644 --- a/roles/copr/backend/files/provision/files/mock/site-defaults.cfg +++ b/roles/copr/backend/files/provision/files/mock/site-defaults.cfg @@ -15,7 +15,7 @@ config_opts['plugin_conf']['compress_logs_opts']['command'] = "/usr/bin/gzip -9 config_opts['plugin_conf']['tmpfs_enable'] = True config_opts['plugin_conf']['tmpfs_opts'] = {} config_opts['plugin_conf']['tmpfs_opts']['required_ram_mb'] = 1024 -config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '75g' +config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '120g' config_opts['plugin_conf']['tmpfs_opts']['mode'] = '0755' config_opts['plugin_conf']['tmpfs_opts']['keep_mounted'] = False