mazault
mazault

Reputation: 35

Why google cloud function runs more that 2 minutes?

I have a function, sometimes execution (even not after "cold start") takes 2 minutes. The local copy of the same function works in milliseconds.

Am I missing smth in google cloud configuration?

latency stats from GCP dashboard

Upvotes: 0

Views: 230

Answers (1)

guillaume blaquiere
guillaume blaquiere

Reputation: 75810

With Cloud Functions you have CPU Ghz compute power according to the memory that you allow to your Cloud Functions.

Note: in this table, with 4Gb, you have 2vCPU @2.4Ghz, not 1vCPU at 4.8Ghz.

By default the memory is set to 256Mb. Try to deploy with 2Gb and you will increase your performances.

Note2: Your workstation has often 4, 8 or 16CPU @3+Ghz. Here it's only 1 @2.4Ghz max!

Upvotes: 2

Related Questions