N
Neon2y ago
exotic-emerald

Database Access and Compute Hours on Free Tier

Hi all! I've really been enjoying neon.tech and especially appreciate your free tier provisions. Quick question about DB access and compute hours: I'm aware of the "always-available primary branch compute" allowance, and that you also offer unlimited free DBs. I've made two DBs and can access them using my normal development workflow. But is it only the DB associated with my primary branch that falls under the "always-available" provision? I.E. once I hit 5 compute hours, would I not be able to access or use my second DB until the month rolls over? Thanks for any clarification you can provide here!
5 Replies
vicious-gold
vicious-gold2y ago
Correct. On the free tier, you can create 10 branches. These share a pool of 20 active hours (at 0.25 CPU) for the month. Your primary can run indefinitely So they’re not DBs but rather separate branches and compute. You can make more than one logical database in your main/primary if you want, by using CREATE DATABASE
exotic-emerald
exotic-emeraldOP2y ago
Awesome, thank you so much @ShinyPokemon !
fair-rose
fair-rose2y ago
Hello ! I have a question, I have exceeded the hours of use on the free version, how does it count these hours? Only when the request is sent? For example, one request is equal to, say, 1 second, which means it will count it as a second, right? Will it be too expensive if I have approximately 2000 users?
vicious-gold
vicious-gold2y ago
It’s not a request based model. It’s based on CPU hours. The free tier can run your production database (primary branch) all month at 0.25 CPU /1GB memory without scaling to zero (or auto suspend as we say). If your 2000 users can be served with that much CPU and RAM you’re OK. 20 extra hours at 0.25 CPU are included for database branches. You can use these branches to test changes before merging to production. How long you run a branch to test will impact remaining hours. The minimum runtime is 5 minutes before a branch will auto suspend.
fair-rose
fair-rose2y ago
Thanks bro, very helpful for me and my project

Did you find this page helpful?