When I download a 83kb file from cloud storage it takes between 5 and 12 seconds where from my local machine it takes between 2 and 5 seconds.
My cloudSQL inserts are also much slower than when tested from another server to CloudSQL so it seems to be related.
What you expected to happen:
I expect this to be very fast as it is both on the us-central servers
Steps to reproduce:
let filename = `${routeKey}.json.gz`;
logger.info(loggerKey, `filename:${filename}`);
const file = storageBucket.file(filename);
logger.info(loggerKey, `have file:${filename}`);
const [contents] = await file.download()
logger.info(loggerKey, `downloaded:${filename}`);
Other information (workarounds you have tried, documentation consulted, etc):
Here is my stackdriver logs linked to the code above. The download step takes 12 seconds in this instance.
I 2020-07-10T08:18:15.188999891Z downloaded:159414332187374700443664:ATL:BRU:economy.json.gz
I 2020-07-10T08:18:03.111999988Z have file:159414332187374700443664:ATL:BRU:economy.json.gz
I 2020-07-10T08:18:03.111000061Z filename:159414332187374700443664:ATL:BRU:economy.json.gz
I 2020-07-10T08:18:03.111000061Z Starting processSkyJSONFile