Using the latest JFrog products?
JFrog Platform User Guide
JFrog Distribution 1.x Documentation
To get the latest version, go to the JFrog Unified Platform
Installing Distribution HA
Required steps:
- Install and configure the PostgreSQL database
- Install the first Distribution cluster node.
- Install any additional Distribution nodes
- Use the master key from the first node and the PostgreSQL connection string to configure the installed node
- Configure a load balancer between the Distribution cluster nodes.
Installing the First Node
master.key
The master key is an internal secret, used by Distribution to encrypt sensitive data and must be synced between the Distribution cluster nodes. After the application is started, the master key can be found in the following path: <DISTRIBUTION_HOME>/.platform/master.key.
Installing Additional Nodes
The additional cluster nodes should also be installed according to the general Distribution installation instructions.
Make sure to respond "Y" to the "Are you adding this node to an existing cluster?" question at the beginning of the installation.
The installer will prompt you for the following additional information:
- A
master key
, found in the path <DISTRIBUTION_HOME>/.platform/master.key of the initial node. - A PostgreSQL connection string, in order to connect to the same
Extending Distribution From Standalone to HA
If you already have a working standalone Distribution environment, you can easily move to an HA environment.
The existing installation is considered the first cluster node followed by additional nodes that are then added to the HA environment.
Prior to installing the additional Distribution nodes, perform the following:
Prerequisites
- Establish a working PostgreSQL connection string.
- Get the master key generated by the first node.
Migrating Data to PostgreSQL
- Install the external PostgreSQL database.
- Stop the app.
- Migrate all your data to the PostsgreSQL cluster.
- Add the PostsgreSQL connection string to the `/var/opt/jfrog/distribution/etc/distribution.local.config.yml` file.
- Start the application and ensuer it’s up and running