Failover criteria in CloudFront

0

Hi, is it possible to add 429 HTTP code to failover criteria in origin group of Cloudfront service?

Currently the only way I know of this, is remap code 429 to another supported by Origin group code. I'd like to handle request with different origin if the first one can't.

Regards, Przemek

Przemek
已提问 1 年前323 查看次数
1 回答
0

Hello,

You need to create an origin group with two origins: a primary and a secondary. If the primary origin is unavailable, or returns specific HTTP response status codes that indicate a failure, CloudFront automatically switches to the secondary origin. The following diagram shows how origin failover works.

Enter image description here

Please go through the below link to know more about this.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/high_availability_origin_failover.html

Thanks, Gautam

profile pictureAWS
已回答 1 年前
  • Sorry for the misunderstanding, I know how to set up origin group.

    In the console only available HTTP codes are: 400, 403, 404, 416, 500, 502, 503 and 504.Maybe this is the wrong place for this question, I mean improve the Cloud front service so that the 429 code is also available in failover criteria in origin group settings.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则