fix(infra): Use 2 for default relay queue_count (#8542)

It seems that this cannot be higher than the number of vCPUs in the
instance.

```
Instance 'relay-7h8s' creation failed: Invalid value for field 'resource.networkInterfaces[0].queueCount': '4'. Networking queue number is invalid: '4'. (when acting as '85623168602@cloudservices.gserviceaccount.com')
```
This commit is contained in:
Jamil
2025-03-28 17:07:03 -07:00
committed by GitHub
parent 0110bdf7a7
commit 1c4d3f44c1

View File

@@ -35,9 +35,10 @@ variable "naming_suffix" {
# less than or equal to half the maximum number of queues.
# The active queue count will need to be set at boot in order to be half this, because
# gve driver defaults to setting the active queue count to the maximum.
# NOTE 2: The maximum number here should max the number of vCPUs.
variable "queue_count" {
type = number
default = 4
default = 2
description = "Number of max RX / TX queues to assign to the NIC."
validation {