Enable a failover for the backend_service
Closed this issue · 5 comments
Can we enable a failover for the ILB backend.
This is the attribute that I am referring to:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_region_backend_service#failover
I can work on this btw, if approved?
How would you plan to use this? From the documentation, it seems you would have to have two compute_region_backend_service
resources (one as a failover). Should the module be updated to add a failover
replica?
I have second set of MIG (with Instance templates and service accounts) and when a health check on the primary MIG fails I want the ILB to send the traffic to the failover MIG. Currently I set two backends for the ILB and I can see both in the GCP console but the secondary is not marked as failover.
Got it. Yes I think we should update this to accept a failover backend as well.
@morgante can you take a look?