We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747ec2a commit f5d73e6Copy full SHA for f5d73e6
src/deploy/functions/pricing.ts
@@ -117,14 +117,17 @@ export const V2_FREE_TIER = {
117
118
// In v1, CPU is automatically fixed to the memory size determines the CPU size.
119
// Table at https://cloud.google.com/functions/pricing#compute_time
120
+const VCPU_TO_GHZ = 2.4;
121
const MB_TO_GHZ = {
122
128: 0.2,
123
256: 0.4,
124
512: 0.8,
125
1024: 1.4,
- 2048: 2.4,
126
- 4096: 4.8,
127
- 8192: 4.8,
+ 2048: 1 * VCPU_TO_GHZ,
+ 4096: 2 * VCPU_TO_GHZ,
128
+ 8192: 2 * VCPU_TO_GHZ,
129
+ 16384: 4 * VCPU_TO_GHZ,
130
+ 32768: 8 * VCPU_TO_GHZ,
131
};
132
133
/** Whether we have information in our price sheet to calculate the minInstance cost. */
0 commit comments