Hi,
I am looking for an advice to use which service or tool (like cloud scheduler or cloud composer), which would be capable to ssh into each instance of a Managed Instance Group and submit and shell script. We need some jobs to run periodically in every active and healthy instance of a MiG. As the virtual machines of a MiG is ephemeral, looking for a service which can auto discover the running instances of a MiG and ssh to each instances of that and run user defined scripts inside the every virtual machine.
A help from this community and experts suggestion to solve this will be highly appreciated.
Regards
Hello samirsaha214,
Here is a documentation about another feature of MIG. In this documentation, it will discuss how to apply updates for your instances in MIG. I hope this document can help you with your concern.
Hello dinov,
Thanks for the reply and reference documentation. We are using the rolling update using new template. But our use case requirement is little different. Let me write up in more simple form.
Consider we used a MiG with minimum number of instances is 5 and it can scale upto 10 based on CPU and load on application. The application is stable and mostly all the initial 5 instances keep on running for entire day without any scaling (even it is configured). The requirement is whichever 5 instances is serving the application, we need to ssh to those individual instances and run some shell script or commands periodically - without bringing new Instances. In on-prem we have one big static VM always running, and IBM's IWS scheduling software from a master node can ssh to that agent machine and periodically submit the shell scripts which is required for applications.
When we trying to migrate and replace that big static VM by GCP MiG, IBM's IWS tool not getting fit - because it works with conventional target static virtual machine or instances where it needs to know the IP of target machine. Is there any GCP product or scheduler service which can auto discover the healthy and running VMs of a MiG and ssh to individual VMs and submit any batch scripts / commands inside of running VMs?
Thanks
Samir