{% extends "tasks/view.html" %} {% block additional %} {% set results = task.get_priemka_results() %} {% set plan_types = task.ctx['plan_types'] %} {% set measure_memusage = task.ctx['measure_middlesearch_memory_usage'] %} {% for tier in results %}

Priemka results for tier {{ tier['tier_name'] }}

{% if 'factors' in plan_types %} {% set num_of_col = 8 %} {% else %} {% set num_of_col = 5 %} {% endif %} {% if measure_memusage %} {% set num_of_col = num_of_col + 3 %} {% endif %} {% for plan_type in plan_types %} {% endfor %} {% for i in [0, 1] %} {% for plan_type in plan_types %} {% endfor %} {% if measure_memusage %} {% endif %} {% endfor %} {# render sorted by scatter group results in UI #} {% for i, shard_result in tier['tier_results'] %} {% for db_tag in ['production', 'newdb'] %} {% for plan_type in plan_types %} {% set task_id = shard_result.get('{}_{}_task_id'.format(db_tag, plan_type)) %} {% set child_task = task.get_child_task(child_tasks, task_id) %} {% endfor %} {% if measure_memusage %} {% set task_id = shard_result.get('{}_memusage_task_id'.format(db_tag)) %} {% set child_task = task.get_child_task(child_tasks, task_id) %} {% endif %} {% endfor %} {% for plan_type in plan_types %} {% if shard_result['newdb_{}_rps'.format(plan_type)] and shard_result['production_{}_rps'.format(plan_type)] %} {% else %} {% endif %} {% endfor %} {% endfor %} {% for db_tag in ['production', 'newdb'] %} {% for plan_type in plan_types %} {% endfor %} {% if measure_memusage %} {% endif %} {% endfor %} {% for plan_type in plan_types %} {% if tier['production_avg_{}_rps'.format(plan_type)] and tier['newdb_avg_{}_rps'.format(plan_type)]%} {% else %} {% endif %} {% endfor %} {% for db_tag in ['production', 'newdb'] %} {% for plan_type in plan_types %} {% endfor %} {% if measure_memusage %} {% endif %} {% endfor %} {% for plan_type in plan_types %} {% endfor %} {% if measure_memusage %} {% endif %} {% for plan_type in plan_types %} {% endfor %} {% if measure_memusage %} {% endif %} {% for plan_type in plan_types %} {% if tier['production_avg_num_of_{}_queries'.format(plan_type)] and tier['newdb_avg_num_of_{}_queries'.format(plan_type)]%} {% else %} {% endif %} {% endfor %} {% for plan_type in plan_types %} {% endfor %} {% if measure_memusage %} {% endif %} {% for plan_type in plan_types %} {% endfor %} {% if measure_memusage %} {% endif %} {% for plan_type in plan_types %} {% if tier['production_avg_quantile_{}'.format(plan_type)] and tier['newdb_avg_quantile_{}'.format(plan_type)]%} {% else %} {% endif %} {% endfor %} {% if measure_memusage %} {% for db_tag in ['production', 'newdb'] %} {% for plan_type in plan_types %} {% endfor %} {% endfor %} {% endif %}
# Scatter groupOld database New database{{'{} diff'.format(plan_type)}}
shard name database{{plan_type}} performance task {{plan_type}} task status {{plan_type}} rpsmemory usage task memory usage task status memory usage
{{ i }} {{ shard_result.get('scatter_group') }}{{ shard_result.get('{}_shard_name'.format(db_tag)) }} {{ shard_result.get('{}_shard_resource_id'.format(db_tag)) | get_resource_link }}{{ task_id | get_task_link}} {{ child_task.status }} {{ shard_result.get('{}_{}_rps'.format(db_tag, plan_type)) or '-'}}{{ task_id | get_task_link}} {{ child_task.status }} {{ shard_result.get('{}_memory_rss'.format(db_tag)) or '-' }} / {{ shard_result.get('{}_memory_vsz'.format(db_tag)) or '-' }}{{ ((shard_result['newdb_{}_rps'.format(plan_type)] - shard_result['production_{}_rps'.format(plan_type)])*100/shard_result['production_{}_rps'.format(plan_type)])|round(2, 'common') }}% -
Average RPS {{ tier['{}_avg_{}_rps'.format(db_tag, plan_type)] or '-'}}{{ ((tier['newdb_avg_{}_rps'.format(plan_type)] - tier['production_avg_{}_rps'.format(plan_type)])*100/tier['production_avg_{}_rps'.format(plan_type)])|round(3, 'common') }}% -
Standard deviation RPS {{ tier['{}_deviation_{}_rps'.format(db_tag, plan_type)] or '-'}}
Real number of queries (avg for tier){{ tier['production_avg_num_of_{}_queries'.format(plan_type)] or '-'}}{{ tier['newdb_avg_num_of_{}_queries'.format(plan_type)] or '-'}}{{ ((tier['newdb_avg_num_of_{}_queries'.format(plan_type)] - tier['production_avg_num_of_{}_queries'.format(plan_type)])*100/tier['production_avg_num_of_{}_queries'.format(plan_type)])|round(3, 'common') }}% -
Quantile 99% of queries length (avg for tier){{ tier['production_avg_quantile_{}'.format(plan_type)] or '-'}}{{ tier['newdb_avg_quantile_{}'.format(plan_type)] or '-'}}{{ ((tier['newdb_avg_quantile_{}'.format(plan_type)] - tier['production_avg_quantile_{}'.format(plan_type)])*100/tier['production_avg_quantile_{}'.format(plan_type)])|round(3, 'common') }}% -
Average memory usage{{ tier['{}_avg_memory_rss'.format(db_tag)] or '-'}} / {{ tier['{}_avg_memory_vsz'.format(db_tag)] or '-'}}
{% else %}

Priemka is not started yet...

{% endfor %} {% endblock %}