Skip to content

Conversation

lubien
Copy link
Contributor

@lubien lubien commented May 16, 2023

Close #90

MUST

  • Switch wal on start
  • Setup pipeline to deploy this image

Maybe okay to do later

  • Support PG < 15 (?)
  • Cron backups
  • Health checks
  • Add to pg health checks things about recovery state
  • Separate .conf files between barman and server, a single conf works but is deprecated
  • Do not restart barman on fly pg restart unless a flag is passed and maybe make it restart for last
  • Add role to barman

@lubien lubien requested a review from davissp14 May 17, 2023 21:24
return fmt.Errorf("failed to write cert: %s", err)
}

if err := writeSshConfig(); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: writeSSHConfig vs. writeSsh for consistency.

@lubien lubien marked this pull request as ready for review May 23, 2023 19:11
@lubien lubien requested a review from davissp14 May 23, 2023 19:11
Copy link
Contributor

@davissp14 davissp14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work, just a few comments.

"github.com/fly-apps/postgres-flex/internal/flypg/admin"
)

var dataDir = "/data"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just wrap this:

var (
  dataDir = "/data"
  barmanConfigFile = "..."
  ...
)

@davissp14
Copy link
Contributor

Any tests you can add for this would also be super helpful!

Copy link
Contributor

@davissp14 davissp14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

@lubien lubien requested a review from davissp14 May 24, 2023 13:04
@lubien
Copy link
Contributor Author

lubien commented May 24, 2023

@davissp14 added some tests for config and unified configs into the main node struct

@lubien lubien merged commit 90f7fb2 into master May 25, 2023
@lubien lubien deleted the barman branch May 25, 2023 13:49
@smorimoto
Copy link
Contributor

A release workflow appears to have been triggered, but no release has actually been created yet. Can you make a release for this? Creating a release helps me because I subscribe to it and regularly update the image by myself!
https://github.com/fly-apps/postgres-flex/actions/runs/5080971925

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WAL Archiver/PITR/Disaster recovery (PG Barman Support)

3 participants