Background archive transfer for Edge Server submits
Users on one or more of the Edge Servers might want to spend less time waiting for their submits to complete. Starting with 2019.1, you can configure the replication environment so that one or more of the Edge Servers participate in the background transfer of archive files Versioned files that users have submitted to a depot. to the Commit Server. For a participating Edge Server,
- The Edge Server sends the metadata to the Commit Server.
- The user on that Edge Server sees the submit is complete and can resume work.
- In the background, the Commit Server pulls the archive files from the Edge Server.
Prior to 2019.1, the user on an Edge Server would need to wait for both the submitted archive files and the metadata to be transferred to the Commit Server.
To enable background archive transfer
Prerequisites
- Ensure a service user is defined for the Commit Server and that this service user is logged into the ExternalAddress field of the server specification for each of the Edge Servers that you want to participate.
- If any of the participating Edge Servers are enabled for SSL/TSL security, ensure the service user on the Commit Server has established trust to the ExternalAddress field for those Edge Servers.
Steps with convenient alias
To enable background archive transfer with the added convenience of p4 submit automatically functioning as p4 submit -b so that your users do not need to use the -b option:
- Set the submit.allowbgtransfer configurable to 1 on the Edge Server(s) that you want to participate.
- Set the lbr.autocompress configurable to 1 on ALL the servers.
-
Set the submit.autobgtransfer configurable to 1 on the Edge Server(s) that you want to participate.
Steps without the alias
Alternatively, you can tell your users to manually issue the p4 submit -b command, where the -b option causes background transfer of the archive files. In this case:
- Set the submit.allowbgtransfer configurable to 1 on the Edge Server(s) that you want to participate.
- Set the lbr.autocompress configurable to 1 on ALL the servers .
Commit Server and p4 sync
A p4 sync
command that is running on a Commit Server for a file revision that was submitted from an Edge Server might return a librarian The librarian subsystem of the server stores, manages, and provides the archive files to other subsystems of the server. error message. This can occur if the background file transfer from the edge to the commit has not yet completed. To make the sync operation on the Commit Server wait for the file transfer to be completed, set the submit.allowbgtransfer configurable:
p4 configure set commit-server-ID#submit.allowbgtransfer=1
Commit Server recovery of a failed archive transfer
To recover a failed archive transfer, restart the transfer by using the p4 pull -u -t target command, where target represents the ExternalAddress of the Edge Server where the submit occurred that caused the failed transfer.
For details on background file content transfers, including errors due to failed transfers, see the output of p4 pull -l against the Commit Server.