-
- Veeam Legend
- Posts: 1201
- Liked: 416 times
- Joined: Dec 17, 2015 7:17 am
- Contact:
PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Since V12 is near release: we have alot of projects migrating from MS-SQL to PostgreSQL. The one thing missing with V11 for us was log backup for PostgreSQL.
Since we also plan to migrate some of our Always On Clusters we wonder: Is there a PosgreSQL cluster/replication/HA solution which will not break V12 log backup & restore?
Since we also plan to migrate some of our Always On Clusters we wonder: Is there a PosgreSQL cluster/replication/HA solution which will not break V12 log backup & restore?
-
- Product Manager
- Posts: 14822
- Liked: 3074 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Hello Markus,
yes, log backup would work for streaming replication:
- primary node: log shipping enabled
- standby node(s): uncheck log shipping
- job needs to be adjusted if primary node changes
- Archive_command must be empty
For file-based replication log shipping is impossible for 3rd party tools and must be disabled:
- primary node: Archive_command is occupied
- standby node(s): Standby nodes are in recovery mode
If you want to replace SQL clusters... which additional technology do you plan to get a similar experience with Postgres? Patroni + vip-manager?
Best regards,
Hannes
yes, log backup would work for streaming replication:
- primary node: log shipping enabled
- standby node(s): uncheck log shipping
- job needs to be adjusted if primary node changes
- Archive_command must be empty
For file-based replication log shipping is impossible for 3rd party tools and must be disabled:
- primary node: Archive_command is occupied
- standby node(s): Standby nodes are in recovery mode
If you want to replace SQL clusters... which additional technology do you plan to get a similar experience with Postgres? Patroni + vip-manager?
Best regards,
Hannes
-
- Veeam Legend
- Posts: 1201
- Liked: 416 times
- Joined: Dec 17, 2015 7:17 am
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Hi Hannes,
perfect backup is slightly more important to us than perfect clustering as we have VSphere HA against Hardware failures and synchronous SAN mirroring against disk and location failures, so HA is mainly for situations where the OS of the DB server fails.
Thats why i ask - we are searching for a "Veeam-Compatible" solution.
Markus
perfect backup is slightly more important to us than perfect clustering as we have VSphere HA against Hardware failures and synchronous SAN mirroring against disk and location failures, so HA is mainly for situations where the OS of the DB server fails.
Thats why i ask - we are searching for a "Veeam-Compatible" solution.
Markus
-
- Product Manager
- Posts: 14822
- Liked: 3074 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
okay, that would be "streaming replication" then
-
- Veeam Legend
- Posts: 1201
- Liked: 416 times
- Joined: Dec 17, 2015 7:17 am
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Ok, if i read documentation correctly replication is possible synchronously and asynchronously, correct? Or are there Limits caused by Veeam?
-
- Product Manager
- Posts: 14822
- Liked: 3074 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
correct, streaming replication can be asynchronous or synchronous. There are no known limits from our side except the ones listed above.
-
- Veeam Legend
- Posts: 1201
- Liked: 416 times
- Joined: Dec 17, 2015 7:17 am
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
What about logical replication (which is the only mode as i understand to be able to support different versions and thus nearly downtime-free upgrades)?
-
- Veeam Legend
- Posts: 1201
- Liked: 416 times
- Joined: Dec 17, 2015 7:17 am
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Second question: Is there any HA solution like Patroni or Stolon that uses streaming replication and allows for automatic failover compatible with Veeam log backup?
-
- Product Manager
- Posts: 14822
- Liked: 3074 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Hello Markus,
sorry for the delay... vacation time... I never looked at logical replication. As database schema and DDL are not replicated, only tables can be replicated and other restrictions, I'm not sure how many real-world us-cases exist for logical replication (from here)
I tested with Patroni back in the days and and one has to switch manually for log shipping. The software does not detect the primary node after a failover. Stolon seems to be only for Kubernetes, so that's out of scope here I guess.
Best regards,
Hannes
sorry for the delay... vacation time... I never looked at logical replication. As database schema and DDL are not replicated, only tables can be replicated and other restrictions, I'm not sure how many real-world us-cases exist for logical replication (from here)
I tested with Patroni back in the days and and one has to switch manually for log shipping. The software does not detect the primary node after a failover. Stolon seems to be only for Kubernetes, so that's out of scope here I guess.
Best regards,
Hannes
-
- Veeam Legend
- Posts: 1201
- Liked: 416 times
- Joined: Dec 17, 2015 7:17 am
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Hannes, thank you - what do you mean with "switch manually for log shipping" - on the Veeam side or do you mean failover?
-
- Product Manager
- Posts: 14822
- Liked: 3074 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Hello,
on the Veeam side, you need to define which machine should be used for log shipping.
If a standby node is selected for log shipping, then it will fail because it's in recovery mode.
Best regards,
Hannes
on the Veeam side, you need to define which machine should be used for log shipping.
If a standby node is selected for log shipping, then it will fail because it's in recovery mode.
Best regards,
Hannes
-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
[MERGED] V12 backup postgresql cluster
Hi!
I wonder if it is supported in Veeam V12 to run application aware backup on 3 vsphere vms running a postgresql cluster?
\Maso
I wonder if it is supported in Veeam V12 to run application aware backup on 3 vsphere vms running a postgresql cluster?
\Maso
-
- Product Manager
- Posts: 14822
- Liked: 3074 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Hello,
the user guide says "not supported", but I described above what's working.
What type of cluster technology are you using? That information would help us to decide which types of cluster to potentially support in future.
Best regards,
Hannes
the user guide says "not supported", but I described above what's working.
What type of cluster technology are you using? That information would help us to decide which types of cluster to potentially support in future.
Best regards,
Hannes
-
- Veeam Software
- Posts: 34
- Liked: never
- Joined: Mar 08, 2021 12:17 pm
- Full Name: Nigel Tan
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Hi Hannes,
I do have a partner requesting for the support of Patroni HA management for PostgreSQL cluster.
Is it possible to raise this as a FR?
I do have a partner requesting for the support of Patroni HA management for PostgreSQL cluster.
Is it possible to raise this as a FR?
-
- Veeam Legend
- Posts: 1201
- Liked: 416 times
- Joined: Dec 17, 2015 7:17 am
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
I also would find support for Patroni clusters very useful!
-
- Novice
- Posts: 8
- Liked: never
- Joined: Sep 26, 2023 4:42 pm
- Full Name: Tom babai
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Hey all,
I have many postgresql clusters in my environment, is there a solution for backing up the logs without adjusting the job once in a while when a primary db changes? Like is there a reason not to just back up all the cluster vms and their logs and use them accordingly once the restore is needed?
Also does anybody know what value does the archive_command get? Why does it have to be empty?
I have many postgresql clusters in my environment, is there a solution for backing up the logs without adjusting the job once in a while when a primary db changes? Like is there a reason not to just back up all the cluster vms and their logs and use them accordingly once the restore is needed?
Also does anybody know what value does the archive_command get? Why does it have to be empty?
-
- Product Manager
- Posts: 14822
- Liked: 3074 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: PostgreSQL Log Backup & V12 - Replication / Cluster / HA working?
Hello,
rest of the conversation is here and I will continue to answer there
Best regards,
Hannes
no, that's one of the reasons why it's unsupported. That manual configuration is not "customer ready".is there a solution for backing up the logs without adjusting the job once in a while when a primary db changes?
rest of the conversation is here and I will continue to answer there
Best regards,
Hannes
Who is online
Users browsing this forum: Baidu [Spider], Google Adsense [Bot], vtsybin and 87 guests