You want to automate the creation of a managed instance group and a startup script to install the OS package dependencies. You want to minimize the startup time for VMs in the instance group.
What should you do?
16 comments · newest first
NA
Nathalie
10 months ago
Wait, can you really speed up startup with a custom image?
LE
Lea
10 months ago
I agree, custom VM images save a lot of time.
TR
Trinidad
11 months ago
Not sure about that, what if the image gets outdated?
EA
Earlean
11 months ago
Terraform is cool, but B just makes more sense here.
MA
Maryann
11 months ago
B is the best option for minimizing startup time!
VE
Velda
11 months ago
I vaguely recall that using configuration management tools like Puppet or Ansible might add extra time during startup, but I can't remember the details.
LI
Linwood
11 months ago
I feel like we practiced a question similar to this where using Deployment Manager was emphasized for creating resources efficiently.
DE
Desire
12 months ago
I'm not entirely sure, but I think Terraform is more about infrastructure as code, so it might not be the best choice for minimizing startup time with package installations.
MA
Malcom
12 months ago
I remember we discussed how using a custom VM image could really speed up the startup time since all dependencies would already be included.
JO
Joye
1 year ago
I'm leaning towards the Terraform option. It seems like the most straightforward way to automate the whole process and ensure consistency across the instance group.
MA
Mari
1 year ago
I think using Deployment Manager and Ansible could be a good approach. That way, I can separate the infrastructure creation from the package installation, which might make it easier to manage and maintain.
LI
Lili
1 year ago
Hmm, I'm not sure which option is best here. I'll need to think through the pros and cons of each approach. Maybe I should consider creating a custom VM image to avoid the startup script overhead.
DE
Devora
1 year ago
This seems straightforward. I'd go with Terraform to create the managed instance group and the startup script. That way, I can manage everything in one place and minimize the startup time.
MA
Marguerita
1 year ago
That's a good point, but using Deployment Manager with Ansible in option D could also be effective.
HA
Haley
1 year ago
I disagree, I believe option B is better. Creating a custom VM image will reduce startup time.
MA
Marguerita
1 year ago
I think option A is the best choice. Terraform can automate the creation efficiently.