Pigsty v4.0.0-b4 #670
Vonng
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Release Date: 2026-01-01
v4.0.0 is a major release with 229 commits, 540 files changed, 91,214 insertions, and 40,782 deletions.
curl https://pigsty.cc/get | bashGitHub Release: https://github.com/pgsty/pigsty/releases/tag/v4.0.0-b4
Highlights
io_method,io_workers,idle_replication_slot_timeoutsupportpg-forkscript, backup-before-PITR,pg_timelinemetricsSoftware Versions
Infrastructure Packages
MinIO now uses Pigsty-maintained RPM/DEB packages:
PostgreSQL Extensions
Fixed PG18 Deb packages: pg_vectorize, pg_tiktoken, pg_tzf, pglite_fusion, pgsmcrypto, pgx_ulid, plprql, pg_summarize, supautils
Breaking Changes
Observability Stack Replacement
Key Commits:
d50cd813efeat: replace prometheus stack with victoriaa426ef724feat: provision vlogs instead of loki in role infraac8ca88a8feat: add node_monitor vector log agent support8564c430cfeat: register victoria datasource to grafana63e9f7fa0feat: update prometheus rules/bin to victoriaParameter Changes
node_disable_selinuxnode_selinux_mode8f763bf07node_disable_firewallnode_firewall_mode699a7bc75infra_pipinfra_uv87f71ca1epg_pwd_encpg_io_method7689d25d0pgbackrest_clean9fe8167d2License Change
287d7ca47)New Features
1. VictoriaMetrics Observability Stack
Complete log collection coverage for all components:
b782b8b87feat: collect pgbouncer logs with vector26b3d8f5efeat: collect redis logs with vector8c2774ba9feat: collect minio logs with vector0c174a794feat: collect etcd log with vectorc32cbf2b9feat: collect nginx log with vector8bcf7b484feat: collect grafana logs with vector22c8ba6c3feat: add vip-manager and pg exporters logsNew Grafana datasources and dashboards:
b4c7f9f5afeat: update grafana dashboards to use vlogs32fbf54b6add new dashboard node-vector63e1b5a5efeat: update grafana dashboards logs panel2. Security Hardening
etcd RBAC:
05dd7a259feat: enable etcd rbac26bb46e31feat: harden etcdctl env and root passwordPermission Tightening:
99a4a05deharden: tight permission on /infra/conf/patronictl408c5cfddfeat: add admin_ip to patroni allowlistd19dbe77cfix(minio): harden credential security67cca894cuse mode 0700 for files/pki/ca directoryNew Security Parameters:
67e241949feat: new paramnode_admin_sudoto specify sudo level358e85b12feat(node): addvip_auth_passparameter for VRRP authentication4a163753fnew paramgrafana_view_passto customize pg meta ds password3. PostgreSQL Features
PG17/18 I/O Parameters:
7d1e980d9feat: setupio_methodandio_workersparam7689d25d0addpg_io_method, removepg_pwd_enc22ae87732feat: setmaintenance_io_concurrencyaccording to ssdReplication Slot Timeout:
fd0d70af6feat: setidle_replication_slot_timeoutto 7d/3dDatabase/User Definition Enhancements:
791f9c765feat: addstatesupport forpg_databases5608b43ddfeat: allow usingstrategyinpg_databasesdefinitiond9f8fe0d8feat: allow pg15-18 database param to be used in definition47534693ffeat: customize user/role withadmin/set/inheritoptionsc99f4f0e6feat: addordersupport for pg/pgb hba rules03eb3fbcfadd ipv6 support for pg/pgb hbaOther PostgreSQL Improvements:
75a46f617add--no-data-checksumsfor pg17+ whenpg_checksumsis disabled523da88bcoptimizelog_lock_failures,log_connectionsa802e9e08feat: optimize default pg log settings (UTC timezone, weekly auto rotate)4. PITR Enhancement
72c221931add instance-level fork script:/pg/bin/pg-forkaf673d1c7feat: addpitr.backupsupport, backup data before pitrfd927eaa9add new collectorpg_timelinede69b5d73use the newpg_timeline_idmetrics in dashboardsf896a2482feat: optimize pg_pitr rolesbea60e349feat: reuse pg_pitr command templates5916e5cdefeat: loose pg_pitr etcd metadata remove condition5e0eca474update pgsql-pitr dashboard with more details5. Configuration & Deployment
New Playbook:
ba0217e11add the new playbookdeploy.ymlConfiguration Improvements:
749857a97feat: add-gto configure to auto generate password7a057182afeat: specify pg/pgb hba intranet withnode_firewall_intranetGrafana Enhancements:
c3197e2c9feat: allow using postgres as grafana backend dbd3e273116feat: addgrafana_pgurlparamdebca012cfeat: add auth support fornginx_servers60c1bced3feat: use relative links in grafanaPackage Management:
87f71ca1ereplaceinfra_pipwithinfra_uvc7850c5f0feat: addskip_ifna,minor,priorityfields in repo definition634e1b42dallow using meta in repo definition6. Other Features
85dd9f21ffeat: allow blackbox pinga0bf166ddfeat: add stream option support ininfra_portal699a7bc75feat: customize node firewall rules606dd1e04feat: add haproxy selinux policy module815d4f9b9feat: add new pg metricpg:ixact_ratio478da9b23feat: add 2 script back:pg-vacuumpg-repackImprovements
Module Refactoring
Redis Module:
3c3b6ab85refactor(redis): unify playbook patterns with etcd/minio modules0454a2a6brefactor(redis): separate deployment and removal concernseb87545efrefactor(redis): unify systemd service templates for all Redis modes6d4a5fceerefactor redis module to work with victoria stackMinIO Module:
f3403ab1drefactor(minio): clean up tasks and fix typosa886fec71refactor(minio): unify when conditions in playbooks24e152a14feat(minio): improve startup reliability and code documentation4f9306506refactor minio target register / deregisterETCD Module:
543f0f578fix(etcd_remove): add systemd service cleanup and update docse6b323a66fix(etcd): remove unused variable and improve reliabilityf9d753542delegate etcd metadata remove task to etcd nodesINFRA Module:
f99db6da2refactor: infra module overhaul2c23a019bfeat: refactor the infra nginx role4e66f6be8feat: optimize infra user/group creation2af7f4321refactor: move dnsmasq data to /data/infra/hostspgBackRest Improvements
134525d38feat: change pgbackrest_exporter_options with--collect.interval=120edbd9d804reduce pgbackrest_exporter cache interval from 600 to 120sdbc829d42fix: allow group read to /etc/pgbackrest config136a43d2ffeat: optimize postgres and pgbackrest logsPlatform Support
c36b1adcdadd support for el 10.1 epel bootstrapef9e508a6fix(node_id): update OS fallback to el10399b9483cadd d13 and remove el8 from build specsacfb5887dfeat: add aliyun debian13 image for terraform1926332dabump terraform debian 13 to 13.2553ff5d5badd back infra el7 compatibilityCode Standardization
3258e3099style: unify YAML boolean values to true/false88acf24cfstyle(node): unify ignore_errors boolean representation0cc286a91chore: normalize Minio to MinIO121bee498rename systemd service file to .svc file8fb2f1deafeat: normalize systemd service file timeout unitBug Fixes
PostgreSQL Related
ebcb06195fix pg-vacuum transaction block issue369cab14aadd coalesce slotname for pg_recv metrics collector519c42e31fix: add pg_sub_16 branch for parallel logical workerc0b6772a1fix pg_pitr multiple replica clonefrom timing issuea8d6e477ffix pg_pitr patroni primary restart condition67aac3ab3fix missing pg_namespace in roles pg_pitr70e446c66fix: pg-failover-script typoNode Related
9d95f5f9dfix(node): prevent empty sudoers file generation4a2e5441efix(node): correct misleading task names and comments363462a6ffix debian groupadd path issue0b50553e6fix node_data / etcd_data permissionService Related
6b60a7768fix(haproxy): correct variable path in service template8005c47dbfix(redis_remove): correct variable name from redis_seq to redis_node743d9e87cfix: redis remove task typofb4de6d71fix: redis instance log file name and service filenameMinIO Related
39b4f2e51fix(minio): correct vmetrics_port default value to 8428315a6369dfix(minio): remove ineffective reload handler49839eb62fix(minio_remove): clean up minio dns entries from /etc/hostsc8dacc4eefix(minio_remove): correct license and config pathOther Fixes
efe306fb3fix(cert): use correct ownca_not_after parameter6e2a67cb3fix ssl cert force and ownca_not_after174a51c88fix vector 0.52 issue with syslog_raw8b53aa2b9fix: align vmalert eval interval with vmetrics scrape intervalffc631207feat: eliminate race condition in dnsmasq and selinux/ansible368a2c3a0fix: el9.aarch64 patroni & llvmjit hotfix4b2cd7bd9fix: add newer postgres version to policy-rc.d3a962bdeefix(ferret): fix certificate SAN, restart policy731d236c1fix(cache): fix EL10 compatibility and improve documentation62c2e91d9fix(pgmon): correct typos and outdated references832d5c56cchore(docker): sync docker_data default in configs and cmdbb203c999efix(docker): update default data directory and fix docsDocumentation
102395a3cdocs(node): enhance README documentation for node-related modules6bfa477f6chore: add roles README.md docs67058a91fchore: add CONTRIBUTING.md for pigstyf0e054510feat: add more detailed docs for alertmanager33013821fdocs(etcd): fix playbook comments and task documentation5c0b45d3fdocs(etcd): fix README file structure and tag hierarchy66074248fdocs(minio): update comments and documentation4f1899141docs(minio): fix certificate path in README1f5b207d0docs(mongo): add -l flag to purge command for safety649567874docs(redis): update playbooks and configs for refactored redis moduleInfrastructure
Vagrant Templates
942377e08add xfs /data disk to vagrant templatesdfa078f45increase vagrant libvirt disk size to 128GB9baed8fe6add 10-node vagrant templated3bbd0b61refactor the simu config template with 20 nodesTerraform
1926332dabump terraform debian 13 to 13.2acfb5887dfeat: add aliyun debian13 image for terraformHomepage
6a76865dffeat: add zh-Hans homepage546ee22f0replace h.pigsty to i.pigstya3705d299change default infra_portal to the i.pigsty1e8144837optimize i.pigsty homepage style46cf24d38update zh home page templateMigration Guide
Upgrading from v3.x
Backup Current Configuration
cp pigsty.yml files/pigsty-$(date +%Y%m%d).ymlObservability Stack Changes
Parameter Migration
etcd RBAC
etcd_root_passis properly configuredRedeploy Infrastructure
Compatibility
PostgreSQL Versions: 13, 14, 15, 16, 17, 18
Statistics
This discussion was created from the release Pigsty v4.0.0-b4.
Beta Was this translation helpful? Give feedback.
All reactions