Skip to main content

Overview

An instance class defines the CPU and memory allocated to your database. Nearbase offers two groups: General Purpose and Dedicated. Pricing is uniform across every region — the same class costs the same everywhere.

Class Code Format

Instance class codes follow this pattern:
pg.{tier}.{size}.{variant}
SegmentMeaning
pgPostgreSQL engine
{tier}n2e / n1e = Economy (ARM) · n2 / n4 = General Purpose · x8 = Dedicated
{size}vCPU count, e.g. 2c, medium, xlarge
{variant}memory variant within the size class
For example, pg.n4.4c.1m is a General Purpose instance with 4 vCPU and 16 GB memory.

Catalog

General Purpose

Balanced CPU and memory for most workloads. Includes low-cost economy (ARM) options for small apps and trials.
Class CodevCPUMemoryNotes
pg.n2e.1c.1m12 GBEconomy (ARM)
pg.n1e.2c.1m22 GBEconomy (ARM)
pg.n2e.2c.1m24 GBEconomy (ARM)
pg.n4.2c.1m28 GBStandard
pg.n2.4c.1m48 GBStandard
pg.n4.4c.1m416 GBStandard
pg.n4.6c.1m624 GBStandard
pg.n4.8c.1m832 GBStandard
Best for: Side projects, dev/test, internal tools, production web apps, APIs, and moderate-traffic SaaS workloads.
Economy instances (pg.n1e.* / pg.n2e.*) are ARM-based and may not be available in every region — pg.n1e.* in particular is not available in ap-northeast-1 (Tokyo), ap-southeast-3 (Kuala Lumpur), and ap-southeast-7 (Bangkok). Availability is validated when you create an instance; pick a Standard or Dedicated class in those regions.

Dedicated

Dedicated CPU instances with a high memory-to-CPU ratio (8 GB RAM per vCPU). Designed for CPU-intensive queries, analytics, and latency-sensitive workloads that cannot tolerate CPU sharing.
Class CodevCPUMemory
pg.x8.medium.1216 GB
pg.x8.large.1432 GB
pg.x8.xlarge.1864 GB
pg.x8.2xlarge.116128 GB
pg.x8.4xlarge.132256 GB
Best for: Analytics, reporting, high-concurrency production databases, workloads requiring consistent low-latency query performance.

How to Choose

ScenarioRecommended
Development / staging environmentGeneral Purpose (Economy)
Low-traffic production appGeneral Purpose (Economy)
Standard web app or API backendGeneral Purpose (Standard)
High-concurrency or latency-sensitiveGeneral Purpose n4 / Dedicated
Analytics / reporting queriesDedicated
Large dataset, CPU-intensive workloadDedicated

Scaling

You can change your instance class at any time from the instance detail page. Scaling is handled by the platform with minimal interruption. Your billing is adjusted on a prorated basis for the remainder of the billing period.
Start with a smaller class and scale up as needed. Nearbase supports vertical scaling without data migration.