Basic Edition (formerly High-performance Edition) instances

更新时间:
复制 MD 格式

AnalyticDB for PostgreSQL Basic Edition uses a single-replica architecture to reduce storage costs and deliver higher write I/O performance than High-availability Edition. It suits analytics workloads where cost efficiency and write throughput matter more than maximum uptime.

Note

Basic Edition is suitable for most business analysis scenarios. For core business requirements that demand the highest availability, use High-availability Edition.

When to use Basic Edition

Criteria

Basic Edition

High-availability Edition

Architecture

Single replica

Dual replica (primary + standby)

Storage cost

Lower (50% reduction vs. same specs)

Higher

Write I/O performance

Higher (no replication overhead)

Lower

Recovery from SQL crash

~10 seconds

5–10 minutes

Recovery from compute node failure

Restart required; no automatic failover

Automatic failover; no service interruption

Recovery from host failure

Restart required after host migration; ~15 minutes

Automatic failover; migration runs in background

Best for

Analytics, batch processing, cost-sensitive workloads

Mission-critical, production OLAP

Choose Basic Edition when your workload can tolerate a recovery window of minutes to hours in the event of a hardware failure. For workloads that require continuous availability during hardware failures, use High-availability Edition.

Architecture

Basic Edition deploys both coordinator nodes and compute nodes in a single-replica architecture, as shown below.

Figure 1. Basic Edition architecture基础版架构图

High-availability Edition includes a standby coordinator node and secondary compute nodes.

Figure 2. High-availability Edition architecture高可用版架构图

Removing the standby coordinator and secondary compute nodes has three direct effects:

  • No storage is allocated for the standby coordinator node.

  • Compute node storage is reduced by 50%.

  • Data synchronization between primary and secondary compute nodes is eliminated, which improves write I/O performance.

Cost reduction

A Basic Edition instance with the same specifications costs less than a High-availability Edition instance because it maintains only one replica.

The table below shows monthly prices for both editions at two common specification levels.

Configuration

Storage price (CNY/month)

Compute node price (CNY/month)

Total price (CNY/month)

Basic Edition

High-availability Edition

Price reduction

Basic Edition

High-availability Edition

Price reduction

Basic Edition

High-availability Edition

Price reduction

Starter configuration

100

400

75%

765

1756.3

56.44%

865

2156.3

59.88%

Common configuration

400

800

50%

2910

3463.96

15.99%

3310

4263.9

22.37%

Entry-level specifications: Basic Edition (HPE) uses 2 CPU cores, 50 GB storage, and 2 compute nodes. High-availability Edition (HAE) uses 2 CPU cores, 50 GB storage, and 4 compute nodes. At these specs, HPE is 56% cheaper.

Common specifications: Both editions use 4 CPU cores, 100 GB storage, and 4 compute nodes. At these specs, HPE is 15% cheaper.

For more information about pricing, see AnalyticDB for PostgreSQL Pricing.

Performance

Basic Edition delivers higher I/O performance because it eliminates data synchronization and streaming replication between primary and secondary compute nodes. On a 2-CPU-core instance, I/O performance can reach up to 250% of a comparable High-availability Edition instance. Write-intensive workloads see approximately 100% improvement.

The following benchmarks compare both editions configured with 2 CPU cores, 400 GB storage, and 4 compute nodes.

Local replication

Replicating a row-oriented table containing approximately 90 GB of data:

CREATE TABLE lineitem2 AS (SELECT * FROM lineitem);

Edition

Execution time

Basic Edition

249 seconds

High-availability Edition

1,307 seconds

Basic Edition completed the operation approximately 5x faster. The same improvement applies to INSERT INTO SELECT operations.

TPC-H benchmark

Note

This test is based on the TPC-H benchmark methodology but does not satisfy all TPC-H requirements. Results cannot be compared with published TPC-H results.

22 SQL queries were run on a 100 GB TPC-H dataset. The following figure shows the results.

TPC-H benchmark results

Basic Edition completed the full query set 40% faster than High-availability Edition, reflecting the I/O advantage of removing replication overhead.

Availability

Data reliability

AnalyticDB for PostgreSQL stores data on enhanced solid-state drives (ESSDs), which use multiple internal replicas at the storage layer. This ensures high data reliability and integrity even in single-replica mode — data is not lost when a compute node fails.

Failure scenarios and recovery

Basic Edition provides lower availability than High-availability Edition because there is no standby node to fail over to. The table below summarizes recovery behavior for common failure scenarios.

Failure scenario

Basic Edition

High-availability Edition

SQL crash (core dump, out-of-memory (OOM))

~10 seconds (optimized checkpoint)

5–10 minutes

Compute node failure

Restart required; service unavailable until restart completes

Automatic failover; secondary node takes over with no service interruption

Host failure

Restart required after host migration; ~15 minutes

Automatic failover; host migration runs in background

For physical machine failures, recovery can take up to 8 hours in extreme scenarios.

How recovery mode works

Most failures in AnalyticDB for PostgreSQL — including SQL crashes caused by core dumps or OOM errors — trigger recovery mode rather than a full node failure. During recovery mode, the instance:

  1. Clears remaining locks and memory.

  2. Replays Write-Ahead Log (WAL) files to restore committed transactions not yet written to disk.

  3. Resumes service.

Basic Edition uses an optimized checkpoint mechanism that reduces the amount of WAL data to replay. Recovery from these common failure scenarios takes approximately 10 seconds, compared to 5–10 minutes for High-availability Edition.

WAL and checkpoints

  • Write-Ahead Log (WAL): Records all data changes for each transaction before the transaction commits. WAL enables the database to replay changes that were committed but not yet flushed to disk.

  • Checkpoint: The point up to which all data changes are confirmed on disk. The database recovers from the most recent checkpoint. AnalyticDB for PostgreSQL performs checkpoints on a schedule and also triggers them when WAL file size reaches a threshold.

Compute node failures

When a compute node fails in High-availability Edition, the secondary compute node takes over automatically. The faulty node restarts in the background with no service interruption.

When a compute node fails in Basic Edition, there is no secondary node to take over. The instance becomes unavailable and must be restarted for recovery.

Host failures

Host failures trigger automatic host migration in both editions. In High-availability Edition, the standby node maintains service continuity while the migration runs in the background. In Basic Edition, the instance must restart after host migration completes — a process that takes approximately 15 minutes.

FAQ

Can I upgrade from Basic Edition to High-availability Edition?

Direct in-place upgrade is not supported. The two editions use different replica counts and storage configurations, so there is no automated migration path. To switch editions, back up the data from the Basic Edition instance, purchase a High-availability Edition instance, and restore the data there. For migration instructions, see Migrate data between AnalyticDB for PostgreSQL instances.

Related resources