Introduction:

ARTIFACTORY: How to configure an HA PostgreSQL Database with Artifactory?

AuthorFullName__c
Nir Shervi
articleNumber
000005620
ft:sourceType
Salesforce
FirstPublishedDate
2023-03-15T16:55:43Z
lastModifiedDate
2023-03-19T12:45:10Z
VersionNumber
2
PostgreSQL Database High Availability is a new database set-up supported by Artifactory 7.31.10 and above with PostgreSQL 13.x.

This database set-up is configured using primary and secondary nodes.
Artifactory opens up connections to the PostgreSQL HA primary node, and the primary node replicates its data to the other PostgreSQL HA nodes.

As shown in the following diagram, the replication between the PostgreSQL nodes keeps them in sync in case the primary node fails.
User-added image

When the primary node becomes unavailable, Artifactory will automatically connect to the next PostgreSQL node in the chain, which becomes the current “primary” node.

User-added image

The motivation behind this database set-up is to enable automatic recovery from database failures which could prevent Artifactory system downtime.