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
demandé il y a un an323 vues
1 réponse
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
répondu il y a un an
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions