Skip to content

Commit df400eb

Browse files
committed
fix: examples of default configuration
1 parent ac0c10c commit df400eb

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

configs/config.example.physical_generic.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ retrieval:
163163

164164
# Adjust PostgreSQL configuration of the sync container.
165165
configs:
166-
shared_buffers: 1GB
167-
shared_preload_libraries: "pg_stat_statements"
168-
work_mem: "100MB"
166+
shared_buffers: 128MB
169167

170168
# Set environment variables here. See https://www.postgresql.org/docs/current/libpq-envars.html
171169
envs:
@@ -218,9 +216,7 @@ retrieval:
218216

219217
# Adjust PostgreSQL configuration of the promotion container.
220218
configs:
221-
shared_buffers: 1GB
222-
shared_preload_libraries: "pg_stat_statements"
223-
work_mem: "100MB"
219+
shared_buffers: 128MB
224220

225221
# It is possible to define a pre-precessing script. For example, "/tmp/scripts/custom.sh".
226222
# Default: empty string (no pre-processing defined).

configs/config.example.physical_walg.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ retrieval:
163163

164164
# Adjust PostgreSQL configuration of the sync container.
165165
configs:
166-
shared_buffers: 1GB
167-
shared_preload_libraries: "pg_stat_statements"
168-
work_mem: "100MB"
166+
shared_buffers: 128MB
169167

170168
# Passes custom environment variables to the Docker container with the restoring tool.
171169
envs:
@@ -208,9 +206,7 @@ retrieval:
208206

209207
# Adjust PostgreSQL configuration of the promotion container.
210208
configs:
211-
shared_buffers: 1GB
212-
shared_preload_libraries: "pg_stat_statements"
213-
work_mem: "100MB"
209+
shared_buffers: 128MB
214210

215211
# It is possible to define a pre-precessing script. For example, "/tmp/scripts/custom.sh".
216212
# Default: empty string (no pre-processing defined).

pkg/retrieval/engine/postgres/snapshot/physical.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ func (p *PhysicalInitial) promoteInstance(ctx context.Context, clonePath string)
391391
}
392392

393393
// Apply promotion configs.
394-
if syncConfig := p.options.Promotion.Configs; len(syncConfig) > 0 {
395-
if err := configuration.NewCorrectorWithExtraConfig(syncConfig).ApplyExtraConf(clonePath); err != nil {
394+
if promotionConfig := p.options.Promotion.Configs; len(promotionConfig) > 0 {
395+
if err := configuration.NewCorrectorWithExtraConfig(promotionConfig).ApplyExtraConf(clonePath); err != nil {
396396
return errors.Wrap(err, "cannot update promotion configs")
397397
}
398398
}

0 commit comments

Comments
 (0)