Real time monitoring web applications for highload
-
Upload
evgeny-palchevsky -
Category
Technology
-
view
160 -
download
0
description
Transcript of Real time monitoring web applications for highload
![Page 2: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/2.jpg)
Над чем работал
• 2009-2011: Курировал разработку проекта–Аналитика для сайтов–Работа с 20-ю сторонними сервисами–Рост до 1M uniq/day –Top 500 Alexa
• Занимаюсь развитием своих продуктов
![Page 3: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/3.jpg)
О чем поговорим
• Критерии мониторинга• Типы мониторинга• Анализ метрик и функционала• Система уведомлений
![Page 4: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/4.jpg)
“Вы не можете контролировать то, что не можете измерить”
Том ДеМарко
![Page 5: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/5.jpg)
Критерии мониторинга
• Простая интеграция с сервисами
![Page 6: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/6.jpg)
Критерии мониторинга
• Простая интеграция с сервисами• Простые данные (event: value)
![Page 7: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/7.jpg)
Критерии мониторинга
• Простая интеграция с сервисами• Простые данные (event: value)• Группировка метрик
![Page 8: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/8.jpg)
Критерии мониторинга
• Простая интеграция с сервисами• Простые данные (event: value)• Группировка метрик• Удобный анализ состояния метрик
![Page 9: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/9.jpg)
Критерии мониторинга
• Простая интеграция с сервисами• Простые данные (event: value)• Группировка метрик• Удобный анализ состояния метрик• Уведомления при проблемах
![Page 10: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/10.jpg)
Типы мониторинга
• Проактивный• Активный• Пассивный
![Page 11: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/11.jpg)
Проактивный мониторинг
• Предсказать поведение системы
• Прогнозировать появление узких мест
![Page 12: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/12.jpg)
Активный мониторинг
• Периодический опрос сервисов
![Page 13: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/13.jpg)
Пассивный мониторинг
• Реагирует на внешние сообщения
![Page 14: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/14.jpg)
Дальше
Мониторинг• Анализ метрик и функционала• Система уведомлений
![Page 18: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/18.jpg)
Много метрик
![Page 19: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/19.jpg)
Как посылаем метрики
• Асинхронно Hit::async ($id, $value);
Сохраняет в Redis Раз в 30 сек сервер аналитики
забирает данные по серверам
![Page 20: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/20.jpg)
Как посылаем с метрики
• СинхронноGET hitsmetric.com/hits/send/$id/$value
• JSvar loader = new Image();loader.src =
http://hitsmetric.com/hits/send/$id/$value
![Page 21: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/21.jpg)
Что внутри
Зоопарк–Symfony–Redis–ACL: MySQL
Статистика> 17 проектов> 500 метрик> 6M req/day
![Page 22: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/22.jpg)
Дальше
МониторингАнализ метрик и функционала
• Система уведомлений
![Page 23: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/23.jpg)
![Page 24: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/24.jpg)
Первый мониторинг
![Page 25: Real time monitoring web applications for highload](https://reader035.fdocuments.us/reader035/viewer/2022062514/558660f4d8b42aed468b4687/html5/thumbnails/25.jpg)
Сообщение в скайп