From 56abaa7744f3278fd0a2ddb1763fbdd8852406a1 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 14 Feb 2024 14:46:36 +0000 Subject: [PATCH 1/3] Reduce Elasticsearch/OpenSearch heap size to 200m in ci-aio env This should free up some memory, allowing us to use a smaller flavor. --- etc/kayobe/environments/ci-aio/kolla/globals.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/kayobe/environments/ci-aio/kolla/globals.yml b/etc/kayobe/environments/ci-aio/kolla/globals.yml index b717d6e54..6b42acdea 100644 --- a/etc/kayobe/environments/ci-aio/kolla/globals.yml +++ b/etc/kayobe/environments/ci-aio/kolla/globals.yml @@ -13,8 +13,8 @@ docker_yum_baseurl: "{{ stackhpc_repo_docker_url }}" docker_yum_gpgkey: "https://download.docker.com/linux/centos/gpg" # Elasticsearch / OpenSearch memory tuning -es_heap_size: 1g -opensearch_heap_size: 1g +es_heap_size: 200m +opensearch_heap_size: 200m # Increase Grafana timeout grafana_start_first_node_retries: 20 From b293231e3fd96f2b4d0c01c95fdea1cc3a8c8fd7 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 14 Feb 2024 14:46:53 +0000 Subject: [PATCH 2/3] Disable Heat in ci-aio env This should free up some memory, allowing us to use a smaller flavor. --- etc/kayobe/environments/ci-aio/stackhpc-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/kayobe/environments/ci-aio/stackhpc-ci.yml b/etc/kayobe/environments/ci-aio/stackhpc-ci.yml index 6050bffd2..d8f4ef7de 100644 --- a/etc/kayobe/environments/ci-aio/stackhpc-ci.yml +++ b/etc/kayobe/environments/ci-aio/stackhpc-ci.yml @@ -5,6 +5,9 @@ # Docker namespace to use for Kolla images. Default is 'kolla'. kolla_docker_namespace: stackhpc-dev +# Disable some services to reduce memory footprint. +kolla_enable_heat: false + ############################################################################### # Network configuration. From 23247d1a2727a4121646036d8897a0c01d9ce2de Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 14 Feb 2024 14:47:30 +0000 Subject: [PATCH 3/3] Reduce aio flavor to en1.medium This flavor has 8G memory and is cheaper than en1.large. --- .github/workflows/stackhpc-all-in-one.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stackhpc-all-in-one.yml b/.github/workflows/stackhpc-all-in-one.yml index de3c25f50..1155af7a1 100644 --- a/.github/workflows/stackhpc-all-in-one.yml +++ b/.github/workflows/stackhpc-all-in-one.yml @@ -38,7 +38,7 @@ on: vm_flavor: description: Flavor for the all-in-one VM type: string - default: en1.large + default: en1.medium vm_network: description: Network for the all-in-one VM type: string