phantom:
    address: '{{ target }}'
    load_profile: &rps {load_type: rps, schedule: '{{ schedule }}'}
    {% if additional_targets %}
    multi:
        {% for additional_target in additional_targets %}
        - address: '{{ additional_target }}'
        {%- endfor %}
    {% endif %}
    {% if headers %}
    headers: {{ headers }}
    {% endif %}
    threads: 17
    header_http: '1.1'
{#    #headers: ['Host: saas.yandex.net']#}
{#    #instances: 500#}
{#    #ammofile: 'https://storage-int.mds.yandex.net/get-load-ammo/29344/876f8d5cfde44b7fa3b73aeaa448e75e'#}
{#    #chosen_cases: ['1_small_district']#}
{#    #header_http: '1.1'#}
telegraf:
    enabled: false
uploader:
    enabled: true
    task: {{ ticket }}
    operator: {{ operator }}
{#  job_name: '[district][feed reader][1-100 x4 + 10 rps]'#}
{#  meta: {use_tank: tank.shooting.backend.district.stable.qloud-d.yandex.net}#}
autostop:
  autostop:
    - 'http(5xx,0.5%,7s)'
    - 'http(4xx,0.5%,7s)'
    - 'http(0,0.5%,7s)'
{% if timing_treshold %}
    - 'time({{ timing_treshold }},5s)'
{% endif %}
yasm:
  enabled: true
  package: yandextank.plugins.YASM
  panels:
    proxy:
      host: {{ all_targets|join(',') }}
      tags: itype=searchproxy;
      signals:
        - saas_unistat-search-{{ ctype }}-{{ service }}-5xx_dmmm
        - saas_unistat-search-{{ ctype }}-{{ service }}-exceptions_dmmm
        - saas_unistat-search-{{ ctype }}-{{ service }}-unavailable_dmmm
        - saas_unistat-search-{{ ctype }}-{{ service }}-timeouted_dmmm
        - saas_unistat-search-{{ ctype }}-{{ service }}-not-fetched_dmmm
        - saas_unistat-search-{{ ctype }}-{{ service }}-incomplete_dmmm
        - saas_unistat-search-{{ ctype }}-{{ service }}-unauthorized_dmmm
    backend:
        host: ASEARCH
        tags: itype=rtyserver;
        signals:
            - quant(saas_unistat-search-total-doc-count-{{ ctype }}-{{ service }}_dhhh, 99);
