Closed yardenas closed 10 months ago
@apichick is probably best place to chime in on this
can you paste the full error message which includes the source line number and file?
│ Error: Error creating BackendService: googleapi: Error 400: Invalid value for field 'resource.outlierDetection': '{ "consecutiveErrors": 10, "maxEjectionPercent": 10, "enforcingConsecutiveErrors": 100, "enforci...'. Outlier detection is not supported., invalid
│
│ with module.application.module.glb[0].google_compute_backend_service.default["default"],
│ on .terraform/modules/application.glb/modules/net-lb-app-ext/backend-service.tf line 44, in resource "google_compute_backend_service" "default":
│ 44: resource "google_compute_backend_service" "default" {
│
╵
Hope this helps
You're using a Global Load Balancer, this might be the reason
I see, thanks for the info! @ludoo, are you aware of any other way to achieve automatic failover?
Thanks a lot for helping ! 💪
@apichick was chatting with me about it working with GLB, she might have code for that. Let's wait a minute until she has time to chime in. :)
FWIW, I guess that once the Outlier detection for serverless NEGs enters GA (it's pre-GA as of writing this) the google_compute_backend_service
's outlier_detection should be able to support the EXTERNAL_MANAGED
LB scheme as well (at least as long as IAP isn't enabled). See: https://github.com/hashicorp/terraform-provider-google/issues/15210
Closing this for now as I don't think it's a module issue from our side. Feel free to reopen if you still want to discuss, or if new evidence emerges.
Hi everyone,
Some context: I'm trying to set up a multiregion deployment for cloudrun, mainly for the purpose of automatic failover. My understanding is that whenever one of the NEGs (of a specific region) becomes unhealthy, traffic is redirected to other NEGS.
Now, to mark a NEG as unhealthy, I have two options:
The documentation states:
So it seems that I cannot use health checks but only outlier detection.
Now for the code (a modified version of the serverless cloud run blueprint, to support multiple regions):
Whenever I run this code I get the following error:
What am I missing here? Any help would be very much appreciated!