Skip to content

Commit 2849f20

Browse files
committed
WIP
1 parent 94ddf7b commit 2849f20

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed

.github/workflows/benchmarks.yml

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
required: false
99
type: boolean
1010
default: false
11+
standaloneInstanceSize:
12+
description: 'AWS instance size of standalone APM Server, e.g. c6i.2xlarge'
13+
required: false
14+
type: string
1115
enableTailSampling:
1216
description: 'Enable tail-based sampling on the APM server'
1317
required: false
@@ -67,6 +71,7 @@ jobs:
6771
TF_VAR_private_key: ./id_rsa_terraform
6872
TF_VAR_public_key: ./id_rsa_terraform.pub
6973
TF_VAR_run_standalone: ${{ inputs.runStandalone || github.event.schedule=='0 0 1 * *' }}
74+
TF_VAR_standalone_apm_server_instance_size: ${{ inputs.standaloneInstanceSize || 'c6i.2xlarge' }}
7075
TF_VAR_apm_server_tail_sampling: ${{ inputs.enableTailSampling || 'false' }} # set the default again otherwise schedules won't work
7176
TF_VAR_apm_server_tail_sampling_storage_limit: ${{ inputs.tailSamplingStorageLimit || '10GB' }} # set the default again otherwise schedules won't work
7277
RUN_STANDALONE: ${{ inputs.runStandalone || github.event.schedule=='0 0 1 * *' }}

testing/benchmark/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ module "standalone_apm_server" {
157157
apm_instance_type = var.standalone_apm_server_instance_size
158158
apm_volume_type = var.standalone_apm_server_volume_type
159159
apm_volume_size = var.apm_server_tail_sampling ? coalesce(var.standalone_apm_server_volume_size, 60) : var.standalone_apm_server_volume_size
160+
apm_iops = var.standalone_apm_server_iops
160161
apm_server_bin_path = var.apm_server_bin_path
161162
ea_managed = false
162163

testing/benchmark/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ variable "standalone_apm_server_volume_size" {
142142
description = "Optional volume size in GB to use for APM Server VM"
143143
}
144144

145+
variable "standalone_apm_server_iops" {
146+
default = null
147+
type = number
148+
description = "Optional disk IOPS in GB to use for APM Server VM"
149+
}
150+
145151
## VPC Network settings
146152

147153
variable "vpc_cidr" {

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

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ resource "aws_instance" "apm" {
172172
root_block_device {
173173
volume_type = var.apm_volume_type
174174
volume_size = var.apm_volume_size
175+
iops = var.apm_iops
175176
}
176177

177178
connection {

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

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ variable "apm_volume_size" {
2222
description = "Optional apm server volume size in GB override"
2323
}
2424

25+
variable "apm_iops" {
26+
default = null
27+
type = number
28+
description = "Optional apm server disk IOPS override"
29+
}
30+
2531
variable "vpc_id" {
2632
description = "VPC ID to provision the EC2 instance"
2733
type = string

0 commit comments

Comments
 (0)