Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@ resource "aws_spot_instance_request" "client" {
################################################################################
# This will ensure we wait here until the instance is ready to receive the ssh connection
################################################################################
provisioner "remote-exec" {
script = "./../scripts/wait_for_instance.sh"
connection {
host = self.public_ip # The `self` variable is like `this` in many programming languages
type = "ssh" # in this case, `self` is the resource (the server).
user = var.ssh_user
private_key = file(var.private_key)
#need to increase timeout to larger then 5m for metal instances
timeout = "15m"
agent = "false"
}
}
user_data = <<-EOF
#!/bin/bash
echo "Instance is ready" > /var/log/instance_ready.log
EOF

################################################################################
# Deployment related
Expand Down
16 changes: 4 additions & 12 deletions terraform/oss-redisearch-m5-spot-instances/db-resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,10 @@ resource "aws_spot_instance_request" "server" {
################################################################################
# This will ensure we wait here until the instance is ready to receive the ssh connection
################################################################################
provisioner "remote-exec" {
script = "./../scripts/wait_for_instance.sh"
connection {
host = self.public_ip # The `self` variable is like `this` in many programming languages
type = "ssh" # in this case, `self` is the resource (the server).
user = var.ssh_user
private_key = file(var.private_key)
#need to increase timeout to larger then 5m for metal instances
timeout = "15m"
agent = "false"
}
}
user_data = <<-EOF
#!/bin/bash
echo "Instance is ready" > /var/log/instance_ready.log
EOF

################################################################################
# Deployment related
Expand Down
21 changes: 15 additions & 6 deletions terraform/oss-redisearch-m5-spot-instances/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,32 @@ variable "public_key" {
default = "~/.ssh/perf-ci.pub"
}


variable "key_name" {
description = "key name"
default = "perf-ci"
default = "perf-cto-us-east-2"
}

variable "region" {
default = "us-east-2"
}

# (Ubuntu 20.04)
# ubuntu-bionic-20.04-amd64-server with redis 7.4.0 and memtier 2.1.1
# https://us-east-2.console.aws.amazon.com/ec2/home?region=us-east-2#ImageDetails:imageId=ami-0cfbc88a79665b192
# (Ubuntu 22.04, memtier 2.1.4 and redis unstable from March 6th 2025)
# ubuntu@ip-10-3-0-162:~$ memtier_benchmark --version
# memtier_benchmark 2.1.4
# Copyright (C) 2011-2024 Redis Ltd.
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
# There is NO WARRANTY, to the extent permitted by law.
# ubuntu@ip-10-3-0-162:~$ redis-server --version
# Redis server v=255.255.255 sha=f364dcca:0 malloc=jemalloc-5.3.0 bits=64 build=502a999850b32fd8
# https://us-east-2.console.aws.amazon.com/ec2/home?region=us-east-2#ImageDetails:imageId=ami-0cda50c2e20879afb
variable "instance_ami" {
description = "AMI for aws EC2 instance - us-east-2 Ubuntu 20.04 - perf-cto-base-image-ubuntu20.04-redis-7.4.0-tuned-latency"
default = "ami-0cfbc88a79665b192"
description = "AMI for aws EC2 instance - us-east-2 Ubuntu 22.04 - perf-base-image-ubuntu22.04-m6i.8xlarge-20250306-0220"
default = "ami-0cda50c2e20879afb"
}


variable "instance_device_name" {
description = "EC2 instance device name"
default = "/dev/sda1"
Expand Down
19 changes: 14 additions & 5 deletions terraform/oss-standalone-redisearch-m5-spot-instances/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,29 @@ variable "private_key" {

variable "key_name" {
description = "key name"
default = "perf-ci"
default = "perf-cto-us-east-2"
}

variable "region" {
default = "us-east-2"
}

# (Ubuntu 20.04)
# ubuntu-bionic-20.04-amd64-server
# (Ubuntu 22.04, memtier 2.1.4 and redis unstable from March 6th 2025)
# ubuntu@ip-10-3-0-162:~$ memtier_benchmark --version
# memtier_benchmark 2.1.4
# Copyright (C) 2011-2024 Redis Ltd.
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
# There is NO WARRANTY, to the extent permitted by law.
# ubuntu@ip-10-3-0-162:~$ redis-server --version
# Redis server v=255.255.255 sha=f364dcca:0 malloc=jemalloc-5.3.0 bits=64 build=502a999850b32fd8
# https://us-east-2.console.aws.amazon.com/ec2/home?region=us-east-2#ImageDetails:imageId=ami-0cda50c2e20879afb
variable "instance_ami" {
description = "AMI for aws EC2 instance - us-east-2 Ubuntu 20.04 - perf-cto-base-image-ubuntu20.04-redis-7.1.241-tuned-latency"
default = "ami-0e64e0b751414b32e"
description = "AMI for aws EC2 instance - us-east-2 Ubuntu 22.04 - perf-base-image-ubuntu22.04-m6i.8xlarge-20250306-0220"
default = "ami-0cda50c2e20879afb"
}


variable "instance_device_name" {
description = "EC2 instance device name"
default = "/dev/sda1"
Expand Down
16 changes: 4 additions & 12 deletions terraform/oss-standalone-redisearch-m5/bench-client-resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,10 @@ resource "aws_instance" "client" {
################################################################################
# This will ensure we wait here until the instance is ready to receive the ssh connection
################################################################################
provisioner "remote-exec" {
script = "./../scripts/wait_for_instance.sh"
connection {
host = self.public_ip # The `self` variable is like `this` in many programming languages
type = "ssh" # in this case, `self` is the resource (the server).
user = var.ssh_user
private_key = file(var.private_key)
#need to increase timeout to larger then 5m for metal instances
timeout = "5m"
agent = "false"
}
}
user_data = <<-EOF
#!/bin/bash
echo "Instance is ready" > /var/log/instance_ready.log
EOF

################################################################################
# Deployment related
Expand Down
16 changes: 4 additions & 12 deletions terraform/oss-standalone-redisearch-m5/db-resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,10 @@ resource "aws_instance" "server" {
################################################################################
# This will ensure we wait here until the instance is ready to receive the ssh connection
################################################################################
provisioner "remote-exec" {
script = "./../scripts/wait_for_instance.sh"
connection {
host = self.public_ip # The `self` variable is like `this` in many programming languages
type = "ssh" # in this case, `self` is the resource (the server).
user = var.ssh_user
private_key = file(var.private_key)
#need to increase timeout to larger then 5m for metal instances
timeout = "15m"
agent = "false"
}
}
user_data = <<-EOF
#!/bin/bash
echo "Instance is ready" > /var/log/instance_ready.log
EOF

################################################################################
# Deployment related
Expand Down
17 changes: 12 additions & 5 deletions terraform/oss-standalone-redisearch-m5/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,19 @@ variable "region" {
default = "us-east-2"
}

# (Ubuntu 20.04)
# ubuntu-bionic-20.04-amd64-server with redis 7.4.0 and memtier 2.1.1
# https://us-east-2.console.aws.amazon.com/ec2/home?region=us-east-2#ImageDetails:imageId=ami-0cfbc88a79665b192
# (Ubuntu 22.04, memtier 2.1.4 and redis unstable from March 6th 2025)
# ubuntu@ip-10-3-0-162:~$ memtier_benchmark --version
# memtier_benchmark 2.1.4
# Copyright (C) 2011-2024 Redis Ltd.
# This is free software. You may redistribute copies of it under the terms of
# the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
# There is NO WARRANTY, to the extent permitted by law.
# ubuntu@ip-10-3-0-162:~$ redis-server --version
# Redis server v=255.255.255 sha=f364dcca:0 malloc=jemalloc-5.3.0 bits=64 build=502a999850b32fd8
# https://us-east-2.console.aws.amazon.com/ec2/home?region=us-east-2#ImageDetails:imageId=ami-0cda50c2e20879afb
variable "instance_ami" {
description = "AMI for aws EC2 instance - us-east-2 Ubuntu 20.04 - perf-cto-base-image-ubuntu20.04-redis-7.4.0-tuned-latency"
default = "ami-0cfbc88a79665b192"
description = "AMI for aws EC2 instance - us-east-2 Ubuntu 22.04 - perf-base-image-ubuntu22.04-m6i.8xlarge-20250306-0220"
default = "ami-0cda50c2e20879afb"
}

variable "instance_device_name" {
Expand Down