When I first created my gcp account, I was creating e2-micro debian instances, and uploading 2 tar files in an instant, or few seconds.
Now if I create an e2-micro with defaults I'll a max upload speed 150KB/s
If I pick for network NIC type: VirtIO (by default it is "---" )
I can upload with 20 MB/s 1 file of 100MB
after reconnecting to the VM I tried upload another file also 100 MB, and now it from 800 KB/s to 1500 KB/s
this issue started after I tried going through the settings when I wanted to make the SSH port open only for my ip, saw that it is quite different from aws/azure, I created a tag and tried to connect it somehow.
Hi @omuleanu,
Welcome to Google Cloud Community!
One potential cause of slow upload speeds to your VM is your internet connection. Since files originate from your local machine, a slow upload speed from your internet service provider (ISP) will directly impact transfer times.
Before uploading to your VM, try these steps:
-Run a Speed Test: Use a website like speedtest.net or fast.com to check your internet connection's upload speed. Check if your current upload speed is within your aligned plan's advertised speeds.
-Test from a Different Machine: You can also try to upload the same file from another computer with a different internet connection. This helps isolate whether the issue lies with your local machine or your internet service.
You can also perform alternative ways to upload a file to your VM via SCP or Google Cloud CLI to see if it will improve the upload speed. Here is the guide on how to Transfer files to Linux VMs using SCP and Google Cloud CLI. Kindly follow the steps based on your local machine’s operating system.
You are right on opening the port 22 and allowing only your local IP for best practices, it should have no impact on upload speed.
I hope the above information is helpful.
Here's the upload speed via my wifi.
I also have vms in azure and aws in the same region ( N. Virginia ) and never had any issues with the upload speed there, only on GCP.
I fixed the problem by copying it to VM via a storage bucket, this way I copy the file to the VM in 1 second,
directly to VM it takes 1 hour.
gcloud storage cp myfile.tar gs://mybucket/
gcloud compute ssh mywebsrv --zone us-east4-b --command "sudo gcloud storage cp gs://mybucket/myfile.tar /home/user1/"