简体   繁体   English

慢速文件上传到 AWS cloud9 环境

[英]Slow file upload to AWS cloud9 environment

I've set up an AWS cloud 9 environment running on a t3.medium ec2 instance which is EBS optimized.我已经设置了一个在 EBS 优化的 t3.medium ec2 实例上运行的 AWS cloud 9 环境。 The cloud9 environment is a no ingress environment that is accessed through AWS Systems Manager. cloud9 环境是通过 AWS Systems Manager 访问的无入口环境。

I am trying to use cloud9 as a test environment, and am uploading my local code and related files into the environment/instance.我正在尝试使用 cloud9 作为测试环境,并将我的本地代码和相关文件上传到环境/实例中。

There are about 65,000 files related to the program which I am trying to upload.大约有 65,000 个文件与我要上传的程序相关。 All though there are many files, they are not particularly large.尽管有很多文件,但它们并不是特别大。 When I downloaded them from Git Lab, it only took about 2 minutes to download, however as I am trying to upload them into the environment it is on track to take about 4-5 hours.当我从 Git Lab 下载它们时,只需要大约 2 分钟即可下载,但是当我尝试将它们上传到环境中时,大约需要 4-5 小时。 Is slow file uploading to cloud9 environments a known issue?将文件上传到 cloud9 环境的速度慢是一个已知问题吗? And is there anything I can do to improve it?我能做些什么来改进它吗?

Would I potentially see a significant upgrade by cloning the Git repository instead?通过克隆 Git 存储库,我可能会看到重大升级吗?

The best solution is to upload the desired files to S3 first, and then copy them into the instance running your cloud9 environment.最好的解决方案是先将所需的文件上传到 S3,然后将它们复制到运行您的 cloud9 环境的实例中。

You can do this from the terminal within cloud9.您可以从 cloud9 中的终端执行此操作。

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

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