How much is my database using?
Open your database and look at theUsage tab. It draws four graphs, Memory,
CPU, Storage and Connections, for the last hour, the last 24 hours or the
last 7 days. Each graph shows what your database used against what its tier gives
it, so you can see how close it is to a limit before that becomes a problem.
Where to find it
Open your database, then theUsage tab, the second tab after Overview. A
database that is still on the waitlist has no Usage tab. The tab
has a switch with three periods: 1 hour, 24 hours and 7 days. 24 hours is
the one it opens on. When you choose another period, the address of the page keeps
it, so a link to the page opens on the same period.
Reading usage costs nothing and changes nothing about your database.
Memory
Each point is the highest memory your database used during a short stretch. Memory the system can free by itself, such as file cache, is left out, so the line follows what your database really holds. The title line above the graph says it in one sentence:Peak is the highest point of the period you chose, read against the limit your
database had at that point. Now is the latest point, and it is shown only when
that point is at most 15 minutes old. Otherwise only the peak is shown. The dashed
line labelled Tier limit is the memory your tier gives the database.
CPU
Each point is the average share of processor time your database used during the same stretch. When your tier has a processor share,100% is the whole share of
your tier, not the whole machine, and the line is read against it:
100% is one processor, and the
title line says so:
Storage
The graph shows how much space your data takes, against the storage included in your tier:Peak:
Included storage.
When your database has stayed near a limit for a long time, or has grown past its
included storage, a message above the tabs says so. It is computed from the same
readings these graphs draw. See
the near-limit message. To move to a higher
tier, write to us.
Connections
The graph shows how many connections your database had open, against the most you can open at once:97 is the real maximum for your database. It is lower than the number the
database server is set to, because a few connections are kept for the platform
itself. Those connections, and the ones the platform opens for its own backups,
archiving and health checks, are left out of the figure, so the number is only
your own application’s connections. The dashed line is labelled Connection limit.
Connections are not measured for MySQL databases.
While your database is stopped
A database that is stopped is not measured. A database the console shows asSuspended is stopped in this sense: it is suspended when your wallet balance is
too low to keep it running, and topping up resumes it. See
how to get your data back for the cause and the way back.
Its graphs keep the figures from before, and the line above each graph says so:
Stopped. A stretch with no figure is a gap in
the line, never drawn as zero. When you hover over a gap, the panel says:
Now and refresh
Now is the latest point, not a live reading. A line under the graphs says how
fresh the figures are:
When there is nothing to show
A database that was never measured, for example a new database, shows:Not measured while stopped, and Figures appear about 5 minutes after the database is resumed.
A database that has figures, but none in the period you chose, shows
No figures in this period. where the title line would be.
If the tab cannot load, it says so and offers a Try again button. The wording of
that message is the same for apps and databases and is given on
the app usage page. If the tab says:
What the tab does not show
There is no replica on this tier, so there is nothing to graph for one. Backups are not drawn here: they are shown on theOverview tab of a running PostgreSQL
database, under Backups. See how to get your data back.