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!

gavin
已提問 2 年前檢視次數 298 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南