cybergavin 98c4cc5f3d Updated topology image 3 years ago
..
README.md bdf14b9afc first commit 3 years ago
az-tfl-vnetpeer-perf-resources.png bdf14b9afc first commit 3 years ago
az-tfl-vnetpeer-perf-topology.png 98c4cc5f3d Updated topology image 3 years ago
main.tf bdf14b9afc first commit 3 years ago
terraform.tfvars bdf14b9afc first commit 3 years ago
variables.tf bdf14b9afc first commit 3 years ago

README.md

Azure Terraform Lab - az-tfl-vnetpeer-perf - Network Performance between VMs in different VNets, across VNet peerings

Topology

az-tfl-vnetpeer-perf-topology

Resources created

This Lab creates the following Azure resources (prefix 'cg' used for names):

az-tfl-vnetpeer-perf-resources

Use-Cases

  • Measure network performance (e.g. throughput, latency) between VMs (Oracle Linux) in different VNets across VNet peerings
  • qperf is installed and firewalld is disabled on both VMs
  • You may use ping, iperf3 or other network performance tools (may have to be installed)

Usage

  • Authenticate with Azure (e.g. Azure CLI) and switch to the appropriate subscription (az account set -s )
  • Configure appropriate values for the variables in terraform.tfvars
  • terraform init
  • terraform apply
  • Evaluate/Test/Demo
  • terraform destroy
  • Example - qperf

    • On vm1, use qperf to listen

    sudo qperf

    • On vm2, use qperf to connect to vm1 (private IP) and test TCP bandwidth and latency for 10 seconds

    sudo qperf <vm1 private IP> -t 10 tcp_bw tcp_lat

    References