Compute hour discrepancy?
Why does my branch say 16.59 h compute time while my billing say 0.02/5 h (which feels much more accurate) ?
Thanks in advance π
5 Replies
fascinating-indigoβ’2y ago
Hey, I assume you are on the Free Tier. In this case, it is likely that the 16.59 h is the "Active time" on your main/primary branch, which is unlimited on the Free Tier. In other words, you've run your primary branch compute for 16.59 h this month. Does that seem possible?
The 0.02/5 hours on your billing page is for child branch computes. You likely created a child branch or branches and only ran those briefly before they autosuspended. You ran the compute associated with the child branch for 0.02 compute hours. A compute hour is 1 hour on a 1 vCPU compute. You only get .25 vCPU computes with the Free Tier, so multiply 0.02 by four (for the actual time you ran the compute).
fascinating-indigoOPβ’2y ago
Hi yes I'm on free tier, but now I'm worried I'm doing something wrong.
It's actually saying my active time is 66.52 h on my main branch this month...
Im connecting using the serverless driver on the edge and am closing the pools. Even have a listener fire when the close happens to ensure they do.
I only have a handful of tables with a couple rows and all my operations are recorded as less than a second.
What do you mean the branches autosuspended? I have Neon integrated with Vercel, and am currently running a lot of rebuilds, but I'm not fully grasping what the Vercel integration is doing.
So is the billing section what I need to worry about and not the compute time listed on my main branch? Also why wouldn't it be 0.02 divided by 4 if my computer hours are running at a quarter the speed?
Thanks so much for you help! And sorry for all my confusion π«
fascinating-indigoβ’2y ago
On the Free Tier, your primary branch has a compute instance attached to it. You don't need to worry, as that compute is always available. It can run 24/7. Your app will always be able to access data on this branch via that compute.
Autosuspend: On the Free Tier, computes will go idle after 5 minutes of inactivity. But not to worry. The will fire up very fast when a connection comes in.
https://neon.tech/docs/guides/auto-suspend-guide
The Vercel integration creates a branch from your primary branch for preview deployments. Each branch has its own compute. For these computes, you get 5 compute hours a month.
https://neon.tech/docs/guides/vercel
Compute hours = compute size x active time
On the Free Tier, your compute size is always .25 vCPU. Active time is just the actual time your compute runs.
https://neon.tech/docs/introduction/usage-metrics#compute
Neon
Configuring Autosuspend for Neon computes - Neon Docs
Neon's Autosuspend feature controls when a Neon compute endpoint transitions to an Idle state (scales to zero) due to inactivity. For example, if your autosuspend setting is 5 minutes, your compute wi...
Neon
Connect with the Neon Vercel Integration - Neon Docs
This guide describes how to connect using the Neon Vercel Integration from the Vercel marketplace. The integration connects your Vercel project to a Neon database and creates a database branch for eac...
Neon
Usage metrics - Neon Docs
This topic describes Storage, Compute, and Project usage metrics in detail so that you can better manage your plan allowances and extra usage. Storage Storage is the total volume of data and history...
fascinating-indigoOPβ’2y ago
Awesome articles! Thank you!!
Final question: Does anything downgrade once I upgrade from the free tier? Like will my primary branch no longer have a compute instance attached to it? Your phrasing before sounds like something will change there
fascinating-indigoβ’2y ago
@RickRyan26 everything should continue working as-is once you upgrade π