Skip to content

Version v3.7.0 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.

Installation

Getting started with Pigsty

Quick Start

Quick start: Prepare an ssh-accessible node with fresh installed Linux, run as user with nopass ssh and sudo privileges:

Step 1

Download pigsty with:

curl -fsSL https://repo.pigsty.io/get | bash -s v3.7.0; cd ~/pigsty;

Step 2

Configure the inventory file according to your need. (CHANGE PASSWORDS in the generated pigsty.yml)

./configure

Step 3

Install everything according to your config:

./install.yml

Pigsty Installed! Explore the User Interface, check port 5432 for Postgres Service, port 3000 for Grafana dashboards (admin / pigsty).


What’s Next?


Installation

Get Started
    Setup current linux node, and download everything from the Internet
Multi-Node Installation
    Setup multiple nodes for real high-available production environment.
Offline Installation
    Bootstrap from a local offline package when internet is not available.
Minimal Installation
    Install essential packages for HA Postgres Cluster only, no monitoring.

Preparation

Prepare
    Prepare node, network, storage, user, ssh, sudo, ansible, etc...
Linux OS
    Check compatible linux distributions and availability matrix
Vagrant
    Provision local linux virtual machines with vagrant / virtualbox
Terraform
    Provision cloud linux servers with terraform on cloud vendors

Reference

Interface
    Provision cloud linux servers with terraform on cloud vendors
Configure
    Describe the infra and clusters with declarative configs
Playbook
    Check compatible linux distributions and availability matrix
Security
    Security hardening and best practices for production environments

how to install pigsty on your linux machine?

how to install pigsty on multiple nodes