Your Current Cost: Scale-to-Zero (`min_instances = 0`)
Based on your usage, your functions currently scale to zero when not in use. This means you only pay for resources during active requests. Your provided data shows that your usage falls entirely within the generous perpetual free tier, resulting in no direct costs.
Monthly Invocations
~164,000
Free Tier Limit
2,000,000
Current Estimated Cost
$0.00 / month
Cost Calculator: The "Warm Instance" (`min_instances = 1`)
Setting `min_instances` to 1 eliminates cold starts by keeping an instance continuously running. This idle time is billable. Use the calculator below to estimate this new fixed monthly cost based on your function's configuration.
New Estimated Monthly Cost
$2.69
Idle Memory + Idle CPU
Cost Comparison
This chart visualizes the price difference. The cost for active invocations remains $0 within the free tier; the only change is the new fixed cost for the idle instance.
Strategic Recommendations
When is `min_instances=1` Worth It?
✅ Justified for: User-facing APIs, payment gateways, or any function where response time is critical for user experience. The small monthly cost is an investment in performance and reliability.
❌ Often not needed for: Asynchronous background tasks, infrequent scheduled jobs, or development environments where a minor delay from a cold start is acceptable.
Optimization Steps
- ✓Right-Size Your Function: Check logs for actual memory usage and provision only what's necessary to minimize idle costs.
- ✓Consider 2nd Gen: If using 1st Gen, migrating to 2nd Gen is often cheaper for idle instances as you are not billed for idle CPU by default.
- ✓Set Budget Alerts: Always configure a budget alert in Google Cloud Billing to prevent unexpected cost overruns, regardless of your setup.