ApsaraDB/PolarDB-for-PostgreSQL
Fork: 490 Star: 2920 (更新于 2024-12-18 04:11:57)
license: Apache-2.0
Language: C .
A cloud-native database based on PostgreSQL developed by Alibaba Cloud.
最后发布版本: v15.8.2.0 ( 2024-09-05 14:28:43)
Overview
PolarDB for PostgreSQL (hereafter simplified as PolarDB) is a cloud native database service independently developed by Alibaba Cloud. This service is 100% compatible with PostgreSQL and uses a shared-storage-based architecture in which computing is decoupled from storage. This service features flexible scalability, millisecond-level latency and hybrid transactional/analytical processing (HTAP) capabilities.
- Flexible scalability: You can use the service to scale out a compute cluster or a storage cluster based on your business requirements.
- If the computing power is insufficient, you can scale out only the compute cluster.
- If the storage capacity or the storage I/O is insufficient, you can scale out a storage cluster without interrupting your service.
- Millisecond-level latency:
- Write-ahead logging (WAL) logs are stored in the shared storage. Only the metadata of WAL records is replicated from the read-write node to read-only nodes.
- The LogIndex technology provided by PolarDB features two record replay modes: lazy replay and parallel replay. The technology can be used to minimize the record replication latency from the read-write node to read-only nodes.
- HTAP: HTAP is implemented by using a shared-storage-based massively parallel processing (MPP) architecture. The architecture is used to accelerate online analytical processing (OLAP) queries in online transaction processing (OLTP) scenarios. PolarDB supports a complete suite of data types that are used in OLTP scenarios. PolarDB supports two computing engines that can process these types of data:
- Standalone execution: processes OLTP queries that feature high concurrency.
- Distributed execution: processes large OLAP queries.
PolarDB provides a wide range of innovative multi-model database capabilities to help you process, analyze, and search for different types of data, such as spatio-temporal, geographic information system (GIS), image, vector, and graph data.
Branch Introduction
The POLARDB_15_STABLE
is the stable branch based on PostgreSQL 15, which supports compute-storage separation architecture.
Architecture and Roadmap
PolarDB for PostgreSQL uses a shared-storage-based architecture in which computing is decoupled from storage. The conventional shared-nothing architecture is changed to the shared-storage architecture. N copies of data in the compute cluster and N copies of data in the storage cluster are changed to N copies of data in the compute cluster and one copy of data in the storage cluster. The shared storage stores one copy of data, but the data states in memory are different. The WAL logs must be synchronized from the primary node to read-only nodes to ensure data consistency. In addition, when the primary node flushes dirty pages, it must be controlled to prevent the read-only nodes from reading future pages. Meanwhile, the read-only nodes must be prevented from reading the outdated pages that are not correctly replayed in memory. To resolve this issue, PolarDB provides the index structure LogIndex to maintain the page replay history. LogIndex can be used to synchronize data from the primary node to read-only nodes.
After computing is decoupled from storage, the I/O latency and throughput increase. When a single read-only node is used to process analytical queries, the CPUs, memory, and I/O of other read-only nodes and the large storage I/O bandwidth cannot be fully utilized. To resolve this issue, PolarDB provides the shared-storage-based MPP engine. The engine can use CPUs to accelerate analytical queries at SQL level and support a mix of OLAP workloads and OLTP workloads for HTAP.
For more information, see Architecture.
Quick Start with PolarDB
If you have Docker installed already,then you can pull the instance image of PolarDB-PG based on local storage. Create, run and enter the container, and use PolarDB-PG instance directly:
# pull the instance image and run the container
docker pull polardb/polardb_pg_local_instance:15
docker run -it --cap-add=SYS_PTRACE --privileged=true --rm polardb/polardb_pg_local_instance:15 psql
# check
postgres=# SELECT version();
version
----------------------------------------------------------------------
PostgreSQL 15.x (PolarDB 15.x.x.x build xxxxxxxx) on {your_platform}
(1 row)
For more advanced deployment way, please refer to Advanced Deployment. Before your deployment, we recommand to figure out the Architecture of PolarDB for PostgreSQL.
Development
Please refer to Development Guide to compile and development PolarDB for PostgreSQL.
Documentation
Please refer to Online Documentation Website to see the whole documentations.
If you want to explore or develop documentation locally, see Document Contribution.
Contributing
You are welcome to make contributions to PolarDB for PostgreSQL. Here are the contributors:
Made with contrib.rocks.
Star History
Software License
PolarDB for PostgreSQL is released under Apache License (Version 2.0), developed based on PostgreSQL which is released under PostgreSQL License. See LICENSE for more information.
PolarDB for PostgreSQL contains various third-party components under other open source licenses. See NOTICE for more information.
Join the Community
Click this link and use DingTalk application to join the DingTalk group.
Copyright
Copyright © Alibaba Group, Inc.
最近版本更新:(数据更新于 2024-10-07 23:54:09)
2024-09-05 14:28:43 v15.8.2.0
2024-09-05 12:31:50 v11.9.20.0
2024-05-04 19:47:26 v11.9.20.0
2023-04-12 09:49:17 v11.9.20.0
主题(topics):
cloud-native, database, dbms, distributed, htap, postgresql, sql, storage
ApsaraDB/PolarDB-for-PostgreSQL同语言 C最近更新仓库
2024-12-21 10:48:05 EdgeTX/edgetx
2024-12-15 21:46:59 arendst/Tasmota
2024-12-15 21:29:56 bol-van/zapret
2024-12-13 20:23:33 XITRIX/Moonlight-Switch
2024-12-11 15:17:04 curl/curl
2024-12-07 10:42:25 libsdl-org/SDL