Closed Robsteranium closed 2 years ago
I dont think we wanted. managed instance groups - this is for autoscaling etc.
Have parked this as we probably don't want newly provisioned instances to drop into the load-balancer either - not least as the database is empty at first!
I'm closing this as I think that, on reflection, it's a non-issue!
The load balancer directs traffic to servers in the search-prototype instance group. Newly provisioned servers have to be added to this group.
Unfortunately we can't use the Ansible to automate this because it's an Unmanaged Instance Group. The module google.cloud.gcp_compute_instance_group just creates groups.
Instead we need to use the module google.cloud.gcp_compute_instance_group_manager to create a Managed Instance Group and use templates to create the server instances.
It would also be nice to automate the creation of the load balancer (idempotently).