Skip to content

Commit

Permalink
Speed up provisions by using fast checkpoints (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
davissp14 authored Mar 3, 2023
1 parent c94b613 commit 892068d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/monitor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
var (
deadMemberMonitorFrequency = time.Hour * 1
replicationStateMonitorFrequency = time.Hour * 1
clusterStateMonitorFrequency = time.Minute * 15
clusterStateMonitorFrequency = time.Minute * 10

defaultDeadMemberRemovalThreshold = time.Hour * 12
defaultInactiveSlotRemovalThreshold = time.Hour * 12
Expand Down
2 changes: 1 addition & 1 deletion internal/flypg/repmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (r *RepMgr) clonePrimary(ipStr string) error {
return fmt.Errorf("failed to create pg directory: %s", err)
}

cmdStr = fmt.Sprintf("repmgr -h %s -p %d -d %s -U %s -f %s standby clone -F",
cmdStr = fmt.Sprintf("repmgr -h %s -p %d -d %s -U %s -f %s standby clone -c -F",
ipStr,
r.Port,
r.DatabaseName,
Expand Down

0 comments on commit 892068d

Please sign in to comment.