Filling the cache on the relay prior to deployment time

You can optionally fill the cache before deployment time by running a staging procedure. The procedure downloads artifacts from the CodeStation on the server to the CodeStation in the agent relay cache. The goal is to attach an agent to a particular relay and download an artifact once. This procedure forces the replication so that at deployment time, the artifact is likely already local.

Procedure

  1. Create a process with a deployment artifact step that deploys the required resource.
  2. Run the deployment to download the artifact once. This action forces artifact replication.

Results

The latest artifact is copied in the cache. Unless the artifact is updated on the main server, the required artifact is ready for the deployment process.
Note: If you don’t fill the cache prior to deployment, the first deployment can take a long time because the artifacts must be downloaded for the first time. Later deployments might be faster.

Feedback