active_postgres 0.9.8 → 0.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +9 -0
- data/lib/active_postgres/components/pgbackrest.rb +10 -0
- data/lib/active_postgres/version.rb +1 -1
- data/templates/pgbackrest.conf.erb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac596a213f90fccc5ce5ed96000e76e77e819eed5d8ad1d9ddd3c15e61b6fae7
|
|
4
|
+
data.tar.gz: 71feb3c09a218906a70527745992f4d8e7e40643b9e99f5a0b05c917dbe6edaf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d4b55fc90bb71b33d0bcca854f358347a0a820a8a33c7131aa6dca1d73b4e77629766c9be07dca001699ec30081743e1e6b039d4205af9ae3ed9063204868ed
|
|
7
|
+
data.tar.gz: 731bc482ea43c6c1922a87a018cc47bd76f0fc5e3a9eb0c36cc79cb0f1e495aa04148e185e06d7792bc2110c59d93beecfd4ac3c6ea8605b436106878c9dd516
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project follows [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
## 0.9.10 - 2026-11-15
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Remove deprecated `stop-auto` from generated pgBackRest configuration. Keep `start-fast` and the existing backup schedules and retention.
|
|
15
|
+
- Update the development lockfile to patched Rails, Rack, XML parser and HTML sanitizer releases.
|
|
16
|
+
|
|
17
|
+
## 0.9.9 - 2026-10-02
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Install and enable cron for pgBackRest backup and PostgreSQL log-archive schedules, and fail setup if the scheduler is not active.
|
|
22
|
+
|
|
10
23
|
## 0.9.8 - 2026-10-02
|
|
11
24
|
|
|
12
25
|
### Fixed
|
data/README.md
CHANGED
|
@@ -13,6 +13,11 @@ capacity planning, monitoring, backups, recovery drills, and failover decisions.
|
|
|
13
13
|
- **Rails Integration**: Automatic database.yml config, migration guard, read replica routing
|
|
14
14
|
- **Modular Components**: Core, Performance Tuning (opt-in), repmgr, PgBouncer, pgBackRest, Monitoring, SSL, Extensions
|
|
15
15
|
|
|
16
|
+
Version 0.9.10 removes deprecated `stop-auto` from generated pgBackRest
|
|
17
|
+
configuration. Existing installations can remove that line from their
|
|
18
|
+
pgBackRest configuration without restarting PostgreSQL. Backup schedules,
|
|
19
|
+
retention and `start-fast` remain unchanged.
|
|
20
|
+
|
|
16
21
|
## Quick Start
|
|
17
22
|
|
|
18
23
|
### 1. Install
|
|
@@ -215,6 +220,10 @@ components:
|
|
|
215
220
|
# schedule_incremental: "0 * * * *"
|
|
216
221
|
```
|
|
217
222
|
|
|
223
|
+
pgBackRest setup installs cron, enables it at boot, and checks that it is active.
|
|
224
|
+
Backup schedules run only on the primary; configured log-archive schedules run
|
|
225
|
+
on each database host.
|
|
226
|
+
|
|
218
227
|
Run a PITR restore:
|
|
219
228
|
|
|
220
229
|
```bash
|
|
@@ -151,6 +151,16 @@ module ActivePostgres
|
|
|
151
151
|
else
|
|
152
152
|
remove_backup_schedule(host)
|
|
153
153
|
end
|
|
154
|
+
|
|
155
|
+
ensure_scheduler(host)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
def ensure_scheduler(host)
|
|
159
|
+
install_apt_packages(host, 'cron')
|
|
160
|
+
ssh_executor.execute_on_host(host) do
|
|
161
|
+
execute :sudo, 'systemctl', 'enable', '--now', 'cron'
|
|
162
|
+
execute :sudo, 'systemctl', 'is-active', '--quiet', 'cron'
|
|
163
|
+
end
|
|
154
164
|
end
|
|
155
165
|
|
|
156
166
|
def setup_backup_schedules(host, pgbackrest_config)
|
|
@@ -69,9 +69,8 @@ process-max=<%= pgbackrest_config[:process_max] || 2 %>
|
|
|
69
69
|
archive-async=y
|
|
70
70
|
spool-path=/var/spool/pgbackrest
|
|
71
71
|
|
|
72
|
-
# Start
|
|
72
|
+
# Start the backup checkpoint promptly.
|
|
73
73
|
start-fast=y
|
|
74
|
-
stop-auto=y
|
|
75
74
|
|
|
76
75
|
[main]
|
|
77
76
|
pg1-path=/var/lib/postgresql/<%= config.version %>/main
|