|
| 1 | +################################################################################ |
| 2 | +# Variables used for deployment tag |
| 3 | +################################################################################ |
| 4 | + |
| 5 | +variable "setup_name" { |
| 6 | + description = "setup name" |
| 7 | + default = "bench-client-ubuntu24.04-c7i.4xlarge" |
| 8 | +} |
| 9 | + |
| 10 | +variable "github_actor" { |
| 11 | + description = "The name of the person or app that initiated the deployment." |
| 12 | + default = "N/A" |
| 13 | +} |
| 14 | + |
| 15 | +variable "github_repo" { |
| 16 | + description = " The owner and repository name. For example, testing-infrastructure." |
| 17 | + default = "N/A" |
| 18 | +} |
| 19 | + |
| 20 | +variable "triggering_env" { |
| 21 | + description = " The triggering environment. For example circleci." |
| 22 | + default = "N/A" |
| 23 | +} |
| 24 | + |
| 25 | +variable "environment" { |
| 26 | + description = " The cost tag." |
| 27 | + default = "BENCH-CLIENT" |
| 28 | +} |
| 29 | + |
| 30 | +variable "github_org" { |
| 31 | + description = " The owner name. For example, RedisModules." |
| 32 | + default = "N/A" |
| 33 | +} |
| 34 | + |
| 35 | +variable "github_sha" { |
| 36 | + description = "The commit SHA that triggered the deployment." |
| 37 | + default = "N/A" |
| 38 | +} |
| 39 | + |
| 40 | +variable "timeout_secs" { |
| 41 | + description = "The maximum time to wait prior destroying the VM via the watchdog." |
| 42 | + default = "3600" |
| 43 | +} |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +################################################################################ |
| 48 | +# Access keys |
| 49 | +################################################################################ |
| 50 | +variable "private_key" { |
| 51 | + description = "private key" |
| 52 | + default = "/tmp/benchmarks.redislabs.pem" |
| 53 | +} |
| 54 | + |
| 55 | +variable "key_name" { |
| 56 | + description = "key name" |
| 57 | + default = "perf-cto-us-east-2" |
| 58 | +} |
| 59 | + |
| 60 | +variable "region" { |
| 61 | + default = "us-east-2" |
| 62 | +} |
| 63 | + |
| 64 | +# (Ubuntu 24.04 + memtier + redis) |
| 65 | +# https://us-east-2.console.aws.amazon.com/ec2/home?region=us-east-2#ImageDetails:imageId=ami-09070824ce6e19e5a |
| 66 | +variable "instance_ami" { |
| 67 | + description = "AMI for aws EC2 instance - us-east-2 Ubuntu 24.04 + memtier + redis" |
| 68 | + default = "ami-09070824ce6e19e5a" |
| 69 | +} |
| 70 | + |
| 71 | + |
| 72 | +variable "instance_device_name" { |
| 73 | + description = "EC2 instance device name" |
| 74 | + default = "/dev/sda1" |
| 75 | +} |
| 76 | + |
| 77 | +variable "redis_module" { |
| 78 | + description = "redis_module" |
| 79 | + default = "N/A" |
| 80 | +} |
| 81 | + |
| 82 | +variable "instance_volume_size" { |
| 83 | + description = "EC2 instance volume_size" |
| 84 | + default = "256" |
| 85 | +} |
| 86 | + |
| 87 | +variable "instance_volume_type" { |
| 88 | + description = "EC2 instance volume_type" |
| 89 | + default = "gp3" |
| 90 | +} |
| 91 | + |
| 92 | + |
| 93 | +variable "instance_volume_iops" { |
| 94 | + description = "EC2 instance volume_iops" |
| 95 | + default = "3000" |
| 96 | +} |
| 97 | + |
| 98 | +variable "client_instance_volume_size" { |
| 99 | + description = "EC2 instance volume_size" |
| 100 | + default = "256" |
| 101 | +} |
| 102 | + |
| 103 | +variable "client_instance_volume_type" { |
| 104 | + description = "EC2 instance volume_type" |
| 105 | + default = "gp3" |
| 106 | +} |
| 107 | + |
| 108 | + |
| 109 | +variable "instance_volume_encrypted" { |
| 110 | + description = "EC2 instance instance_volume_encrypted" |
| 111 | + default = "false" |
| 112 | +} |
| 113 | + |
| 114 | +variable "instance_root_block_device_encrypted" { |
| 115 | + description = "EC2 instance instance_root_block_device_encrypted" |
| 116 | + default = "false" |
| 117 | +} |
| 118 | + |
| 119 | +variable "instance_cpu_threads_per_core" { |
| 120 | + description = "CPU threads per core for aws EC2 instance" |
| 121 | + default = 1 |
| 122 | +} |
| 123 | + |
| 124 | +variable "instance_cpu_threads_per_core_hyperthreading" { |
| 125 | + description = "CPU threads per core when hyperthreading is enabled for aws EC2 instance" |
| 126 | + default = 2 |
| 127 | +} |
| 128 | + |
| 129 | +variable "instance_network_interface_plus_count" { |
| 130 | + description = "number of additional network interfaces to add to aws EC2 instance" |
| 131 | + default = 0 |
| 132 | +} |
| 133 | + |
| 134 | +variable "os" { |
| 135 | + description = "os" |
| 136 | + default = "ubuntu24.04" |
| 137 | +} |
| 138 | + |
| 139 | +variable "ssh_user" { |
| 140 | + description = "ssh_user" |
| 141 | + default = "ubuntu" |
| 142 | +} |
| 143 | + |
| 144 | +################################################################################ |
| 145 | +# Specific DB machine variables |
| 146 | +################################################################################ |
| 147 | +variable "server_instance_type" { |
| 148 | + description = "type for aws EC2 instance" |
| 149 | + default = "c7i.4xlarge" |
| 150 | +} |
| 151 | + |
| 152 | +variable "server_instance_count" { |
| 153 | + description = "count of aws EC2 instances" |
| 154 | + default = 1 |
| 155 | +} |
| 156 | + |
| 157 | +variable "server_instance_cpu_core_count" { |
| 158 | + description = "CPU core count for aws EC2 instance" |
| 159 | + default = 8 |
| 160 | +} |
0 commit comments