For the complete documentation index, see llms.txt. This page is also available as Markdown.

High Availability (HA)

Set up high availability on VM build infrastructure.

Minimum Version

In order to use this feature, please ensure that you are using drone runner version of v1.0.0-rc.187 or greater.

Architecture

Setup

When using VM build infrastructure, you can deploy multiple replicas of the runner or infrastructure to ensure high availability. Below is an example of a deployment yaml that deploys 2 replicas of the runner behind a load balancer.

Ensure that you've configured the above yaml properly:

  • Populate DRONE_DATABASE_DATASOURCE according to your database infrastructure.

  • The env variable RUNNER_URL is used to point to the machine where the Harness Runner will run. In this case, use the load balancer ip obtained for the RUNNER_URL in the delegate. For example, when installing the delegate:

    • Add -e RUNNER_URL=http://<LOAD_BALANCER_IP>:3000

  • Note that above yaml mounts a volume config-volume with path /runner. Make sure your pool.yml file and secrets required are mapped properly. See the following GCP specific pool.yaml file used in the deployment above.

Last updated

Was this helpful?