Swirrl / ook

Structural search engine
https://search-prototype.gss-data.org.uk/
Eclipse Public License 1.0
6 stars 0 forks source link

Ansible to add newly provisioned servers to instance group #39

Closed Robsteranium closed 2 years ago

Robsteranium commented 3 years ago

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).

RicSwirrl commented 3 years ago

I dont think we wanted. managed instance groups - this is for autoscaling etc.

Robsteranium commented 3 years ago

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!

Robsteranium commented 2 years ago

I'm closing this as I think that, on reflection, it's a non-issue!