Yes, AWS Global Accelerator can automatically detect and redirect traffic to healthy endpoints. It continuously monitors the health of all endpoints associated with your static IP addresses by performing automatic health checks using TCP, HTTP, or HTTPS protocols. These health checks are configured either within Global Accelerator for EC2 instances or Elastic IP addresses or through Elastic Load Balancing for load balancer endpoints.
When you add an endpoint to a standard accelerator, it must pass a health check to be considered healthy before it starts receiving traffic. Global Accelerator regularly sends health check requests to all endpoints and instantly reacts to any changes in their health status. If an endpoint fails the health check and is deemed unhealthy, Global Accelerator automatically stops routing traffic to that endpoint and reroutes traffic to the nearest healthy endpoint, ensuring high availability and optimal performance for users.
In cases where no healthy endpoints are available in an endpoint group, Global Accelerator attempts to fail over to healthy endpoints in other endpoint groups (regions). If no healthy endpoints are found after trying the closest endpoint groups, it "fails open" by routing traffic to a random endpoint in the closest group, even if unhealthy, to maintain connectivity.
You can configure health check parameters such as protocol, port, interval, and thresholds to tailor the health monitoring to your application needs. For load balancer endpoints, health checks are managed through the Elastic Load Balancing configuration, and Global Accelerator considers a load balancer healthy if at least one Availability Zone is healthy.
This automatic health detection and traffic redirection mechanism by AWS Global Accelerator helps maintain continuous availability, improve performance, and provide a seamless user experience by routing traffic only to healthy, optimal endpoints[1][2][5][7][8].
Citations:
[1] https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoint-groups-health-check-options.html
[2] https://docs.aws.amazon.com/global-accelerator/latest/dg/introduction-how-it-works.html
[3] https://repost.aws/knowledge-center/global-accelerator-unhealthy-endpoints
[4] https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoints.html
[5] https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoints-endpoint-weights.unhealthy-endpoints.html
[6] https://www.alibabacloud.com/help/en/ga/user-guide/enable-and-manage-health-checks
[7] https://hands-on.cloud/aws-services/global-accelerator/
[8] https://aws.amazon.com/global-accelerator/features/