Unattended upgrades
On Ubuntu, it’s recommended to disable unattended upgrades to avoid unexpected database restarts.
Instance parameter right sizing
You may increase pg_max_conn as needed, but no more than 5000 unless you are prepared to bump HAProxy limits as well.
You may also want to adjust WAL size settings in https://github.com/pgsty/pigsty/blob/v3.7.0/roles/pgsql/templates/olap.yml#L317-L319. The defaults could be wasteful.
Node DNS and /etc/hosts modifications
To prevent such modifications, set
node_write_etc_hosts: false
node_dns_method: nonein global vars section of pigsty.yml.
Offline single-node install
curl -fLo /tmp/pkg.tgz 'https://github.com/pgsty/pigsty/releases/download/v3.7.0/pigsty-pkg-v3.7.0.u24.aarch64.tgz'
./bootstrap -k
./configureThen modify pigsty.yml to use local repo because the default is to use the infra node at http://${admin_ip}/pigsty:
node_repo_modules: local # use pre-made local repo rather than install from upstream
repo_upstream:
- { name: pigsty-local ,description: 'Pigsty Local' ,module: local ,releases: [24] ,arch: [aarch64] ,baseurl: { default: 'file:/www/pigsty/ ./' }}Note that only the latest PostgreSQL packages are included in the offline package downloaded from GitHub releases, so you are on your own if you need an older version.