CloudFront 错误“CloudFront 尝试与源建立连接”

问题描述 投票:0回答:2

我有一个在 AWS 中运行的应用程序。 CloudFront 已启用。

我的应用程序正在使用 HTTP。此外,源协议策略在 CloudFront 中配置为“HTTP”。

但有时我会看到这个错误:

ERROR
The request could not be satisfied.
CloudFront attempted to establish a connection with the origin, but either 
the attempt failed or the origin closed the connection. 
Generated by cloudfront (CloudFront)

如果有人能帮我解决这个问题那就太好了。

amazon-web-services amazon-ec2 amazon-cloudfront
2个回答
1
投票

根据我的经验,这是由 Cloudfront 端点上的默认读取超时引起的。默认值为 30 秒,但可以提高到 60 秒。如果您还没有这样做,可以将日志从 cloudfront 输出到 S3 存储桶,您可以检查该存储桶以获取更多信息。

如果您的有效负载很大,则可能会导致超时。

此外,如果您使用 Cloudformation 构建了 Cloudfront 端点,则您需要更改的模板属性是:

Properties/DistributionConfig/Origins[]/CustomOriginConfig/OriginReadTimeout


0
投票

Safwan hassan abdullwahed qahtan 我来自也门 taiz 我的哥哥 nashwan hassan

  • 阿卜杜勒瓦赫德·卡坦

在 alraghee Campany kasa 工作 [电子邮件受保护]

© www.soinside.com 2019 - 2024. All rights reserved.