Search code examples
herokuheroku-postgresheroku-cli

CPU burst balance value for Heroku pg:diagnose


I've been working to optimize performance of a Postgres database (Standard-0 plan) hosted on Heroku.

When running heroku pg:diagnose, I see a YELLOW: CPU Burst message, along with a Balance value. The Balance values I've seen have ranged from ~3 to ~300 over time.

What does the balance value refer to, and how should it be interpreted?


Solution

  • I wouldn't worry so much about the number itself, though I suspect that it represents the number of CPU burst credits (an AWS concept) remaining. In the documentation for pg:diagnose, YELLOW sounds like you're actively using burst credits and will run out at some point whereas RED indicates that you've exhausted those credits.