From 6edfa7ba7fb957f21cf96e4cef033dfbeb85285a Mon Sep 17 00:00:00 2001 From: Jamil Date: Fri, 28 Mar 2025 13:39:08 -0700 Subject: [PATCH] feat(infra): Use gVNIC for relay network interface driver (#8537) This is supposed to offer much better performance and networking features in GCP. I would bet it supports XDP as well, unlike the default VIRTIO_NET driver. See: https://cloud.google.com/compute/docs/networking/using-gvnic Related: https://github.com/firezone/firezone/issues/7518#issuecomment-2762357354 --- terraform/modules/google-cloud/apps/relay/main.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terraform/modules/google-cloud/apps/relay/main.tf b/terraform/modules/google-cloud/apps/relay/main.tf index 05cb741d6..437d5c288 100644 --- a/terraform/modules/google-cloud/apps/relay/main.tf +++ b/terraform/modules/google-cloud/apps/relay/main.tf @@ -197,6 +197,8 @@ resource "google_compute_instance_template" "application" { network_interface { subnetwork = var.instances[each.key].subnet + nic_type = "GVNIC" + stack_type = "IPV4_IPV6" ipv6_access_config {