Skip to content

Commit

Permalink
Merge pull request #123 from cole-miller/autorecovery
Browse files Browse the repository at this point in the history
Turn off raft autorecovery
  • Loading branch information
cole-miller authored Aug 9, 2023
2 parents 6c1bf73 + 63929d5 commit c9a178a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-build-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ jobs:
timeout-minutes: 8
run: |
go get golang.org/x/sync/semaphore
go get -tags libsqlite3 github.com/canonical/go-dqlite/app
go get -tags libsqlite3 github.com/canonical/go-dqlite/app@master
go build -tags libsqlite3 -o resources/app resources/app.go
sudo ufw disable
sleep 0.200
Expand Down
1 change: 1 addition & 0 deletions resources/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ func main() {
app.WithRolesAdjustmentFrequency(time.Second),
app.WithSnapshotParams(dqlite.SnapshotParams{Threshold: 128, Trailing: 1024}),
app.WithDiskMode(*disk != 0),
app.WithAutoRecovery(false),
}

// When rejoining set app.WithCluster() to the full list of existing
Expand Down

0 comments on commit c9a178a

Please sign in to comment.