Version v1.5.1 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. For up-to-date documentation, see the latest version.
Pigsty v1.5.1 Documentation
Pigsty v1.5.1 Documentation
Battery-Included Open-Source PostgreSQL Distribution
Latest Version: v1.5.1 | Github Repo | Demo
Documentation: EN Docs | 中文文档 | Github Pages
What is Pigsty?
Pigsty is battery-included open-source database distribution, with the latest PostgreSQL kernel, TimescaleDB, PostGIS, Citus & 100+ extensions, along with an entire Infra: Grafana, Prometheus, Loki, Ansible, Docker to support your databases & applications. It also includes common tools for data analysis.
Pigsty is a monitoring & management SRE Solution. Which includes an unparalleled monitoring system with ultimate observability, and high-available PostgreSQL with self-healing architecture. You can deploy various clusters & instances: primary, replica, standby, offline, delayed, cascade, and even Citus, Redis, and Greenplum clusters.
Pigsty is a handy toolbox for developers. It treats Database as Code, Infra as Data. You just describe what database you want, and pigsty will create it for you. You can download, install, deploy, scale, backup, migration with one command. It can be deployed everywhere: a 10k+ core prod env or local 1C/2G VM, cloud, or on-premises.
Pigsty is a secure & thrifty alternative to Cloud RDS/PaaS. It can empower a single DEV/DBA to manage hundreds of databases clusters, with all data under your own control. It can save 50% - 80% cost compared to cloud RDS using ECS or on-premise deployment. And the software itself is completely open-source & free!
Check FEATURES for more detail.
TL; DR
Get a new Linux x86_64 CentOS 7.8 node. with nopass sudo & ssh access, then:
Now you have a battery-included Postgres on port 5432 and infra web services available on port 80.
Check Installation & Demo for details.
Download Packages Directly
Pigsty source & software packages can be downloaded directly via curl in case of no Internet connection:
Mange More Nodes
You can add more nodes to Pigsty with nodes.yml after installing the meta node with infra.yml.
Define Postgres Cluster
You can define a HA Postgres Cluster with streaming replication in a few lines of code:
You can create Postgres with different roles by declaring them: primary, replica, standby, delayed, offline, cascade, etc…
Deploy Databases Clusters
You can deploy different types of databases & clusters with corresponding playbooks.
pgsql.yml: Deploy HA PostgreSQL clusters.redis.yml: Deploy Redis clusters.pgsql-matrixdb.yml: Deploy matrixdb data warehouse (greenplum7).
About
Pigsty (/ˈpɪɡˌstaɪ/) is the abbreviation of “PostgreSQL In Graphic STYle.”
Author: Vonng ([email protected])
License: Apache 2.0 License
Beian: 浙ICP备15016890-2号






