Skip to content

Commit a60993d

Browse files
committed
Updating rootdrive variable and wal stream
1 parent 1766074 commit a60993d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

chef_postgres/libraries/pg_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def wal_keep_segments
160160
mixed: 0.50,
161161
desktop: 0.25,
162162
}.fetch(workload)
163-
(node["filesystem"]["by_device"]["#{rootdrive}"]["kb_available"].to_f * modifier / 1024 / 16).round
163+
(node["filesystem"]["by_device"][rootdrive]["kb_available"].to_f * modifier / 1024 / 16).round
164164
end
165165

166166
def checkpoint_segments_or_max_wal_size

chef_postgres/recipes/base_backup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
bash "create_base_backup" do
3131
code <<-EOF_CBB
3232
rm -rf #{backup_dir}/base_backup/*
33-
pg_basebackup -d 'host=localhost user=#{repl_user} password=#{repl_pass}' -D #{backup_dir}/base_backup
33+
pg_basebackup -d 'host=localhost user=#{repl_user} password=#{repl_pass}' -D #{backup_dir}/base_backup --wal-method=stream
3434
tar -C #{backup_dir} -czf #{backup_dir}/base_backup.tgz #{backup_dir}/base_backup/
3535
EOF_CBB
3636
end

0 commit comments

Comments
 (0)