Reputation: 4775
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.
Upvotes: 0
Views: 326
Reputation: 39834
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.
Upvotes: 2