Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit df400eb

Browse filesBrowse files
committed
fix: examples of default configuration
1 parent ac0c10c commit df400eb
Copy full SHA for df400eb

File tree

Expand file treeCollapse file tree

3 files changed

+6
-14
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+6
-14
lines changed

‎configs/config.example.physical_generic.yml

Copy file name to clipboardExpand all lines: configs/config.example.physical_generic.yml
+2-6Lines 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

Copy file name to clipboardExpand all lines: configs/config.example.physical_walg.yml
+2-6Lines 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

Copy file name to clipboardExpand all lines: pkg/retrieval/engine/postgres/snapshot/physical.go
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.