简体   繁体   English

AWS Cloudfront S3非常慢

[英]AWS cloudfront s3 is very slow

I have a reactJS application which is stored in AWS S3 and deployed over AWS cloudfront. 我有一个reactJS应用程序,该应用程序存储在AWS S3中并部署在AWS Cloudfront上。

The app is very slow on AWS. 该应用程序在AWS上非常慢。

What is a bestpractise to increase the speed? 什么是提高速度的最佳实践? hosting on a EC2 or? 托管在EC2上还是?

Thanks in advance. 提前致谢。

Check out https://status.aws.amazon.com/ 查看https://status.aws.amazon.com/

11:48 AM PDT We're investigating longer than usual propagation times for changes to CloudFront configurations. PDT上午11:48我们正在研究比通常的传播时间更长的时间来更改CloudFront配置。 End-user requests for content from our edge locations are not affected by this issue and are being served normally. 最终用户从我们的边缘位置请求内容的请求不受此问题的影响,并且可以正常服务。 12:52 PM PDT We have identified the root cause of the longer than usual propagation times for changes to CloudFront configurations. PDT下午12:52我们已经确定了更改CloudFront配置的传播时间比平时更长的根本原因。 We continue to work toward resolution. 我们继续致力于解决。 1:18 PM PDT Between 8:50 AM and 12:59 PM PDT, we experienced longer than usual propagation times for changes to CloudFront configurations. PDT下午1:18在PDT上午8:50到12:59之间,对于CloudFront配置的更改,我们经历了比平时更长的传播时间。 The issue has been resolved and the service is operating normally. 问题已解决,服务正常运行。

There isn't much information to tell why app is slow. 没有太多信息可以说明为什么应用程序运行缓慢。

  1. Are you connecting to the correct edge location ? 您是否连接到正确的边缘位置?
  2. Is it HIT from cache or MISS ? 是从缓存还是MISS命中? Whats your TTL configuration on CloudFront and are there cache-control metadata added to S3 object ? 您在CloudFront上的TTL配置是什么?是否将缓存控制元数据添加到S3对象?
  3. Compress JS on CF or upload compressed on S3. 在CF上压缩JS或在S3上压缩。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM