How is a CloudFront origin deemed unavailable?

0

If an origin is unavailable, CloudFront will serve the requested object from cache even if it is stale. I have observed that when the origin server is offline, the stale object is served very quickly and it's obvious that the origin isn't contacted during the viewer request.

How does CloudFront know that the origin is unavailable? Is there a heuristic for this, ie. how many requests have to fail before the origin is marked unavailable? At what point will the origin be contacted again?

Thank you!

1回答
0

According to the documentations, Controlling origin timeouts and attempts:

"By default, CloudFront tries to connect to the primary origin in an origin group for as long as 30 seconds (3 connection attempts of 10 seconds each) before failing over to the secondary origin. "

You can customize these.

profile pictureAWS
エキスパート
kentrad
回答済み 2年前

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

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

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

関連するコンテンツ