Skip to content

Commit 24fce87

Browse files
authored
[8.19] tf: Use AL2023 for benchmarks, larger disk for TBS benchmark (#19687)
Bring 8.19 branch to a state closer to main, for easier backport of #19619 later. Increase disk size for TBS benchmark.
1 parent ccafb9f commit 24fce87

File tree

2 files changed

+8
-2
lines changed
  • testing

2 files changed

+8
-2
lines changed

testing/benchmark/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ module "standalone_apm_server" {
154154
source = "../infra/terraform/modules/standalone_apm_server"
155155

156156
vpc_id = module.vpc.vpc_id
157-
aws_os = "amzn2-ami-hvm-*-x86_64-ebs"
157+
aws_os = "al2023-ami-2023.*-x86_64"
158158
apm_instance_type = var.standalone_apm_server_instance_size
159159
apm_volume_type = var.standalone_apm_server_volume_type
160-
apm_volume_size = var.apm_server_tail_sampling ? coalesce(var.standalone_apm_server_volume_size, 60) : var.standalone_apm_server_volume_size
160+
apm_volume_size = var.apm_server_tail_sampling ? coalesce(var.standalone_apm_server_volume_size, 300) : var.standalone_apm_server_volume_size # Much larger disk for TBS setup because of 8.x TBS disk usage
161161
apm_iops = var.standalone_apm_server_iops
162162
apm_server_bin_path = var.apm_server_bin_path
163163
ea_managed = false

testing/infra/terraform/modules/standalone_apm_server/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ locals {
77
"amzn2-ami-kernel-5.10" = "137112412989" # amazon
88
"amzn2-ami-hvm-*-x86_64-ebs" = "137112412989" # amazon
99
"al2023-ami-2023" = "137112412989" # amazon
10+
"al2023-ami-2023.*-x86_64" = "137112412989" # amazon
1011
"RHEL-8" = "309956199498" # Red Hat
1112
"RHEL-9" = "309956199498" # Red Hat
1213
}
@@ -18,6 +19,7 @@ locals {
1819
"amzn2-ami-kernel-5.10" = "t4g.nano"
1920
"amzn2-ami-hvm-*-x86_64-ebs" = "t4g.nano"
2021
"al2023-ami-2023" = "t4g.nano"
22+
"al2023-ami-2023.*-x86_64" = "t3a.micro"
2123
"RHEL-8" = "t4g.micro" # RHEL doesn't support nano instances
2224
"RHEL-9" = "t4g.micro" # RHEL doesn't support nano instances
2325
}
@@ -29,6 +31,7 @@ locals {
2931
"amzn2-ami-kernel-5.10" = "arm64"
3032
"amzn2-ami-hvm-*-x86_64-ebs" = "x86_64"
3133
"al2023-ami-2023" = "arm64"
34+
"al2023-ami-2023.*-x86_64" = "x86_64"
3235
"RHEL-8" = "arm64"
3336
"RHEL-9" = "arm64"
3437
}
@@ -39,6 +42,7 @@ locals {
3942
"debian-11-arm64" = "curl ${data.external.latest_elastic_agent.result.deb_arm} -o elastic-agent.deb && sudo dpkg -i elastic-agent.deb"
4043
"amzn2-ami-kernel-5.10" = "curl ${data.external.latest_elastic_agent.result.rpm_arm} -o elastic-agent.rpm && sudo yum -y install elastic-agent.rpm"
4144
"al2023-ami-2023" = "curl ${data.external.latest_elastic_agent.result.rpm_arm} -o elastic-agent.rpm && sudo yum -y install elastic-agent.rpm"
45+
"al2023-ami-2023.*-x86_64" = "curl ${data.external.latest_elastic_agent.result.rpm_arm} -o elastic-agent.rpm && sudo yum -y install elastic-agent.rpm"
4246
"RHEL-8" = "curl ${data.external.latest_elastic_agent.result.rpm_arm} -o elastic-agent.rpm && sudo yum -y install elastic-agent.rpm"
4347
"RHEL-9" = "curl ${data.external.latest_elastic_agent.result.rpm_arm} -o elastic-agent.rpm && sudo yum -y install elastic-agent.rpm"
4448
}
@@ -49,6 +53,7 @@ locals {
4953
"debian-11-arm64" = "curl ${data.external.latest_apm_server.result.deb_arm} -o apm-server.deb && sudo dpkg -i apm-server.deb"
5054
"amzn2-ami-kernel-5.10" = "curl ${data.external.latest_apm_server.result.rpm_arm} -o apm-server.rpm && sudo yum -y install apm-server.rpm"
5155
"al2023-ami-2023" = "curl ${data.external.latest_apm_server.result.rpm_arm} -o apm-server.rpm && sudo yum -y install apm-server.rpm"
56+
"al2023-ami-2023.*-x86_64" = "curl ${data.external.latest_apm_server.result.rpm_arm} -o apm-server.rpm && sudo yum -y install apm-server.rpm"
5257
"RHEL-8" = "curl ${data.external.latest_apm_server.result.rpm_arm} -o apm-server.rpm && sudo yum -y install apm-server.rpm"
5358
"RHEL-9" = "curl ${data.external.latest_apm_server.result.rpm_arm} -o apm-server.rpm && sudo yum -y install apm-server.rpm"
5459
}
@@ -60,6 +65,7 @@ locals {
6065
"amzn2-ami-kernel-5.10" = "ec2-user"
6166
"amzn2-ami-hvm-*-x86_64-ebs" = "ec2-user"
6267
"al2023-ami-2023" = "ec2-user"
68+
"al2023-ami-2023.*-x86_64" = "ec2-user"
6369
"RHEL-8" = "ec2-user"
6470
"RHEL-9" = "ec2-user"
6571
}

0 commit comments

Comments
 (0)