0

Is there a way to make HTTP call to all instances running behind an google app engine load balancer.

This is a similar question asked here for aws.

npr
  • 4,325
  • 4
  • 20
  • 30
  • Stackoverflow is ignoring aws link I provided above - so here is AWS question link - https://stackoverflow.com/questions/39498423/how-to-make-a-http-call-reaching-all-instances-behind-amazon-aws-load-balancer – npr Jun 15 '18 at 15:26

1 Answers1

2

If you're using the standard environment and manual scaling (not possible for auto/basic scaling) you could use Targeted routing to reach a particular instance:

https://[INSTANCE_ID]-dot-[VERSION_ID]-dot-[SERVICE_ID]-dot-[MY_PROJECT_ID].appspot.com
http://[INSTANCE_ID].[VERSION_ID].[SERVICE_ID].[MY_CUSTOM_DOMAIN]

Note: Targeting an instance is not supported in services that are configured for auto scaling or basic scaling. The instance ID must be an integer in the range from 0, up to the total number of instances running. Regardless of your scaling type or instance class, it is not possible to send a request to a specific instance without targeting a service or version within that instance.

If you're using the flexible environment it's not possible to reach a specific instance. From Targeted routing:

Note: In the flexible environment, targeting an instance is not supported. It is not possible to send requests directly to a specific instance.

Dan Cornilescu
  • 39,470
  • 12
  • 57
  • 97