ARTIFACTORY: Get to know more about Push Replication
In push replication, we have a source Artifactory containing data and a target Artifactory responsible to receive the data. Artifactory supports two types of replication to copy the data from one Artifactory node to another. These are as follows -
- Scheduled Push Replication
- Event-Based Push Replication
When a file is deployed in the Artifactory, the metadata of the file (sha1, sha256,md5) values get stored in the Database and the actual file will get stored in the mounted filestore.
The Metadata (sha1, md5, binary length, sha256) of the file can be referred from the binaries table in the database.
And the actual file is stored in Filestore.
Scheduled Push Replication
The Scheduled Push Replication works on the cron job provided which enables the transfer of the file in regular intervals. In other words, the push replication triggers when the time hits the cron job. You may see the below log entries when Push replication triggers.
When Replication is successful, the metadata of the file will get stored in the target database binaries table and the actual file get stored in the mounted filestore of the target Artifactory.
Database updated with the same metadata
Target Artifactory Filestore received the actual file through Push Replication.
Event Push Replication
In the Event-Based Replication, when we performed tasks such as create/delete/copy of the files, the metadata in the database changed and the change trigger the replication of data from one node to another. The replication involves the transfer of metadata as well as the binaries.
When the Event Push Replication triggers, you will see the following entries in the artifactory-service.log file.