diff --git a/REPORT.md b/REPORT.md index f822ecd2..360682a1 100644 --- a/REPORT.md +++ b/REPORT.md @@ -84,6 +84,8 @@ make load - нагрузочный тест для Трека 1 (RPS, | 4 | ~260 | 26 | | 6 | 257 | - | +Корректные данные по результатам, график: evidence/scaling.png + ## Ограничения и следующие шаги Что выдерживается: Отказ процесса (реплики), rolling update, общая сессия, идемпотентность, миграции однократно. diff --git a/evidence/scaling.png b/evidence/scaling.png new file mode 100644 index 00000000..93fbe503 Binary files /dev/null and b/evidence/scaling.png differ diff --git a/scripts/plot.py b/scripts/plot.py new file mode 100644 index 00000000..45fad166 --- /dev/null +++ b/scripts/plot.py @@ -0,0 +1,23 @@ +import matplotlib.pyplot as plt +import os + +replicas = [1, 2, 4, 6] +rps = [250, 255, 260, 257] + +plt.figure(figsize=(8, 5)) +plt.plot(replicas, rps, marker='o', linestyle='-', color='b', linewidth=2, markersize=8) + +plt.title('Трек 1: Масштабирование API (суммарно 2 CPU / 1 GB)', fontsize=14) +plt.xlabel('Количество API-реплик', fontsize=12) +plt.ylabel('RPS (запросов в секунду)', fontsize=12) + +plt.grid(True, linestyle='--', alpha=0.7) +plt.xticks(replicas) + +plt.annotate('Saturation Point\n(Оптимум)', xy=(4, 260), xytext=(3, 252), + arrowprops=dict(facecolor='red', shrink=0.05), + fontsize=10, color='red') + +os.makedirs('evidence', exist_ok=True) +plt.savefig('evidence/scaling.png', dpi=300, bbox_inches='tight') +print("График сохранен в evidence/scaling.png") \ No newline at end of file