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
질문됨 일 년 전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
답변함 일 년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠