Nilesh Attarde
Nilesh Attarde

Reputation: 64

How to setup replication on Artifactory OSS version

I have 2 Artifactory-OSS servers, both are placed at 2 different location. I want to enable replication for maven repositories created on this servers, so could anyone has done this kind of setup to enable replication feature on artifactory-oss version?

Upvotes: 0

Views: 1111

Answers (1)

Dror Bereznitsky
Dror Bereznitsky

Reputation: 20376

Repository replication requires at least an Artifactory Pro license.
You can create a remote repository in one Artifactory which point to a local repository on the other Artifactory. This will enable you to cache files located in the remote Artifactory. Caching will be performed only when the artifact is requested, as opposed to replication which will actively populate the artifacts.

The Artifactory Pro version supports the following types of replications:

  1. Scheduled push replication - Push replication is used to synchronize Local Repositories, and is implemented by the Artifactory server on the near end invoking a synchronization of artifacts to the far end. Pushes are scheduled asynchronously at regular intervals.
  2. Event based push replication - Pushes occur in nearly in real-time since each create, copy, move or delete of an artifact is immediately propagated to the far end
  3. Scheduled pull replication - This provides a way to proactively populate a remote cache, and is useful when waiting for new artifacts to arrive on demand (when first requested) is not desirable due to network latency. Pull replication is invoked by a remote repository, and runs asynchronously according to a defined schedule to synchronize repositories (local, remote or virtual) at regular intervals.

The Artifactory Enterprise version supports the following additional types of replications:

  1. Event based pull replication - Pulls occur nearly in real-time since each create, copy, move or delete of an artifact is immediately propagated to the far end. As soon as a file is uploaded it is replicated and immediately available to the target (pulling) instance without even having to wait for the file upload to be completed at the source
  2. Multi push replication - replicate a local repository from a single source to multiple enterprise target sites simultaneously

The replication white paper describes how to use replication to support different types of topologies like star and full mesh.

Upvotes: 1

Related Questions