File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 3030bash "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
3636end
You can’t perform that action at this time.
0 commit comments