Reputation: 31
I am planning to create an External HTTPS load balancer on GCP but in my use case there are no identically configured VMs and i need to make sure it should be a highly available (HA) setup.
So as no identical VMs i am planning to go with Unmanaged instance group(for backend-service configuration in LB) but in gcp documentation it is mentioned that unmanaged instance group is not suitable for HA.
can you help me out which approach we need to choose for this use case?
Thanks in advance...
Upvotes: 0
Views: 2166
Reputation: 31
I have tried using different backend services for each unique VM type, so that way every unique VM type would be in its own Managed Instance group and set up the https load balancer and it worked!
Upvotes: 0
Reputation: 567
I would like to give some suggestions on how to make your infra setup as reliable :
Get global https LB
Even though you have different VM config still get the managed instance group as backend
Get ssl cert for your domain if used and make it secure too
Upvotes: 0
Reputation: 75990
Unmanaged means not managed! And it means a lot.
Because, it's not managed, you have to ensure all these things by yourselves. Not impossible, but a lot to do. Or switch to a managed instance group, even if your group is only 1 VM!
Upvotes: 0
Reputation: 70
If you put them in the same Unmanaged Instance Group, and then to an backend service the same request may end up in any of the VMs, so they need to serve the same content, for the same request.
As in case you need more VMs to respond to the requests depending on the load for example, it is required to have a single image that can be provisioned on multiple VMs.
Another solution would be to have different backend services for each unique VM type, so that way every unique VM type would be in its own Managed Instance group.
I don't think there is another way, beside Managed Instance Group to achieve HA with VMs instances in GCP.
Upvotes: 0