Change glance haproxy balancing method

In order to support glance-direct interoperable image import method
we need to send both stage and import request to the same backend,
as it stores stageing image on the local storage by default.

Change-Id: I55a6983351f178bdc1eff9db50039010fa03a58b
This commit is contained in:
Dmitriy Rabotyagov 2020-04-08 21:21:20 +03:00
parent 4d0510bcfd
commit ef76ec297a

View File

@ -76,6 +76,7 @@ haproxy_default_services:
haproxy_ssl: "{{ haproxy_ssl }}"
haproxy_port: 9292
haproxy_balance_type: http
haproxy_balance_alg: source
haproxy_backend_options:
- "httpchk GET / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
haproxy_service_enabled: "{{ groups['glance_api'] is defined and groups['glance_api'] | length > 0 }}"