ARTIFACTORY: Scale down/Downgrade Artifactory HA to Standalone mode

Vishal Suvarna
2023-01-22 11:07

In this article, we are going to describe the steps that can help to downgrade/scale down Artifactory from HA to single node mode. This is based upon two situations, where the user either wants to enable the HA mode again, if required or wants to have only one working Artifactory node in standalone mode.

If the requirement is to enable the HA mode again:

In this scenario, we can simply scale down the Artifactory HA cluster to a single working node, by stopping or shutting down the second node in the Artifactory HA cluster. This is one of the advantages of having the HA cluster setup, that we can scale down and scale up without any impact on the existing data. By doing so, the second Artifactory node will be offline and only a single node will be up and running. Then we can bring up the second Artifactory node, to work in HA mode anytime when it's required again. After we have brought down the secondary node, we can confirm that only a single node is running by accessing the JFrog UI and selecting Monitoring>Service Status. 

User-added image
 

If the requirement is to scale down from HA to just one working Artifactory node in standalone mode: 

If the requirement is to have only one working Artifactory node in standalone mode, the below steps can be followed:

A.  Please stop both the Artifactory nodes in the HA cluster.

B. Then in the system.yaml file located in the $JFROG_HOME/artifactory/var/etc directory of the First node, comment out the below-highlighted options under the shared.node 
  ## Node Settings  node:
    id: "art1"
    ip: xx.xx.xx.xx
    #haEnabled: true
    #taskAffinity: any
    #primary: true

C. It is also required to change the binarystore.xml template in the First node from the 'cluster' configuration binary provider, such as cluster-s3-storage-v3,cluster-file-system, etc, which is required for HA setup to the respective non cluster binary provider config which is required for standalone setup as in this link.

D. We would also need to change the cluster license file by renaming the ‘artifactory.cluster.licenses’ file (located in the $JFROG_HOME/artifactory/var/etc/artifactory) to ‘artifactory.lic’ which is required for a standalone Artifactory instance.
After following the above steps, please start the above Artifactory node in order to use it as a single standalone node.