Is there a way to reduce the latency of GCS uploads? Can I somehow force a faster Cloud Storage for a higher rate?
If I create an uploadHandler via GAE
blobstore.create_upload_url('/upload', gs_bucket_name='bucket_name')
It creates an url like this: /_ah/upload/AMmfu6ay12yQDxuTOEjUh5...c-J09am7J4r
A small post to this url (120kb) results in this timeline: (8 Seconds latency!)
Blocking : 2.000 ms
Sending : 241.000 ms
Waiting : 8.22 S
Receiving : 1.000 ms
But posting the same file to GAE itself and using the cloudstorage SDK to write the blob to GCS I get this timeline:
Blocking : 2.000 ms
Sending : 221.000 ms
Waiting : 2.62 S
Receiving : 1.000 ms
Why this drastic difference? What parameters can I tweak to get the latency down? It would be great to be able to skip the extra load on my front-end GAE instances, dose anyone have experience in GCS when speed is important?