Skip to content

Commit 26f31e3

Browse files
author
sergey grinko
committed
Синхронизация с локальной веткой разработки
Изменил --batch-size=50 на 10 Изменил режим создания INC бэкапов на PAGE добавил скрипт выкладывания контейнеров на harbor сайт
1 parent 0619c38 commit 26f31e3

16 files changed

Lines changed: 107 additions & 16 deletions

12/docker-postgres/postgresql.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0
231231

232232
archive_mode = on # enables archiving; off, on, or always
233233
# (change requires restart)
234-
archive_command = 'if [ -f archive_pause.trigger ]; then exit 1; else if [ -f archive_active.trigger ]; then pg_probackup-12 archive-push -B /mnt/pgbak --instance 12 --wal-file-path %p --wal-file-name %f -j 4 --batch-size=50; else exit 0; fi; fi' # command to use to archive a logfile segment
234+
archive_command = 'if [ -f archive_pause.trigger ]; then exit 1; else if [ -f archive_active.trigger ]; then pg_probackup-12 archive-push -B /mnt/pgbak --instance 12 --wal-file-path %p --wal-file-name %f -j 4 --batch-size=10; else exit 0; fi; fi' # command to use to archive a logfile segment
235235
# placeholders: %p = path of file to archive
236236
# %f = file name only
237237
# e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
@@ -242,7 +242,7 @@ archive_timeout = 1800s # force a logfile segment switch after this
242242

243243
# These are only used in recovery mode.
244244

245-
restore_command = 'if [ -f archive_pause.trigger ]; then exit 1; else if [ -f archive_active.trigger ]; then pg_probackup-12 archive-push -B /mnt/pgbak --instance 12 --wal-file-path %p --wal-file-name %f -j 4 --batch-size=50; else exit 0; fi; fi' # command to use to archive a logfile segment
245+
restore_command = 'if [ -f archive_pause.trigger ]; then exit 1; else if [ -f archive_active.trigger ]; then pg_probackup-12 archive-push -B /mnt/pgbak --instance 12 --wal-file-path %p --wal-file-name %f -j 4 --batch-size=10; else exit 0; fi; fi' # command to use to archive a logfile segment
246246
# placeholders: %p = path of file to restore
247247
# %f = file name only
248248
# e.g. 'cp /mnt/server/archivedir/%f %p'

12/postgres-service.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ services:
3535
EMAIL_SERVER: "mail.company.ru"
3636
EMAIL_HOSTNAME: "noreplay@myhost.ru"
3737
BACKUP_THREADS: "4"
38-
BACKUP_MODE: "delta"
38+
BACKUP_MODE: "page"
3939

12/postgres-service_all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ services:
3535
EMAIL_SERVER: "mail.company.ru"
3636
EMAIL_HOSTNAME: "noreplay@myhost.ru"
3737
BACKUP_THREADS: "4"
38-
BACKUP_MODE: "delta"
38+
BACKUP_MODE: "page"
3939

4040
pgbouncer:
4141
# image: grufos/pgbouncer:1.17.0

12/postgres-service_pgb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ services:
3535
EMAIL_SERVER: "mail.company.ru"
3636
EMAIL_HOSTNAME: "noreplay@myhost.ru"
3737
BACKUP_THREADS: "4"
38-
BACKUP_MODE: "delta"
38+
BACKUP_MODE: "page"
3939

4040
pgbouncer:
4141
# image: grufos/pgbouncer:1.17.0

13/docker-postgres/postgresql.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0
235235

236236
archive_mode = on # enables archiving; off, on, or always
237237
# (change requires restart)
238-
archive_command = 'if [ -f archive_pause.trigger ]; then exit 1; else if [ -f archive_active.trigger ]; then pg_probackup-13 archive-push -B /mnt/pgbak --instance 13 --wal-file-path %p --wal-file-name %f -j 4 --batch-size=50; else exit 0; fi; fi' # command to use to archive a logfile segment
238+
archive_command = 'if [ -f archive_pause.trigger ]; then exit 1; else if [ -f archive_active.trigger ]; then pg_probackup-13 archive-push -B /mnt/pgbak --instance 13 --wal-file-path %p --wal-file-name %f -j 4 --batch-size=10; else exit 0; fi; fi' # command to use to archive a logfile segment
239239
# placeholders: %p = path of file to archive
240240
# %f = file name only
241241
# e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'

13/postgres-service.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ services:
3535
EMAIL_SERVER: "mail.company.ru"
3636
EMAIL_HOSTNAME: "noreplay@myhost.ru"
3737
BACKUP_THREADS: "4"
38-
BACKUP_MODE: "delta"
38+
BACKUP_MODE: "page"
3939

13/postgres-service_all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ services:
3535
EMAIL_SERVER: "mail.company.ru"
3636
EMAIL_HOSTNAME: "noreplay@myhost.ru"
3737
BACKUP_THREADS: "4"
38-
BACKUP_MODE: "delta"
38+
BACKUP_MODE: "page"
3939

4040
pgbouncer:
4141
# image: grufos/pgbouncer:1.17.0

13/postgres-service_pgb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ services:
3535
EMAIL_SERVER: "mail.company.ru"
3636
EMAIL_HOSTNAME: "noreplay@myhost.ru"
3737
BACKUP_THREADS: "4"
38-
BACKUP_MODE: "delta"
38+
BACKUP_MODE: "page"
3939

4040
pgbouncer:
4141
# image: grufos/pgbouncer:1.17.0

14/docker-postgres/postgresql.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ min_wal_size = 160MB
239239

240240
archive_mode = on # enables archiving; off, on, or always
241241
# (change requires restart)
242-
archive_command = 'if [ -f archive_pause.trigger ]; then exit 1; else if [ -f archive_active.trigger ]; then pg_probackup-14 archive-push -B /mnt/pgbak --instance 14 --wal-file-path %p --wal-file-name %f -j 4 --batch-size=50; else exit 0; fi; fi' # command to use to archive a logfile segment
242+
archive_command = 'if [ -f archive_pause.trigger ]; then exit 1; else if [ -f archive_active.trigger ]; then pg_probackup-14 archive-push -B /mnt/pgbak --instance 14 --wal-file-path %p --wal-file-name %f -j 4 --batch-size=10; else exit 0; fi; fi' # command to use to archive a logfile segment
243243
# placeholders: %p = path of file to archive
244244
# %f = file name only
245245
# e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'

14/postgres-service.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ services:
3535
EMAIL_SERVER: "mail.company.ru"
3636
EMAIL_HOSTNAME: "noreplay@myhost.ru"
3737
BACKUP_THREADS: "4"
38-
BACKUP_MODE: "delta"
38+
BACKUP_MODE: "page"
3939

0 commit comments

Comments
 (0)