Increase wal-prefetch for archive replica
C4
Production Change - Criticality 4Change Objective | Describe the objective of the change |
---|---|
Change Type | Type described above |
Services Impacted | postgres-archive |
Change Team Members | @abrandl |
Change Severity | |
Buddy check or tested in staging | Buddy |
Schedule of the change | tbd |
Duration of the change | 5 min. |
This came from https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/7724:
WAL prefetching for wal-e is set to 4
on the archive replica, to 32
on the delayed replica. The archive replica suffers from increased replication lag during high traffic times:
I would like to bump the WAL prefetching on the archive replica to 32
, too. This is a manual change as recovery.conf
isn't managed through Chef on these instances (this is not a patroni instance):
Config change
restore_command = '/usr/bin/envdir /etc/wal-e.d/env /opt/wal-e/bin/wal-e wal-fetch -p 32 "%f" "%p"'
Followed by a gitlab-ctl restart postgresql
.
Validation
We should stop seeing increased replication lag after a while.