-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Azure/telescope into Optimi…
…ze-GH-CI-Workflow
- Loading branch information
Showing
21 changed files
with
838 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -270,4 +270,4 @@ variable "private_link_conf" { | |
pe_subnet_name = string | ||
}) | ||
default = null | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
scenarios/perf-eval/lb-cross-region-iperf/bash-scripts/client-userdata.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
14 changes: 14 additions & 0 deletions
14
scenarios/perf-eval/lb-cross-region-iperf/bash-scripts/server-userdata.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 & |
59 changes: 59 additions & 0 deletions
59
scenarios/perf-eval/lb-cross-region-iperf/terraform-inputs/aws-us-east-2.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] |
120 changes: 120 additions & 0 deletions
120
scenarios/perf-eval/lb-cross-region-iperf/terraform-inputs/aws-us-west-1.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] |
80 changes: 80 additions & 0 deletions
80
scenarios/perf-eval/lb-cross-region-iperf/terraform-inputs/azure-eastus2.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [] |
Oops, something went wrong.