存储帐户上的 Azure CDN 灾难恢复

DR for Azure CDN over Storage Account

我已经通过 Azure 存储帐户配置了 Azure CDN(标准 Microsoft profile/tier)来为我的静态前端网站提供服务。我已将自定义域添加到 Azure CDN 端点,我们称之为 www.example.com。现在,假设存储帐户由于该区域的中断而突然不可用。

问题
1. 如果用户点击 www.example.com,他们是否能够查看前端网站?
2. 如果 CDN 端点缓存网站,当底层存储帐户关闭时,它将为前端网站提供多长时间。

P.S.
我已阅读 以设置 Azure 前门,但除非绝对需要,否则我尽量不修改设置。

如果用户点击 www.example.com,他们是否能够查看前端网站?

是的,用户应该可以查看该网站,因为内容是由 CDN 缓存的。从这个 link:

An object that's already cached in Azure CDN remains cached until the time-to-live period for the object expires or until the endpoint is purged. When the time-to-live period expires, Azure CDN determines whether the CDN endpoint is still valid and the object is still anonymously accessible. If they are not, the object will no longer be cached.

如果 CDN 端点缓存网站,它会在底层存储帐户关闭时为前端网站提供多长时间。

这取决于您如何配置 CDN 的缓存设置。只要缓存了内容,CDN 就不会尝试命中源来获取新内容。要了解有关缓存和过期的更多信息,您可能会发现此 link 很有用:https://docs.microsoft.com/en-us/azure/cdn/cdn-manage-expiration-of-blob-content.