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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则