From b1586393c74c85cce567f43c90f823e604e40be3 Mon Sep 17 00:00:00 2001 From: "kirby@puppetlabs.com" Date: Thu, 13 Sep 2018 09:32:20 -0700 Subject: [PATCH] Document backend_weight setting --- vmpooler.yaml.example | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vmpooler.yaml.example b/vmpooler.yaml.example index 2f4847f..c25e362 100644 --- a/vmpooler.yaml.example +++ b/vmpooler.yaml.example @@ -477,6 +477,14 @@ # Expects a boolean value # (optional; default: false) # +# - backend_weight +# A hash of clone_target values with weights assigned to allow selecting VMs by alias with selection probability +# This setting is only used when there is a pool title and matching alias that both have values set in backend weight. +# When both conditions are met then the next VM is selected by probability using backend weight. When weight is not set +# in this configuration then distribution of load is random. +# Expects a hash value +# (optional) +# # Example: :config: @@ -493,6 +501,9 @@ domain: 'example.com' prefix: 'poolvm-' experimental_features: true + backend_weight: + 'backend1': 60 + 'backend2': 40 # :pools: #