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_DATASOURCEaccording to your database infrastructure.The env variable
RUNNER_URLis used to point to the machine where the Harness Runner will run. In this case, use the load balancer ip obtained for theRUNNER_URLin 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 yourpool.ymlfile and secrets required are mapped properly. See the following GCP specificpool.yamlfile used in the deployment above.
Last updated
Was this helpful?