Questions tagged [gce-instance-group]

GCE Instance Group and Managed Instance Group (MIG, InstanceGroupManager)

Official documentation

71 questions
2
votes
1 answer

http 502 errors when new instance is being created in a group

We are using cross region load balancing. When we get heavy traffic all at once, within 1 region, it begins to spin up new instances. While it is starting new instances, we get random HTTP 502 errors. Screenshots of configurations below. Is…
2
votes
1 answer

Change Compute Engine machine instance type when part of a load balanced instance group

What is the best way to change the instance type of a machine that is part of a load balanced instance group? I'd like to avoid losing the machine name and data if possible. For a non load balanced instance, I see that you can change the instance…
2
votes
1 answer

Instance Group : remove autoscaling and set number of instances to 0

I have a requirement in which i have to stop instance group during night hours and then restart in the morning. Is there anyway I can stop instance group for few hours. From console i can change autoscaling to off and set number of instances to 0…
2
votes
1 answer

How to fetch instances of instance groups for a managed instance group with multi-zone configuration

I recently started using managed instance group with multi zone configuration. When i use GCE api to fetch instances for this instance groups zone is a required parameter. For a managed instance group with instances in multiple zone instance group…
2
votes
1 answer

GCE load balancer health check vs Instance Groups health check

I am confused by the Google Compute Engine health check. There is one health check on the load balancing level and there is another in the instance groups. What are the differences among the two? can i run both or one at a time?
Moses Liao GZ
  • 1,556
  • 5
  • 20
  • 45
2
votes
1 answer

Why I can't choose managed instance group I created when setting up http load balancer in gcloud?

I'm trying to setup http load balancer, with auto-scaling enabled managed instance group for the back-end service. The problem occurs when I tried to add instance groups while creating backend service, I already made my managed instance group from…
1
vote
1 answer

How to effectively perform zonal outage simulation in GCP in regional MIG so that the attached VM rebuilds in the remaining zone during the outage?

Recently our team is trying to perform DR proving exercise on the VMs attached to the regional MIG in a GCP project. We followed google's documentation(https://cloud.google.com/compute/docs/instance-groups/regional-mig-simulate-zonal-outage) for…
1
vote
2 answers

Delayed sequential restart of Compute Engine VMs in Managed Instance Groups

I have a Managed Instance Group of Google Compute Engine VMs (based on a template with container deployment on Container-Optimized OS). The MIG is regional (multi-zoned). I can release an updated container image (docker run, docker tag, docker…
1
vote
1 answer

Pulumi on GCP - How to create a Managed Instance Group with Docker Container Instances

I've been attempting to create a managed instance group on GCP which consists of instances that host a custom docker image. However I'm struggling to figure out how to do this with Pulumi. Reading Google's GCP documentation it's possible to deploy…
1
vote
3 answers

how to restart instance group via python google cloud library

I am not able to find any code sample or relevant documentation on python library for google cloud Want to restart managed instance groups all vms via cloud function. To list instances I am using something like this import…
1
vote
1 answer

List internal IP addresses of GCE Instance groups

I was trying to automate outputting the Internal IP Addresses of instances that are created as part of Managed Instance groups (MIG) in Google cloud Compute engine. This was the closest documentation I could see:…
1
vote
1 answer

How to View Google Cloud Compute Engine Managed Instance Group, is it a stateful or stateless?

At first when creating a compute engine managed instance group, the form allow to select the instance group type Managed or unmanaged. Under managed compute engine instance group, we have option to select stateful or stateless, but after creating…
1
vote
1 answer

In google cloud platform, can we name the instances in a specific series in instance group?

I'm new to the google cloud platform, I've created an instance group. I want to know that, Is it possible to name the instances of instance group in a specific series? For eg. : my-GCP-instance-001, my-GCP-instance-002, my-GCP-instance-003 then if…
1
vote
2 answers

How do I get instance-group name from inside of a GCE instance?

This command gives me the instance name: curl -X GET http://metadata.google.internal/computeMetadata/v1/instance/name -H 'Metadata-Flavor: Google' This command gives me the instance zone: curl -X GET…
stkvtflw
  • 12,092
  • 26
  • 78
  • 155
1
vote
1 answer

How to specify a container id on managed instance groups

When accessing an instance from a managed instance group on GCE, the deployed app container has a random container id (like c948a5850b6c) instead of a named one (like app). Is there a way to specify an id to simplify accessing the container?