)]}'
{"ansible/roles/haproxy-config/templates/haproxy_single_service_split.cfg.j2":[{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"8251c39bdc9ebdc35c6abc75c44cc708a88a9d6a","unresolved":true,"context_lines":[{"line_number":93,"context_line":"        {% for host in groups[host_group] %}"},{"line_number":94,"context_line":"            {% set host_name \u003d hostvars[host][\u0027ansible_hostname\u0027] %}"},{"line_number":95,"context_line":"            {% set host_ip \u003d \u0027api\u0027 | kolla_address(host) %}"},{"line_number":96,"context_line":"    {% set service_weight \u003d \u0027haproxy_\u0027 + service_name.split(\u0027_\u0027)[0] + \u0027_weight\u0027 %}"},{"line_number":97,"context_line":"    {% if hostvars[host][service_weight] is defined %}"},{"line_number":98,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }} weight {{ hostvars[host][service_weight] }}"},{"line_number":99,"context_line":"    {% else %}"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"3fbb98d0_1528b458","line":96,"range":{"start_line":96,"start_character":41,"end_line":96,"end_character":67},"updated":"2021-03-30 15:18:47.000000000","message":"Would it be safer to go with the full service name rather than the part before the first underscore?","commit_id":"ee2d8d4b88f21898714e64e117e35d60d10f77ba"},{"author":{"_account_id":27339,"name":"Michal Arbet","email":"michal.arbet@ultimum.io","username":"michalarbet"},"change_message_id":"09b8b8bf4a3e065492ad405a590dc36f57786e84","unresolved":true,"context_lines":[{"line_number":93,"context_line":"        {% for host in groups[host_group] %}"},{"line_number":94,"context_line":"            {% set host_name \u003d hostvars[host][\u0027ansible_hostname\u0027] %}"},{"line_number":95,"context_line":"            {% set host_ip \u003d \u0027api\u0027 | kolla_address(host) %}"},{"line_number":96,"context_line":"    {% set service_weight \u003d \u0027haproxy_\u0027 + service_name.split(\u0027_\u0027)[0] + \u0027_weight\u0027 %}"},{"line_number":97,"context_line":"    {% if hostvars[host][service_weight] is defined %}"},{"line_number":98,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }} weight {{ hostvars[host][service_weight] }}"},{"line_number":99,"context_line":"    {% else %}"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"922ced8a_3372ba75","line":96,"range":{"start_line":96,"start_character":41,"end_line":96,"end_character":67},"in_reply_to":"3fbb98d0_1528b458","updated":"2021-03-30 15:27:55.000000000","message":"Well, probably yes ..and also it would be more specific to target backend of some service (example heat-api, heat-api-cfn) ..now if user define haproxy_heat_weight ..all backends for both services will have weight defined ...\n\nYou are asking me to make it like -\u003e heat_api_weight and heat_api_cfn_weight for example.\nBut, is it really needed ? I think only heat-api, heat-api-cfn is , nova-spicehtmlproxy is issue..","commit_id":"ee2d8d4b88f21898714e64e117e35d60d10f77ba"},{"author":{"_account_id":27339,"name":"Michal Arbet","email":"michal.arbet@ultimum.io","username":"michalarbet"},"change_message_id":"81123802d1df716d4e8341158c031962c2206191","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        {% for host in groups[host_group] %}"},{"line_number":94,"context_line":"            {% set host_name \u003d hostvars[host][\u0027ansible_hostname\u0027] %}"},{"line_number":95,"context_line":"            {% set host_ip \u003d \u0027api\u0027 | kolla_address(host) %}"},{"line_number":96,"context_line":"    {% set service_weight \u003d \u0027haproxy_\u0027 + service_name.split(\u0027_\u0027)[0] + \u0027_weight\u0027 %}"},{"line_number":97,"context_line":"    {% if hostvars[host][service_weight] is defined %}"},{"line_number":98,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }} weight {{ hostvars[host][service_weight] }}"},{"line_number":99,"context_line":"    {% else %}"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"1f72f0de_30396c92","line":96,"range":{"start_line":96,"start_character":41,"end_line":96,"end_character":67},"in_reply_to":"922ced8a_3372ba75","updated":"2021-04-11 08:11:29.000000000","message":"Done","commit_id":"ee2d8d4b88f21898714e64e117e35d60d10f77ba"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"8251c39bdc9ebdc35c6abc75c44cc708a88a9d6a","unresolved":true,"context_lines":[{"line_number":93,"context_line":"        {% for host in groups[host_group] %}"},{"line_number":94,"context_line":"            {% set host_name \u003d hostvars[host][\u0027ansible_hostname\u0027] %}"},{"line_number":95,"context_line":"            {% set host_ip \u003d \u0027api\u0027 | kolla_address(host) %}"},{"line_number":96,"context_line":"    {% set service_weight \u003d \u0027haproxy_\u0027 + service_name.split(\u0027_\u0027)[0] + \u0027_weight\u0027 %}"},{"line_number":97,"context_line":"    {% if hostvars[host][service_weight] is defined %}"},{"line_number":98,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }} weight {{ hostvars[host][service_weight] }}"},{"line_number":99,"context_line":"    {% else %}"},{"line_number":100,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }}"},{"line_number":101,"context_line":"    {% endif %}"},{"line_number":102,"context_line":"        {% endfor %}"},{"line_number":103,"context_line":"    {% endif %}"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"31832c1c_58fcd410","line":100,"range":{"start_line":96,"start_character":0,"end_line":100,"end_character":114},"updated":"2021-03-30 15:18:47.000000000","message":"I don\u0027t like the duplication. Would be better to append","commit_id":"ee2d8d4b88f21898714e64e117e35d60d10f77ba"},{"author":{"_account_id":27339,"name":"Michal Arbet","email":"michal.arbet@ultimum.io","username":"michalarbet"},"change_message_id":"81123802d1df716d4e8341158c031962c2206191","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        {% for host in groups[host_group] %}"},{"line_number":94,"context_line":"            {% set host_name \u003d hostvars[host][\u0027ansible_hostname\u0027] %}"},{"line_number":95,"context_line":"            {% set host_ip \u003d \u0027api\u0027 | kolla_address(host) %}"},{"line_number":96,"context_line":"    {% set service_weight \u003d \u0027haproxy_\u0027 + service_name.split(\u0027_\u0027)[0] + \u0027_weight\u0027 %}"},{"line_number":97,"context_line":"    {% if hostvars[host][service_weight] is defined %}"},{"line_number":98,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }} weight {{ hostvars[host][service_weight] }}"},{"line_number":99,"context_line":"    {% else %}"},{"line_number":100,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }}"},{"line_number":101,"context_line":"    {% endif %}"},{"line_number":102,"context_line":"        {% endfor %}"},{"line_number":103,"context_line":"    {% endif %}"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"dd0ecd5f_578d131c","line":100,"range":{"start_line":96,"start_character":0,"end_line":100,"end_character":114},"in_reply_to":"0ed871e9_6be1a7ea","updated":"2021-04-11 08:11:29.000000000","message":"Done","commit_id":"ee2d8d4b88f21898714e64e117e35d60d10f77ba"},{"author":{"_account_id":27339,"name":"Michal Arbet","email":"michal.arbet@ultimum.io","username":"michalarbet"},"change_message_id":"09b8b8bf4a3e065492ad405a590dc36f57786e84","unresolved":true,"context_lines":[{"line_number":93,"context_line":"        {% for host in groups[host_group] %}"},{"line_number":94,"context_line":"            {% set host_name \u003d hostvars[host][\u0027ansible_hostname\u0027] %}"},{"line_number":95,"context_line":"            {% set host_ip \u003d \u0027api\u0027 | kolla_address(host) %}"},{"line_number":96,"context_line":"    {% set service_weight \u003d \u0027haproxy_\u0027 + service_name.split(\u0027_\u0027)[0] + \u0027_weight\u0027 %}"},{"line_number":97,"context_line":"    {% if hostvars[host][service_weight] is defined %}"},{"line_number":98,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }} weight {{ hostvars[host][service_weight] }}"},{"line_number":99,"context_line":"    {% else %}"},{"line_number":100,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }}"},{"line_number":101,"context_line":"    {% endif %}"},{"line_number":102,"context_line":"        {% endfor %}"},{"line_number":103,"context_line":"    {% endif %}"}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"0ed871e9_6be1a7ea","line":100,"range":{"start_line":96,"start_character":0,"end_line":100,"end_character":114},"in_reply_to":"31832c1c_58fcd410","updated":"2021-03-30 15:27:55.000000000","message":"ack","commit_id":"ee2d8d4b88f21898714e64e117e35d60d10f77ba"},{"author":{"_account_id":22629,"name":"Michal Nasiadka","email":"mnasiadka@gmail.com","username":"mnasiadka"},"change_message_id":"e0b6cab4316547789a81de0d72c270fb236e4111","unresolved":true,"context_lines":[{"line_number":94,"context_line":"            {% set host_name \u003d hostvars[host][\u0027ansible_hostname\u0027] %}"},{"line_number":95,"context_line":"            {% set host_ip \u003d \u0027api\u0027 | kolla_address(host) %}"},{"line_number":96,"context_line":"    {% set service_weight \u003d \u0027haproxy_\u0027 + service_name + \u0027_weight\u0027 %}"},{"line_number":97,"context_line":"    {% if hostvars[host][service_weight] is defined %}"},{"line_number":98,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }} weight {{ hostvars[host][service_weight] }}"},{"line_number":99,"context_line":"    {% else %}"},{"line_number":100,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }}"}],"source_content_type":"text/x-jinja2","patch_set":7,"id":"ff1b2ab4_b8179442","line":97,"range":{"start_line":97,"start_character":4,"end_line":97,"end_character":54},"updated":"2021-06-24 13:09:41.000000000","message":"Would it make sense to check if it\u0027s an integer? Else haproxy will be doomed to fail.","commit_id":"80d5a725de8430442965f9eae33b7af610bbad31"},{"author":{"_account_id":27339,"name":"Michal Arbet","email":"michal.arbet@ultimum.io","username":"michalarbet"},"change_message_id":"61263d24adf5216e0d03eae830968251850b73e4","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            {% set host_name \u003d hostvars[host][\u0027ansible_hostname\u0027] %}"},{"line_number":95,"context_line":"            {% set host_ip \u003d \u0027api\u0027 | kolla_address(host) %}"},{"line_number":96,"context_line":"    {% set service_weight \u003d \u0027haproxy_\u0027 + service_name + \u0027_weight\u0027 %}"},{"line_number":97,"context_line":"    {% if hostvars[host][service_weight] is defined %}"},{"line_number":98,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }} weight {{ hostvars[host][service_weight] }}"},{"line_number":99,"context_line":"    {% else %}"},{"line_number":100,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }}"}],"source_content_type":"text/x-jinja2","patch_set":7,"id":"7630f3db_f03c1a87","line":97,"range":{"start_line":97,"start_character":4,"end_line":97,"end_character":54},"in_reply_to":"ff1b2ab4_b8179442","updated":"2021-08-29 11:05:47.000000000","message":"Done","commit_id":"80d5a725de8430442965f9eae33b7af610bbad31"},{"author":{"_account_id":30491,"name":"Radosław Piliszek","display_name":"Radek","email":"radek@piliszek.it","username":"yoctozepto","status":"self-employed techologist, collaborating mostly with 7bulls.com"},"change_message_id":"3ffb967adf1b81d6c2a66bb9990c5435f1f4ceef","unresolved":true,"context_lines":[{"line_number":95,"context_line":"            {% set host_ip \u003d \u0027api\u0027 | kolla_address(host) %}"},{"line_number":96,"context_line":"    {% set service_weight \u003d \u0027haproxy_\u0027 + service_name + \u0027_weight\u0027 %}"},{"line_number":97,"context_line":"    {% if hostvars[host][service_weight] is defined and hostvars[host][service_weight] | int !\u003d 0 and hostvars[host][service_weight] \u003c\u003d 256 %}"},{"line_number":98,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }} weight {{ hostvars[host][service_weight] }}"},{"line_number":99,"context_line":"    {% else %}"},{"line_number":100,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }}"},{"line_number":101,"context_line":"    {% endif %}"}],"source_content_type":"text/x-jinja2","patch_set":10,"id":"0d99971a_2baeb3c3","line":98,"updated":"2021-09-24 12:17:25.000000000","message":"it would be better to avoid duplicating this line and instead generate the extra appended string (like it\u0027s the case with, e.g., backend_tls_info)","commit_id":"24cf32321a22eaadf2308388d6d5fbb7f7d21710"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"c53169349053ebd0009ccf1e68bab48cebe8367e","unresolved":true,"context_lines":[{"line_number":93,"context_line":"        {% for host in groups[host_group] %}"},{"line_number":94,"context_line":"            {% set host_name \u003d hostvars[host][\u0027ansible_hostname\u0027] %}"},{"line_number":95,"context_line":"            {% set host_ip \u003d \u0027api\u0027 | kolla_address(host) %}"},{"line_number":96,"context_line":"    {% set service_weight \u003d \u0027haproxy_\u0027 + service_name + \u0027_weight\u0027 %}"},{"line_number":97,"context_line":"    {% set backend_weight_info \u003d \u0027\u0027 %}"},{"line_number":98,"context_line":"    {% if hostvars[host][service_weight] is defined and hostvars[host][service_weight] | int !\u003d 0 and hostvars[host][service_weight] \u003c\u003d 256 %}"},{"line_number":99,"context_line":"        {% set backend_weight_info \u003d \u0027weight %s\u0027|format(hostvars[host][service_weight]) %}"},{"line_number":100,"context_line":"    {% endif %}"},{"line_number":101,"context_line":"    server {{ host_name }} {{ host_ip }}:{{ listen_port }} {{ haproxy_health_check_final }} {{ backend_tls_info }} {{ backend_weight_info }}"},{"line_number":102,"context_line":"        {% endfor %}"},{"line_number":103,"context_line":"    {% endif %}"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"f7f250e2_1aff9de6","line":100,"range":{"start_line":96,"start_character":0,"end_line":100,"end_character":15},"updated":"2021-09-29 08:18:50.000000000","message":"Indentation looks wrong here - should be at the same level as L95.","commit_id":"7c2b4bead2e5334acd43a3dc42dd42a74fd346ba"}],"doc/source/reference/high-availability/haproxy-guide.rst":[{"author":{"_account_id":22629,"name":"Michal Nasiadka","email":"mnasiadka@gmail.com","username":"mnasiadka"},"change_message_id":"b6648dbbbcb6ba2a9ea2522d35a8c0317109c9d8","unresolved":true,"context_lines":[{"line_number":53,"context_line":"or they are overloaded for some reason, kolla-ansible is able to change"},{"line_number":54,"context_line":"weight of backend per sevice."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"To set weight of backend per service, modify inventory file as below:"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":".. code-block:: ini"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"   [control]"},{"line_number":61,"context_line":"   server1 haproxy_nova_api_weight\u003d10"},{"line_number":62,"context_line":"   server2 haproxy_nova_api_weight\u003d2 haproxy_keystone_internal_weight\u003d10"},{"line_number":63,"context_line":"   server3 haproxy_keystone_admin_weight\u003d50"}],"source_content_type":"text/x-rst","patch_set":9,"id":"53395051_2483d222","line":63,"range":{"start_line":56,"start_character":0,"end_line":63,"end_character":43},"updated":"2021-09-23 15:56:27.000000000","message":"anything about weight range from 1 to 255?","commit_id":"03466d913dab7e3bac159255f9ec8c294ea1c81b"},{"author":{"_account_id":27339,"name":"Michal Arbet","email":"michal.arbet@ultimum.io","username":"michalarbet"},"change_message_id":"65fa9f92736fe6c8093a5fbaca09d6f3acf45735","unresolved":false,"context_lines":[{"line_number":53,"context_line":"or they are overloaded for some reason, kolla-ansible is able to change"},{"line_number":54,"context_line":"weight of backend per sevice."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"To set weight of backend per service, modify inventory file as below:"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":".. code-block:: ini"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"   [control]"},{"line_number":61,"context_line":"   server1 haproxy_nova_api_weight\u003d10"},{"line_number":62,"context_line":"   server2 haproxy_nova_api_weight\u003d2 haproxy_keystone_internal_weight\u003d10"},{"line_number":63,"context_line":"   server3 haproxy_keystone_admin_weight\u003d50"}],"source_content_type":"text/x-rst","patch_set":9,"id":"a6c7d130_85bf457d","line":63,"range":{"start_line":56,"start_character":0,"end_line":63,"end_character":43},"in_reply_to":"53395051_2483d222","updated":"2021-09-23 16:33:02.000000000","message":"https://cbonte.github.io/haproxy-dconv/2.0/configuration.html \u003c\u003c max value is 256","commit_id":"03466d913dab7e3bac159255f9ec8c294ea1c81b"}],"releasenotes/notes/haproxy-service-backend-weight-e4a908f732a37b42.yaml":[{"author":{"_account_id":22629,"name":"Michal Nasiadka","email":"mnasiadka@gmail.com","username":"mnasiadka"},"change_message_id":"b6648dbbbcb6ba2a9ea2522d35a8c0317109c9d8","unresolved":true,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    The haproxy-config role now allows user to set weight per"},{"line_number":5,"context_line":"    haproxy\u0027s backend. This can be achieved by setting a hostvar"},{"line_number":6,"context_line":"    ``haproxy_{{ service }}_weight`` in inventory file to some integer"},{"line_number":7,"context_line":"    value, so the higher the weight, the higher the load. This can"},{"line_number":8,"context_line":"    be set per ``{{ service }}``. If hostvar is not specified, backend\u0027s"},{"line_number":9,"context_line":"    weight is not rendered in final haproxy configuration."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"e11639cd_402878ff","line":7,"range":{"start_line":6,"start_character":55,"end_line":7,"end_character":9},"updated":"2021-09-23 15:56:27.000000000","message":"I would say to a defined range between 1 and 255.","commit_id":"03466d913dab7e3bac159255f9ec8c294ea1c81b"},{"author":{"_account_id":27339,"name":"Michal Arbet","email":"michal.arbet@ultimum.io","username":"michalarbet"},"change_message_id":"65fa9f92736fe6c8093a5fbaca09d6f3acf45735","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    The haproxy-config role now allows user to set weight per"},{"line_number":5,"context_line":"    haproxy\u0027s backend. This can be achieved by setting a hostvar"},{"line_number":6,"context_line":"    ``haproxy_{{ service }}_weight`` in inventory file to some integer"},{"line_number":7,"context_line":"    value, so the higher the weight, the higher the load. This can"},{"line_number":8,"context_line":"    be set per ``{{ service }}``. If hostvar is not specified, backend\u0027s"},{"line_number":9,"context_line":"    weight is not rendered in final haproxy configuration."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7a6b11d5_95c2f0b8","line":7,"range":{"start_line":6,"start_character":55,"end_line":7,"end_character":9},"in_reply_to":"e11639cd_402878ff","updated":"2021-09-23 16:33:02.000000000","message":"max is 256 https://cbonte.github.io/haproxy-dconv/2.0/configuration.html","commit_id":"03466d913dab7e3bac159255f9ec8c294ea1c81b"}]}
