Why is scp is very slow from local windows to ec2 c5.large instance?

0

I'm no expert, but my understanding is the c5.large has great network performance; however, when I run scp to copy a large local zip file (~800MB) to the instance, the upload speed is ~160KB/s.

The instance has a volume of 8GiB gp2 storage. Other posts mentioned to check my Burst Balance. It is at 100%, which I think is good. Also, I still have plenty of space on it.

Not sure why I am getting low speed. Looking at the networking metrics, nothing sticks out.

已提问 3 个月前175 查看次数
2 回答
0

There are multiple factors , the network bandwidth capabilities of your local machine also matter here , there will be additional latency over the public internet compared to a local network or Direct Connect . SCP can also be slow due to the overhead of the SSH protocol used by SCP. What is the purpose of this exercise or what is the expected outcome? This will help us give right solutions. A significant speed advantage can be gained by incorporating Amazon S3 into your migration process. You can get the benefit from S3's optimized data transfer capabilities. In order to bypass the SCP speed, you can upload your files to S3 and then transfer them to your EC2 instance. You can also try alternative methods like rsync (It have few optimizations to make the operation faster) Furthermore, what is the type of C5 instance you are using? Are you using the C5n, which provides high network bandwidth and I/O performance.

profile pictureAWS
已回答 3 个月前
0

It's implied from your question that you are transferring data across the internet to the instance. The troubleshooting challenge here is that you (and no one individual) controls the internet. You also don't mention the latency that you have between the source and destination computers - that can have an effect on transfer speed as well.

To test the c5.large I'd suggest setting up another instance in the same VPC and see what transfer speeds you get. Assuming that you get acceptable times for the copy it will eliminate the instance as a potential source of the problem.

profile pictureAWS
专家
已回答 3 个月前

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

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

回答问题的准则