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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ