Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Azure/telescope into Optimi…
Browse files Browse the repository at this point in the history
…ze-GH-CI-Workflow
  • Loading branch information
sumanthreddy29 committed Mar 6, 2024
2 parents 938ae85 + 970a0be commit ede22dc
Show file tree
Hide file tree
Showing 21 changed files with 838 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/terraform/azure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,4 @@ variable "private_link_conf" {
pe_subnet_name = string
})
default = null
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

sudo perl -pi -e 's/^#?Port 22$/Port 2222/' /etc/ssh/sshd_config
sudo service ssh restart

sudo apt-get update
sudo apt-get install iperf -y
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

sudo perl -pi -e 's/^#?Port 22$/Port 2222/' /etc/ssh/sshd_config
sudo service ssh restart

sudo apt-get update
sudo apt-get install iperf -y

for i in {0..1}
do
nohup iperf --server --port "2000$i" &> /dev/null &
done

nohup iperf --server --udp --port 20002 &> /dev/null &
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
scenario_type = "perf-eval"
scenario_name = "lb-cross-region-iperf"
deletion_delay = "2h"
network_config_list = [
{
role = "network"
vpc_name = "us-east-2-vpc"
vpc_cidr_block = "10.2.0.0/16"
subnet = [
{
name = "us-east-2-client-subnet"
cidr_block = "10.2.1.0/24"
zone_suffix = "a"
}
]
security_group_name = "us-east-2-sg"
route_table_cidr_block = "0.0.0.0/0"
sg_rules = {
ingress = [
{
from_port = 2222
to_port = 2222
protocol = "tcp"
cidr_block = "0.0.0.0/0"
},
{
from_port = 20001
to_port = 20001
protocol = "tcp"
cidr_block = "0.0.0.0/0"
},
{
from_port = 20002
to_port = 20002
protocol = "udp"
cidr_block = "0.0.0.0/0"
}
]
egress = [
{
from_port = 0
to_port = 0
protocol = "-1"
cidr_block = "0.0.0.0/0"
}
]
}
},
]
loadbalancer_config_list = []
vm_config_list = [{
vm_name = "client-vm"
role = "client"
subnet_name = "us-east-2-client-subnet"
security_group_name = "us-east-2-sg"
associate_public_ip_address = true
zone_suffix = "a"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
scenario_type = "perf-eval"
scenario_name = "lb-cross-region-iperf"
deletion_delay = "2h"
network_config_list = [
{
role = "network"
vpc_name = "us-west-1-vpc"
vpc_cidr_block = "10.2.0.0/16"
subnet = [
{
name = "us-west-1-server-subnet"
cidr_block = "10.2.2.0/24"
zone_suffix = "c"
}
]
security_group_name = "us-west-1-sg"
route_table_cidr_block = "0.0.0.0/0"
sg_rules = {
ingress = [
{
from_port = 2222
to_port = 2222
protocol = "tcp"
cidr_block = "0.0.0.0/0"
},
{
from_port = 20000
to_port = 20000
protocol = "tcp"
cidr_block = "0.0.0.0/0"
},
{
from_port = 20001
to_port = 20001
protocol = "tcp"
cidr_block = "0.0.0.0/0"
},
{
from_port = 20002
to_port = 20002
protocol = "udp"
cidr_block = "0.0.0.0/0"
}
]
egress = [
{
from_port = 0
to_port = 0
protocol = "-1"
cidr_block = "0.0.0.0/0"
}
]
}
},
]
loadbalancer_config_list = [{
role = "ingress"
vpc_name = "us-west-1-vpc"
subnet_name = "us-west-1-server-subnet"
load_balancer_type = "network"
lb_target_group = [{
role = "nlb-tg"
tg_suffix = "tcp"
port = 20001
protocol = "TCP"
rule_count = 1
vpc_name = "us-west-1-vpc"
health_check = {
port = "20000"
protocol = "TCP"
interval = 10
timeout = 10
healthy_threshold = 2
unhealthy_threshold = 2
}
lb_listener = {
port = 20001
protocol = "TCP"
}
lb_target_group_attachment = {
vm_name = "server-vm"
port = 20001
}
},
{
role = "nlb-tg"
tg_suffix = "udp"
port = 20002
protocol = "UDP"
rule_count = 1
vpc_name = "us-west-1-vpc"
health_check = {
port = "20000"
protocol = "TCP"
interval = 10
timeout = 10
healthy_threshold = 2
unhealthy_threshold = 2
}
lb_listener = {
port = 20002
protocol = "UDP"
}
lb_target_group_attachment = {
vm_name = "server-vm"
port = 20002
}
}
]
}]
vm_config_list = [
{
vm_name = "server-vm"
role = "server"
subnet_name = "us-west-1-server-subnet"
security_group_name = "us-west-1-sg"
associate_public_ip_address = true
zone_suffix = "c"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
scenario_type = "perf-eval"
scenario_name = "vm-cross-region-iperf"
deletion_delay = "2h"
public_ip_config_list = [
{
name = "egress-pip"
}
]
network_config_list = [
{
role = "network"
vnet_name = "eastus2-vnet"
vnet_address_space = "10.2.0.0/16"
subnet = [{
name = "eastus2-subnet"
address_prefix = "10.2.1.0/24"
}]
network_security_group_name = "eastus2-nsg"
nic_public_ip_associations = [
{
nic_name = "client-nic"
subnet_name = "eastus2-subnet"
ip_configuration_name = "client-ipconfig"
public_ip_name = "egress-pip"
}
]
nsr_rules = [{
name = "nsr-ssh"
priority = 100
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "2222"
source_address_prefix = "*"
destination_address_prefix = "*"
},
{
name = "nsr-tcp"
priority = 101
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "20001-20001"
source_address_prefix = "*"
destination_address_prefix = "*"
},
{
name = "nsr-udp"
priority = 102
direction = "Inbound"
access = "Allow"
protocol = "Udp"
source_port_range = "*"
destination_port_range = "20002-20002"
source_address_prefix = "*"
destination_address_prefix = "*"
}
]
}
]
loadbalancer_config_list = []
vm_config_list = [{
role = "client"
vm_name = "client-vm"
nic_name = "client-nic"
admin_username = "ubuntu"
zone = "1"
source_image_reference = {
publisher = "Canonical"
offer = "0001-com-ubuntu-server-focal"
sku = "20_04-lts"
version = "latest"
}
create_vm_extension = true
}
]
vmss_config_list = []
nic_backend_pool_association_list = []
Loading

0 comments on commit ede22dc

Please sign in to comment.