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.

asked 2 months ago131 views
2 Answers
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
answered 2 months ago
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
EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions