Heroku Postgres Production Tier Technical Characterization
Last updated 16 November 2017
Table of Contents
All of the information in this document is subject to change as Heroku adapts the service to better handle customer database workloads.
The Heroku Postgres Standard and Premium tier plans offer different performance characteristics based on their CPU, RAM and I/O architectures. This article provides a technical description of the implementation of these production plans, and some of the performance characteristics of each.
The following table outlines our production tier plans along with relevant specifications about the underlying hardware.
|Plan||vCPU||RAM||PIOPs||Burstable||Connection Limit||Disk Size|
|standard-0 premium-0||2||4 GB||200||yes||120||64 GB|
|standard-2 premium-2||2||8 GB||200||yes||400||256 GB|
|standard-4 premium-4||2||15 GB||1000||no||500||512 GB|
|standard-5 premium-5||4||30 GB||2000||no||500||1 TB|
|standard-6 premium-6||8||60 GB||3000||no||500||1 TB|
|standard-7 premium-7||16||120GB||4000||no||500||1 TB|
|standard-8 premium-8||32||240GB||4000||no||500||1 TB|
To view technical characterizations for legacy Heroku Postgres plans, visit the Legacy Plans article.
All Heroku Postgres plans aside from the hobby tier are single-tenant plans. A customer’s database and related management software are the sole residents of resources on the instance, offering more predictable and less variable performance. However, virtualized infrastructure is still subject to some resource contention and minor performance variations are expected.
All Heroku Postgres plans come with a baseline level of performance but a few plans have the ability to burst past that baseline. Unlike a multi-tenancy model, burstable performance plans allows each database to run in isolation as a single-tenant instance. This means that when your database is provisioned, no other customer will be running on the same server. In the event that your database bursts for an extended period of time it will be brought back to the original baseline level of performance. If a consistent level of performance is needed, a non-burstable Heroku Postgres plan will provide fixed levels of performance.
The baseline level of performance is dictated by the plan type:
Each of these plans can burst past these load averages for a short amount of time but if the database has a sustained load over those amounts, it will be brought back the baseline. The load averages can be found in the Heroku Postgres Server metrics which are part of the log of your application.
Architecture, vCPU, RAM and I/O
All Heroku Postgres plans run on 64-bit architectures, ensuring best performance for internal Postgres operations, and interoperability with other features like Forks and Followers across all production tier plans.
vCPU are the number of virtual processors on the underlying instance. A larger number of vCPUs provide higher performance on the virtual server or instance.
RAM is the approximate amount of memory used for data caching. An in-depth discussion on Postgres caching can be found in Understanding Heroku Postgres Data Caching.
All instances are backed by EBS-optimized instances where EBS disks with provisioned IOPs are attached. PIOPs are a measure of how many I/O operations the underlying disks can perform per second. The amount of IOPs provisioned for each plan determines its I/O throughput. On write-heavy applications, I/O can be a significant bottleneck, but on read-heavy ones, your hot dataset should fit in RAM and can therefore have very high performance with lower IOPs values.
Premium plans are encrypted at rest by using AES-256, block-level storage encryption. Keys are managed by Amazon, the individual volume keys are stable for the lifetime of the volume. You can find more detail about EBS encryption here. We do not encrypt anything for you at the Postgres level, so if you wish to do this, you can use PGCrypto extension for your own encryption.
All the backup files that are taken using Heroku PGBackups are stored in an encrypted S3 bucket in the US region.