{"id":464756,"date":"2025-06-26T21:00:31","date_gmt":"2025-06-26T21:00:31","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=464756"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=464756","title":{"rendered":"<span>DevOps \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u043a\u0430\u0445: \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 CI\/CD, Kubernetes \u0438 Grafana<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435: DevOps \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439<\/h3>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u0443\u044e fintech-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435, \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c\u043e\u0439: \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u043e\u0439. \u041e\u0434\u043d\u0430\u043a\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u044b, \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0438, \u0441\u0442\u0440\u043e\u0433\u0438\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0442\u0440\u0430\u043d\u044b \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0441\u043a\u0435\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u043a \u043d\u043e\u0432\u044b\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\u043c \u0432\u0440\u043e\u0434\u0435 GitLab CI, \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0432\u044b\u0437\u043e\u0432. \u0417\u0430 \u0434\u0432\u0430 \u0433\u043e\u0434\u0430 \u043c\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c 10 000 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 (TPS), \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c\u0441\u044f \u0437\u0430 12 \u043c\u0438\u043d\u0443\u0442 \u0438 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u0438\u043a\u043e\u0432\u044b\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u00ab\u0447\u0435\u0440\u043d\u0430\u044f \u043f\u044f\u0442\u043d\u0438\u0446\u0430\u00bb. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 DevOps-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435, \u043a\u0430\u043a\u0438\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u043b\u0438 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0443\u0441\u043f\u0435\u0445\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0432 \u0440\u0435\u0433\u0438\u043e\u043d\u0435, \u0433\u0434\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b, \u043d\u0430\u0448 \u043e\u043f\u044b\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d.<\/p>\n<h3>1. \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442: \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/h3>\n<h4>1.1. \u041f\u043e\u0447\u0435\u043c\u0443 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430?<\/h4>\n<p>\u0417\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0440\u044f\u0434\u0430 \u0441\u0442\u0440\u0430\u043d, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043d\u0430\u0448\u0443, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0433\u0440\u0430\u0436\u0434\u0430\u043d \u0432 \u043c\u0435\u0441\u0442\u043d\u044b\u0445 \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u0430\u0445, \u0447\u0430\u0441\u0442\u043e \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0433\u043e\u0440\u043e\u0434\u0430\u0445. \u042d\u0442\u043e \u0432\u044b\u043d\u0443\u0434\u0438\u043b\u043e \u043d\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u041f\u043e\u043c\u0438\u043c\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u043d\u0435\u0435: \u043f\u043e \u043d\u0430\u0448\u0438\u043c \u0440\u0430\u0441\u0447\u0435\u0442\u0430\u043c, \u043e\u043d\u0438 \u043d\u0430 30\u201340% \u0434\u0435\u0448\u0435\u0432\u043b\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432 \u0434\u043b\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0420\u0435\u0441\u0443\u0440\u0441<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e ($\/\u043c\u0435\u0441)<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e ($\/\u043c\u0435\u0441)<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">10 \u043d\u043e\u0434 (16 vCPU, 64 \u0413\u0411 RAM)<\/p>\n<\/td>\n<td>\n<p align=\"left\">5000<\/p>\n<\/td>\n<td>\n<p align=\"left\">8000<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u044f \u0441\u043e\u043f\u0440\u044f\u0436\u0435\u043d\u0430 \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438. \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a managed Kubernetes \u0438\u043b\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u0412\u0441\u0435 \u2014 \u043e\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432 \u0434\u043e \u0442\u044e\u043d\u0438\u043d\u0433\u0430 PostgreSQL &#8212; \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0432 \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u0445, \u043f\u043e\u0440\u043e\u0439 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u044e\u0449\u0438\u0435 100 \u043c\u0441, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<h4>1.2. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430?<\/h4>\n<p>\u0412\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u043d\u0430\u0448\u0435\u043c \u0440\u0435\u0433\u0438\u043e\u043d\u0435 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0431\u0430\u043d\u043a\u0438 \u0438\u043b\u0438 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u0430\u043b\u044b. \u042d\u0442\u043e \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0435 \u043c\u0430\u0440\u043a\u0435\u0442\u043f\u043b\u0435\u0439\u0441\u044b, \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u043d\u043b\u0430\u0439\u043d-\u0431\u0430\u043d\u043a\u0438\u043d\u0433\u0430, \u043b\u043e\u0433\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438 \u0434\u0430\u0436\u0435 \u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430\u043f\u044b. \u041d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 &#8212; \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u0440\u0435\u0434\u0438\u0442\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 &#8212; \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c 10 000 TPS \u0432 \u043f\u0438\u043a\u0435, \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0435\u0432 \u0437\u0430 5 \u043c\u0438\u043d\u0443\u0442. \u0418 \u0432\u0441\u0435 \u044d\u0442\u043e \u043d\u0430 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435, \u0433\u0434\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0438 \u044d\u043f\u043e\u0445\u0443 dial-up.<\/p>\n<h3>2. \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h3>\n<h4>2.1. CI\/CD: \u043e\u0442 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438<\/h4>\n<p>\u041d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043d\u0430\u0448 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 CI\/CD \u0431\u044b\u043b \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u043c: \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0443\u0448\u0430\u0442 \u043a\u043e\u0434 \u0432 GitLab, \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442 <code>build.tar.gz<\/code> \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0447\u0435\u0440\u0435\u0437 <code>scp<\/code>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u0441\u0435 \u043d\u0430\u0434\u0435\u044e\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0441\u0447\u0438\u0442\u0430\u043b\u0438 GitLab CI \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u043c, \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044f, \u0447\u0442\u043e \u00ab\u0440\u0430\u043d\u044c\u0448\u0435 \u0438 <code>scp<\/code> \u0445\u0432\u0430\u0442\u0430\u043b\u043e\u00bb. \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u044d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c.<\/p>\n<p>\u041c\u044b \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432 GitLab CI \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0434\u0435\u043f\u043b\u043e\u044f \u0432 Kubernetes. \u0412\u043e\u0442 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044b\u0439 <code>.gitlab-ci.yml<\/code>:<\/p>\n<pre><code class=\"yaml\">stages:   - build   - test   - scan   - deploy  variables:   REGISTRY: \"registry.localcloud\/myapp\"   TAG: \"$CI_COMMIT_SHA\"  build:   stage: build   script:     - echo \"\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c Docker-\u043e\u0431\u0440\u0430\u0437...\"     - docker build --cache-from $REGISTRY:latest -t $REGISTRY:$TAG .     - docker push $REGISTRY:$TAG   only:     - main  test:   stage: test   parallel:     matrix:       - TEST_TYPE: [unit, integration]   script:     - echo \"\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c $TEST_TYPE \u0442\u0435\u0441\u0442\u044b...\"     - docker run $REGISTRY:$TAG pytest --cov=app tests\/$TEST_TYPE   only:     - main  scan:   stage: scan   script:     - echo \"\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043e\u0431\u0440\u0430\u0437 \u043d\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438...\"     - docker run aquasec\/trivy image $REGISTRY:$TAG   only:     - main  deploy:   stage: deploy   script:     - echo \"\u0414\u0435\u043f\u043b\u043e\u0438\u043c \u0432 Kubernetes...\"     - sed -i \"s|TAG|$TAG|g\" k8s\/deployment.yaml     - kubectl apply -f k8s\/deployment.yaml   environment:     name: production   only:     - main <\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0435\u0441\u0442\u0440 \u00ab\u0437\u0430\u0432\u0438\u0441\u0430\u043b\u00bb \u043f\u0440\u0438 \u043f\u0443\u0448\u0430\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u043e\u0431\u044a\u0435\u043c\u043e\u043c \u0431\u043e\u043b\u0435\u0435 1 \u0413\u0411 \u0438\u0437-\u0437\u0430 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0435\u0441\u0442\u044b \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0438 40 \u043c\u0438\u043d\u0443\u0442 \u0438\u0437-\u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u044d\u0448 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0432 \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0430 60%.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u043b\u0438 \u0442\u0435\u0441\u0442\u044b \u043d\u0430 \u044e\u043d\u0438\u0442- \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0438\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>parallel: matrix<\/code>, \u0447\u0442\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430 20%.<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0441\u0435\u0442\u044c \u043c\u0435\u0436\u0434\u0443 runners \u0438 \u0440\u0435\u0435\u0441\u0442\u0440\u043e\u043c, \u0432\u044b\u0434\u0435\u043b\u0438\u0432 VLAN.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: \u0432\u0440\u0435\u043c\u044f \u0434\u0435\u043f\u043b\u043e\u044f \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0441 2 \u0447\u0430\u0441\u043e\u0432 \u0434\u043e 12 \u043c\u0438\u043d\u0443\u0442. \u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0441\u0442\u0430\u043b \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0432 \u043f\u0438\u043a\u043e\u0432\u044b\u0435 \u0440\u0435\u043b\u0438\u0437\u044b.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/2e6\/f2f\/f11\/2e6f2ff11c58aa3d5e22079ca8275220.png\" alt=\"CI\/CD \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/2e6\/f2f\/f11\/2e6f2ff11c58aa3d5e22079ca8275220.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/2e6\/f2f\/f11\/2e6f2ff11c58aa3d5e22079ca8275220.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>CI\/CD \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d<\/figcaption><\/div>\n<\/figure>\n<h4>2.2. Kubernetes: \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0441 \u043d\u0443\u043b\u044f<\/h4>\n<p>\u0411\u0435\u0437 managed Kubernetes \u043c\u044b \u043f\u043e\u0434\u043d\u044f\u043b\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0447\u0435\u0440\u0435\u0437 <code>kubeadm<\/code>. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0448\u0430\u0433\u0438:<\/p>\n<ol>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 <code>kubeadm<\/code>, <code>kubelet<\/code> \u0438 <code>kubectl<\/code> \u043d\u0430 \u043d\u043e\u0434\u044b (16 vCPU, 64 \u0413\u0411 RAM).<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 Calico \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0439:<\/p>\n<pre><code class=\"bash\">kubectl apply -f https:\/\/docs.projectcalico.org\/manifests\/calico.yaml <\/code><\/pre>\n<\/li>\n<li>\n<p>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <code>kubelet<\/code>:<\/p>\n<pre><code class=\"bash\">--max-pods=150 --kube-reserved=cpu=500m,memory=1Gi <\/code><\/pre>\n<\/li>\n<\/ol>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041d\u043e\u0434\u044b \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u043b\u0438\u0441\u044c \u043d\u0430 90% \u0438\u0437-\u0437\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0430 50 \u043c\u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 pod\u2019\u0430\u043c\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 Horizontal Pod Autoscaler (HPA) \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c\u0438:<\/p>\n<pre><code class=\"yaml\">apiVersion: autoscaling\/v2 kind: HorizontalPodAutoscaler metadata:   name: myapp-hpa spec:   scaleTargetRef:     apiVersion: apps\/v1     kind: Deployment     name: myapp   minReplicas: 3   maxReplicas: 12   metrics:   - type: Resource     resource:       name: cpu       target:         type: Utilization         averageUtilization: 70   - type: Pods     pods:       metric:         name: http_requests       target:         type: AverageValue         averageValue: 1000 <\/code><\/pre>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f Cluster Autoscaler, \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u043d\u043e\u0432\u044b\u0435 \u043d\u043e\u0434\u044b \u0447\u0435\u0440\u0435\u0437 API \u043e\u0431\u043b\u0430\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438 MTU \u0434\u043e 9000 \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b 10 000 RPS, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u043e 2 \u043c\u0438\u043d\u0443\u0442\u044b.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/94b\/f54\/329\/94bf5432942343bc9dcdf43ce0258ac8.png\" alt=\"HPA \u0430\u0432\u0442\u043e\u0448\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/94b\/f54\/329\/94bf5432942343bc9dcdf43ce0258ac8.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/94b\/f54\/329\/94bf5432942343bc9dcdf43ce0258ac8.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>HPA \u0430\u0432\u0442\u043e\u0448\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/figcaption><\/div>\n<\/figure>\n<h4>2.3. PostgreSQL: \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\u043c\u0438<\/h4>\n<p>\u0414\u043b\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 PostgreSQL \u0441 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439, \u043f\u043e\u0434\u043d\u044f\u0432 Patroni \u0434\u043b\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 (HA). \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u041f\u0430\u0440\u0442\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e <code>user_id<\/code>:<\/p>\n<pre><code class=\"sql\">CREATE TABLE transactions (     id BIGSERIAL,     user_id BIGINT,     amount DECIMAL,     created_at TIMESTAMP ) PARTITION BY RANGE (user_id);  CREATE TABLE transactions_0 PARTITION OF transactions     FOR VALUES FROM (0) TO (1000000); CREATE TABLE transactions_1 PARTITION OF transactions     FOR VALUES FROM (1000000) TO (2000000); <\/code><\/pre>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <code>postgresql.conf<\/code>:<\/p>\n<pre><code>work_mem = 16MB max_connections = 500 shared_buffers = 8GB effective_cache_size = 24GB <\/code><\/pre>\n<\/li>\n<li>\n<p>\u0420\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Patroni \u0441 \u0434\u0432\u0443\u043c\u044f read-only \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u043c\u0438, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 PgBouncer.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e <code>max_connections=100<\/code> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b\u043e \u043a \u043e\u0442\u043a\u0430\u0437\u0430\u043c \u0432 \u043f\u0438\u043a\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043f\u043e <code>created_at<\/code> \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u043b\u043e \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438 <code>max_connections<\/code> \u0434\u043e 500 \u0438 \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 PgBouncer.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b:<\/p>\n<pre><code class=\"sql\">CREATE INDEX transactions_created_at_idx ON transactions (created_at); <\/code><\/pre>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (P99) \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0441 200 \u043c\u0441 \u0434\u043e 30 \u043c\u0441.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/9ac\/0e6\/726\/9ac0e67264b2d01f976f23cca8e0e9f6.png\" alt=\"PostgreSQL \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/9ac\/0e6\/726\/9ac0e67264b2d01f976f23cca8e0e9f6.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/9ac\/0e6\/726\/9ac0e67264b2d01f976f23cca8e0e9f6.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>PostgreSQL \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<h4>2.4. \u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433: \u043e\u043f\u0435\u0440\u0435\u0436\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/h4>\n<p>\u041c\u044b \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0441\u0442\u0435\u043a \u0438\u0437 Prometheus, Grafana \u0438 Alertmanager. \u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Prometheus:<\/p>\n<pre><code class=\"yaml\">scrape_configs:   - job_name: 'myapp'     static_configs:       - targets: ['myapp.localcloud:8080']     metrics_path: \/metrics <\/code><\/pre>\n<p><strong>\u041a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043b\u0438 HTTP-\u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<pre><code>rate(http_requests_total{status=\"500\"}[5m]) &gt; 0.1 <\/code><\/pre>\n<\/li>\n<li>\n<p>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043b\u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 API:<\/p>\n<pre><code>histogram_quantile(0.99, sum(rate(http_request_duration_seconds_bucket[5m])) by (le)) <\/code><\/pre>\n<\/li>\n<\/ul>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>Prometheus \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u043b\u0441\u044f \u043f\u0440\u0438 500+ pod\u2019\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u043b\u0438 \u0441\u0431\u043e\u0440 \u043c\u0435\u0442\u0440\u0438\u043a.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0412\u043d\u0435\u0434\u0440\u0438\u043b\u0438 Thanos \u0434\u043b\u044f \u0434\u043e\u043b\u0433\u043e\u0441\u0440\u043e\u0447\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a:<\/p>\n<pre><code class=\"yaml\">thanos:   store:     enabled: true <\/code><\/pre>\n<\/li>\n<li>\n<p>\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0441\u0431\u043e\u0440\u0430 \u0434\u043e 30 \u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043b\u044f \u043d\u0435\u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0430\u043b\u0435\u0440\u0442\u044b \u0432 Telegram:<\/p>\n<pre><code class=\"yaml\">route:   receiver: 'telegram' receivers:   - name: 'telegram'     telegram_configs:       - bot_token: 'YOUR_BOT_TOKEN'         chat_id: '-123456789' <\/code><\/pre>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: MTTR \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u0434\u043e 2 \u043c\u0438\u043d\u0443\u0442, \u0434\u043e\u043b\u044f 500-\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0443\u043f\u0430\u043b\u0430 \u0441 1% \u0434\u043e 0.01%.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/7e7\/b65\/3e0\/7e7b653e0f907475fe717ff0e948a66b.png\" alt=\"Grafana - \u043f\u0430\u0434\u0435\u043d\u0438\u0435 500-\u0445 \u043e\u0448\u0438\u0431\u043e\u043a\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/7e7\/b65\/3e0\/7e7b653e0f907475fe717ff0e948a66b.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/7e7\/b65\/3e0\/7e7b653e0f907475fe717ff0e948a66b.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Grafana &#8212; \u043f\u0430\u0434\u0435\u043d\u0438\u0435 500-\u0445 \u043e\u0448\u0438\u0431\u043e\u043a<\/figcaption><\/div>\n<\/figure>\n<h3>3. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0442\u0440\u0430\u0442<\/h3>\n<h4>3.1. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c<\/h4>\n<p><strong>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u0430\u043c\u0438<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 <code>kubectl create secret<\/code>, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e. \u041f\u0435\u0440\u0435\u0448\u043b\u0438 \u043d\u0430 HashiCorp Vault:<\/p>\n<pre><code class=\"bash\">vault kv put secret\/myapp db_password=supersecret <\/code><\/pre>\n<\/li>\n<li>\n<p>\u0418\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 Vault \u0441 Kubernetes \u0447\u0435\u0440\u0435\u0437 sidecar-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0412\u043d\u0435\u0434\u0440\u0438\u043b\u0438 Trivy \u0432 CI\/CD \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 (\u0441\u043c. \u044d\u0442\u0430\u043f <code>scan<\/code>).<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 CVE \u0432 \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Nginx \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438 \u043e\u0431\u0440\u0430\u0437.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0442\u043e\u043a\u0435\u043d\u044b \u0432 <code>.env<\/code>.<\/p>\n<\/li>\n<li>\n<p>Trivy \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u043b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043d\u0430 5 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\u043c.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f Trivy.<\/p>\n<\/li>\n<\/ul>\n<h4>3.2. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0437\u0430\u0442\u0440\u0430\u0442<\/h4>\n<p>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u0434\u0435\u0448\u0435\u0432\u043b\u0435 \u043d\u0430 30\u201340%, \u043d\u043e \u043d\u0430\u0448 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438\u0437 10 \u043d\u043e\u0434 ($5000\/\u043c\u0435\u0441) \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 managed-\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u043b\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u044b &#8212; \u043e\u043a\u043e\u043b\u043e 20 \u0447\u0430\u0441\u043e\u0432 \u0432 \u043c\u0435\u0441\u044f\u0446.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>kube-reserved<\/code> \u0438 HPA.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0438\u043b\u043e\u0442 ArgoCD \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0435\u043f\u043b\u043e\u0435\u0432.<\/p>\n<\/li>\n<\/ul>\n<h3>4. \u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 DevOps-\u043a\u0443\u043b\u044c\u0442\u0443\u0440\u044b: \u043e\u0442 \u0441\u043a\u0435\u043f\u0442\u0438\u0446\u0438\u0437\u043c\u0430 \u043a \u0432\u043e\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u0438<\/h3>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0438 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c CI\/CD \u0438 Kubernetes, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0430 \u044d\u0442\u043e \u0432 \u0448\u0442\u044b\u043a\u0438. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u043b\u0438, \u0447\u0442\u043e \u0443 \u043d\u0438\u0445 \u043d\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u00ab\u044d\u0442\u0438 \u043d\u043e\u0432\u043e\u043c\u043e\u0434\u043d\u044b\u0435 \u0448\u0442\u0443\u043a\u0438\u00bb, \u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0447\u0438\u0442\u0430\u043b\u0438 Kubernetes \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u0438\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u0442\u044c \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0435, \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043d\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435.<\/p>\n<p>\u041c\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u0441\u0435\u0440\u0438\u044e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043c\u0438\u0442\u0430\u043f\u043e\u0432, \u0433\u0434\u0435 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u043a\u0430\u043a CI\/CD \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0443\u0447\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443, \u0430 Kubernetes \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438, \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u0435\u043f\u043b\u043e\u0435\u0432 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0447\u0430\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u043d\u044c\u0448\u0435 \u0442\u0440\u0430\u0442\u0438\u043b\u0438\u0441\u044c \u043d\u0430 <code>scp<\/code>. \u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 DORA-\u043c\u0435\u0442\u0440\u0438\u043a\u0438 (Deploy Frequency, Lead Time for Changes), \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0438\u0434\u0435\u043b\u0430 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441: \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0434\u0435\u043f\u043b\u043e\u0435\u0432 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0432 \u043c\u0435\u0441\u044f\u0446 \u0434\u043e \u0442\u0440\u0435\u0445 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e. \u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u0430\u043c Grafana \u043f\u043e\u043c\u043e\u0433 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0438\u0445 \u043a\u043e\u0434 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d &#8212; \u043e\u0442 \u043e\u0448\u0438\u0431\u043e\u043a \u0434\u043e \u0437\u0430\u0434\u0435\u0440\u0436\u0435\u043a API.<\/p>\n<p>\u0421\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433. \u042d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430, \u043d\u043e \u0438 \u0443\u043a\u0440\u0435\u043f\u0438\u043b\u043e \u0434\u043e\u0432\u0435\u0440\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438. \u0422\u0435\u043f\u0435\u0440\u044c DevOps \u0434\u043b\u044f \u043d\u0430\u0441 &#8212; \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0430 \u043e\u0431\u0449\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c.<\/p>\n<h3>5. \u041a\u0435\u0439\u0441: \u043a\u0430\u043a \u043c\u044b \u0441\u043f\u0430\u0441\u043b\u0438 fintech-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443<\/h3>\n<p>\u041d\u0430\u0448\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u0440\u0435\u0434\u0438\u0442\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c 10 000 TPS, \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0437 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0435\u0432 \u0437\u0430 5 \u043c\u0438\u043d\u0443\u0442. \u041d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u0442\u0440\u0430\u0434\u0430\u043b \u043e\u0442 \u0434\u043e\u043b\u0433\u0438\u0445 \u0434\u0435\u043f\u043b\u043e\u0435\u0432 (2 \u0447\u0430\u0441\u0430), \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430.<\/p>\n<p><strong>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043d\u0430 Go, \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0435 \u0432 Kubernetes.<\/p>\n<\/li>\n<li>\n<p>PostgreSQL \u0441 Patroni \u0438 PgBouncer \u0434\u043b\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0438 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p>CI\/CD \u0447\u0435\u0440\u0435\u0437 GitLab CI \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0441\u0431\u043e\u0440\u043a\u0438, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0434\u0435\u043f\u043b\u043e\u044f.<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0441 Prometheus, Grafana \u0438 Alertmanager.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0427\u0442\u043e \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041f\u0430\u0440\u0442\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b PostgreSQL \u043f\u043e <code>user_id<\/code>, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p>\u0412\u043d\u0435\u0434\u0440\u0438\u043b\u0438 Redis \u0434\u043b\u044f \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f 80% \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0441\u043d\u0438\u0437\u0438\u0432 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0431\u0430\u0437\u0443.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 HPA \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0432 \u0438 \u0430\u043b\u0435\u0440\u0442\u044b \u043f\u043e \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438).<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 CI\/CD-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0412\u0440\u0435\u043c\u044f \u0434\u0435\u043f\u043b\u043e\u044f \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0441 2 \u0447\u0430\u0441\u043e\u0432 \u0434\u043e 12 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (P99) \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u0430\u0441\u044c \u0434\u043e 30 \u043c\u0441.<\/p>\n<\/li>\n<li>\n<p>MTTR (Mean Time to Recovery) \u0434\u043e\u0441\u0442\u0438\u0433 2 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e\u0442 \u043a\u0435\u0439\u0441 \u043f\u043e\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u0434\u0430\u0436\u0435 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0431\u043b\u0430\u043a\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043d\u0435 \u0443\u0441\u0442\u0443\u043f\u0430\u044e\u0449\u0443\u044e \u043f\u043e \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c \u043d\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445.<\/p>\n<h3>6. \u041f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u044b \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f<\/h3>\n<p>\u041c\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c DevOps-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b:<\/p>\n<ul>\n<li>\n<p><strong>\u0418\u0418 \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0435<\/strong>: \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c ELK \u0441 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u043c \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043b\u043e\u0433\u043e\u0432 \u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0431\u043e\u0435\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>Edge Computing<\/strong>: \u0438\u0437\u0443\u0447\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u043a\u043e\u0432 \u0434\u043b\u044f IoT-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p><strong>Open Source \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b<\/strong>: \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c ArgoCD \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0435\u043f\u043b\u043e\u044f\u043c\u0438 \u0438 Tekton \u0434\u043b\u044f CI\/CD.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435: DevOps \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u043a\u0430\u0445 \u2014 \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e<\/h3>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435 &#8212; \u043a\u0430\u043a \u0440\u0435\u043c\u043e\u043d\u0442 \u043c\u0430\u0448\u0438\u043d\u044b \u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u043c \u0445\u043e\u0434\u0443: \u0441\u043b\u043e\u0436\u043d\u043e, \u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e. \u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f, \u0437\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0432\u044b\u0437\u043e\u0432\u044b, \u043d\u043e \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 &#8212; Kubernetes, Prometheus, Vault &#8212; \u0438 \u0441\u043f\u043b\u043e\u0447\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u0443\u044e \u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443.<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0441\u043a\u0440\u044b\u0442\u044b \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c NDA. \u0412\u0441\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/922310\/\"> https:\/\/habr.com\/ru\/articles\/922310\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435: DevOps \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439<\/h3>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u0443\u044e fintech-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435, \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c\u043e\u0439: \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u043e\u0439. \u041e\u0434\u043d\u0430\u043a\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u044b, \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0438, \u0441\u0442\u0440\u043e\u0433\u0438\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0442\u0440\u0430\u043d\u044b \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0441\u043a\u0435\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u043a \u043d\u043e\u0432\u044b\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\u043c \u0432\u0440\u043e\u0434\u0435 GitLab CI, \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0432\u044b\u0437\u043e\u0432. \u0417\u0430 \u0434\u0432\u0430 \u0433\u043e\u0434\u0430 \u043c\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c 10 000 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 (TPS), \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c\u0441\u044f \u0437\u0430 12 \u043c\u0438\u043d\u0443\u0442 \u0438 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u0438\u043a\u043e\u0432\u044b\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u00ab\u0447\u0435\u0440\u043d\u0430\u044f \u043f\u044f\u0442\u043d\u0438\u0446\u0430\u00bb. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 DevOps-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435, \u043a\u0430\u043a\u0438\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u043b\u0438 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0443\u0441\u043f\u0435\u0445\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0432 \u0440\u0435\u0433\u0438\u043e\u043d\u0435, \u0433\u0434\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b, \u043d\u0430\u0448 \u043e\u043f\u044b\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d.<\/p>\n<h3>1. \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442: \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/h3>\n<h4>1.1. \u041f\u043e\u0447\u0435\u043c\u0443 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430?<\/h4>\n<p>\u0417\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0440\u044f\u0434\u0430 \u0441\u0442\u0440\u0430\u043d, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043d\u0430\u0448\u0443, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0433\u0440\u0430\u0436\u0434\u0430\u043d \u0432 \u043c\u0435\u0441\u0442\u043d\u044b\u0445 \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u0430\u0445, \u0447\u0430\u0441\u0442\u043e \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0433\u043e\u0440\u043e\u0434\u0430\u0445. \u042d\u0442\u043e \u0432\u044b\u043d\u0443\u0434\u0438\u043b\u043e \u043d\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u041f\u043e\u043c\u0438\u043c\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u043d\u0435\u0435: \u043f\u043e \u043d\u0430\u0448\u0438\u043c \u0440\u0430\u0441\u0447\u0435\u0442\u0430\u043c, \u043e\u043d\u0438 \u043d\u0430 30\u201340% \u0434\u0435\u0448\u0435\u0432\u043b\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432 \u0434\u043b\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0420\u0435\u0441\u0443\u0440\u0441<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e ($\/\u043c\u0435\u0441)<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e ($\/\u043c\u0435\u0441)<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">10 \u043d\u043e\u0434 (16 vCPU, 64 \u0413\u0411 RAM)<\/p>\n<\/td>\n<td>\n<p align=\"left\">5000<\/p>\n<\/td>\n<td>\n<p align=\"left\">8000<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u044f \u0441\u043e\u043f\u0440\u044f\u0436\u0435\u043d\u0430 \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438. \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a managed Kubernetes \u0438\u043b\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u0412\u0441\u0435 \u2014 \u043e\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432 \u0434\u043e \u0442\u044e\u043d\u0438\u043d\u0433\u0430 PostgreSQL &#8212; \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0432 \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u0445, \u043f\u043e\u0440\u043e\u0439 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u044e\u0449\u0438\u0435 100 \u043c\u0441, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<h4>1.2. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430?<\/h4>\n<p>\u0412\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u043d\u0430\u0448\u0435\u043c \u0440\u0435\u0433\u0438\u043e\u043d\u0435 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0431\u0430\u043d\u043a\u0438 \u0438\u043b\u0438 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u0430\u043b\u044b. \u042d\u0442\u043e \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0435 \u043c\u0430\u0440\u043a\u0435\u0442\u043f\u043b\u0435\u0439\u0441\u044b, \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u043d\u043b\u0430\u0439\u043d-\u0431\u0430\u043d\u043a\u0438\u043d\u0433\u0430, \u043b\u043e\u0433\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438 \u0434\u0430\u0436\u0435 \u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430\u043f\u044b. \u041d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 &#8212; \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u0440\u0435\u0434\u0438\u0442\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 &#8212; \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c 10 000 TPS \u0432 \u043f\u0438\u043a\u0435, \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0435\u0432 \u0437\u0430 5 \u043c\u0438\u043d\u0443\u0442. \u0418 \u0432\u0441\u0435 \u044d\u0442\u043e \u043d\u0430 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435, \u0433\u0434\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0438 \u044d\u043f\u043e\u0445\u0443 dial-up.<\/p>\n<h3>2. \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h3>\n<h4>2.1. CI\/CD: \u043e\u0442 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438<\/h4>\n<p>\u041d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043d\u0430\u0448 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 CI\/CD \u0431\u044b\u043b \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u043c: \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0443\u0448\u0430\u0442 \u043a\u043e\u0434 \u0432 GitLab, \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442 <code>build.tar.gz<\/code> \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0447\u0435\u0440\u0435\u0437 <code>scp<\/code>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u0441\u0435 \u043d\u0430\u0434\u0435\u044e\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0441\u0447\u0438\u0442\u0430\u043b\u0438 GitLab CI \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u043c, \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044f, \u0447\u0442\u043e \u00ab\u0440\u0430\u043d\u044c\u0448\u0435 \u0438 <code>scp<\/code> \u0445\u0432\u0430\u0442\u0430\u043b\u043e\u00bb. \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u044d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c.<\/p>\n<p>\u041c\u044b \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432 GitLab CI \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0434\u0435\u043f\u043b\u043e\u044f \u0432 Kubernetes. \u0412\u043e\u0442 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044b\u0439 <code>.gitlab-ci.yml<\/code>:<\/p>\n<pre><code class=\"yaml\">stages:   - build   - test   - scan   - deploy  variables:   REGISTRY: \"registry.localcloud\/myapp\"   TAG: \"$CI_COMMIT_SHA\"  build:   stage: build   script:     - echo \"\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c Docker-\u043e\u0431\u0440\u0430\u0437...\"     - docker build --cache-from $REGISTRY:latest -t $REGISTRY:$TAG .     - docker push $REGISTRY:$TAG   only:     - main  test:   stage: test   parallel:     matrix:       - TEST_TYPE: [unit, integration]   script:     - echo \"\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c $TEST_TYPE \u0442\u0435\u0441\u0442\u044b...\"     - docker run $REGISTRY:$TAG pytest --cov=app tests\/$TEST_TYPE   only:     - main  scan:   stage: scan   script:     - echo \"\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043e\u0431\u0440\u0430\u0437 \u043d\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438...\"     - docker run aquasec\/trivy image $REGISTRY:$TAG   only:     - main  deploy:   stage: deploy   script:     - echo \"\u0414\u0435\u043f\u043b\u043e\u0438\u043c \u0432 Kubernetes...\"     - sed -i \"s|TAG|$TAG|g\" k8s\/deployment.yaml     - kubectl apply -f k8s\/deployment.yaml   environment:     name: production   only:     - main <\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0435\u0441\u0442\u0440 \u00ab\u0437\u0430\u0432\u0438\u0441\u0430\u043b\u00bb \u043f\u0440\u0438 \u043f\u0443\u0448\u0430\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u043e\u0431\u044a\u0435\u043c\u043e\u043c \u0431\u043e\u043b\u0435\u0435 1 \u0413\u0411 \u0438\u0437-\u0437\u0430 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0435\u0441\u0442\u044b \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0438 40 \u043c\u0438\u043d\u0443\u0442 \u0438\u0437-\u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u044d\u0448 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0432 \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0430 60%.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u043b\u0438 \u0442\u0435\u0441\u0442\u044b \u043d\u0430 \u044e\u043d\u0438\u0442- \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0438\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>parallel: matrix<\/code>, \u0447\u0442\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430 20%.<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0441\u0435\u0442\u044c \u043c\u0435\u0436\u0434\u0443 runners \u0438 \u0440\u0435\u0435\u0441\u0442\u0440\u043e\u043c, \u0432\u044b\u0434\u0435\u043b\u0438\u0432 VLAN.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: \u0432\u0440\u0435\u043c\u044f \u0434\u0435\u043f\u043b\u043e\u044f \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0441 2 \u0447\u0430\u0441\u043e\u0432 \u0434\u043e 12 \u043c\u0438\u043d\u0443\u0442. \u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0441\u0442\u0430\u043b \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0432 \u043f\u0438\u043a\u043e\u0432\u044b\u0435 \u0440\u0435\u043b\u0438\u0437\u044b.<\/p>\n<figure class=\"\">\n<div><figcaption>CI\/CD \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d<\/figcaption><\/div>\n<\/figure>\n<h4>2.2. Kubernetes: \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0441 \u043d\u0443\u043b\u044f<\/h4>\n<p>\u0411\u0435\u0437 managed Kubernetes \u043c\u044b \u043f\u043e\u0434\u043d\u044f\u043b\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0447\u0435\u0440\u0435\u0437 <code>kubeadm<\/code>. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0448\u0430\u0433\u0438:<\/p>\n<ol>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 <code>kubeadm<\/code>, <code>kubelet<\/code> \u0438 <code>kubectl<\/code> \u043d\u0430 \u043d\u043e\u0434\u044b (16 vCPU, 64 \u0413\u0411 RAM).<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 Calico \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0439:<\/p>\n<pre><code class=\"bash\">kubectl apply -f https:\/\/docs.projectcalico.org\/manifests\/calico.yaml <\/code><\/pre>\n<\/li>\n<li>\n<p>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <code>kubelet<\/code>:<\/p>\n<pre><code class=\"bash\">--max-pods=150 --kube-reserved=cpu=500m,memory=1Gi <\/code><\/pre>\n<\/li>\n<\/ol>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041d\u043e\u0434\u044b \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u043b\u0438\u0441\u044c \u043d\u0430 90% \u0438\u0437-\u0437\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0430 50 \u043c\u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 pod\u2019\u0430\u043c\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 Horizontal Pod Autoscaler (HPA) \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c\u0438:<\/p>\n<pre><code class=\"yaml\">apiVersion: autoscaling\/v2 kind: HorizontalPodAutoscaler metadata:   name: myapp-hpa spec:   scaleTargetRef:     apiVersion: apps\/v1     kind: Deployment     name: myapp   minReplicas: 3   maxReplicas: 12   metrics:   - type: Resource     resource:       name: cpu       target:         type: Utilization         averageUtilization: 70   - type: Pods     pods:       metric:         name: http_requests       target:         type: AverageValue         averageValue: 1000 <\/code><\/pre>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f Cluster Autoscaler, \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u043d\u043e\u0432\u044b\u0435 \u043d\u043e\u0434\u044b \u0447\u0435\u0440\u0435\u0437 API \u043e\u0431\u043b\u0430\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438 MTU \u0434\u043e 9000 \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b 10 000 RPS, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u043e 2 \u043c\u0438\u043d\u0443\u0442\u044b.<\/p>\n<figure class=\"\">\n<div><figcaption>HPA \u0430\u0432\u0442\u043e\u0448\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/figcaption><\/div>\n<\/figure>\n<h4>2.3. PostgreSQL: \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\u043c\u0438<\/h4>\n<p>\u0414\u043b\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 PostgreSQL \u0441 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439, \u043f\u043e\u0434\u043d\u044f\u0432 Patroni \u0434\u043b\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 (HA). \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u041f\u0430\u0440\u0442\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e <code>user_id<\/code>:<\/p>\n<pre><code class=\"sql\">CREATE TABLE transactions (     id BIGSERIAL,     user_id BIGINT,     amount DECIMAL,     created_at TIMESTAMP ) PARTITION BY RANGE (user_id);  CREATE TABLE transactions_0 PARTITION OF transactions     FOR VALUES FROM (0) TO (1000000); CREATE TABLE transactions_1 PARTITION OF transactions     FOR VALUES FROM (1000000) TO (2000000); <\/code><\/pre>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <code>postgresql.conf<\/code>:<\/p>\n<pre><code>work_mem = 16MB max_connections = 500 shared_buffers = 8GB effective_cache_size = 24GB <\/code><\/pre>\n<\/li>\n<li>\n<p>\u0420\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Patroni \u0441 \u0434\u0432\u0443\u043c\u044f read-only \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u043c\u0438, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 PgBouncer.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e <code>max_connections=100<\/code> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b\u043e \u043a \u043e\u0442\u043a\u0430\u0437\u0430\u043c \u0432 \u043f\u0438\u043a\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043f\u043e <code>created_at<\/code> \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u043b\u043e \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438 <code>max_connections<\/code> \u0434\u043e 500 \u0438 \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 PgBouncer.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b:<\/p>\n<pre><code class=\"sql\">CREATE INDEX transactions_created_at_idx ON transactions (created_at); <\/code><\/pre>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (P99) \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0441 200 \u043c\u0441 \u0434\u043e 30 \u043c\u0441.<\/p>\n<figure class=\"\">\n<div><figcaption>PostgreSQL \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<h4>2.4. \u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433: \u043e\u043f\u0435\u0440\u0435\u0436\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/h4>\n<p>\u041c\u044b \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0441\u0442\u0435\u043a \u0438\u0437 Prometheus, Grafana \u0438 Alertmanager. \u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Prometheus:<\/p>\n<pre><code class=\"yaml\">scrape_configs:   - job_name: 'myapp'     static_configs:       - targets: ['myapp.localcloud:8080']     metrics_path: \/metrics <\/code><\/pre>\n<p><strong>\u041a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043b\u0438 HTTP-\u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<pre><code>rate(http_requests_total{status=\"500\"}[5m]) &gt; 0.1 <\/code><\/pre>\n<\/li>\n<li>\n<p>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043b\u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 API:<\/p>\n<pre><code>histogram_quantile(0.99, sum(rate(http_request_duration_seconds_bucket[5m])) by (le)) <\/code><\/pre>\n<\/li>\n<\/ul>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>Prometheus \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u043b\u0441\u044f \u043f\u0440\u0438 500+ pod\u2019\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u043b\u0438 \u0441\u0431\u043e\u0440 \u043c\u0435\u0442\u0440\u0438\u043a.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0412\u043d\u0435\u0434\u0440\u0438\u043b\u0438 Thanos \u0434\u043b\u044f \u0434\u043e\u043b\u0433\u043e\u0441\u0440\u043e\u0447\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a:<\/p>\n<pre><code class=\"yaml\">thanos:   store:     enabled: true <\/code><\/pre>\n<\/li>\n<li>\n<p>\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0441\u0431\u043e\u0440\u0430 \u0434\u043e 30 \u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043b\u044f \u043d\u0435\u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0430\u043b\u0435\u0440\u0442\u044b \u0432 Telegram:<\/p>\n<pre><code class=\"yaml\">route:   receiver: 'telegram' receivers:   - name: 'telegram'     telegram_configs:       - bot_token: 'YOUR_BOT_TOKEN'         chat_id: '-123456789' <\/code><\/pre>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: MTTR \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u0434\u043e 2 \u043c\u0438\u043d\u0443\u0442, \u0434\u043e\u043b\u044f 500-\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0443\u043f\u0430\u043b\u0430 \u0441 1% \u0434\u043e 0.01%.<\/p>\n<figure class=\"\">\n<div><figcaption>Grafana &#8212; \u043f\u0430\u0434\u0435\u043d\u0438\u0435 500-\u0445 \u043e\u0448\u0438\u0431\u043e\u043a<\/figcaption><\/div>\n<\/figure>\n<h3>3. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0442\u0440\u0430\u0442<\/h3>\n<h4>3.1. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c<\/h4>\n<p><strong>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u0430\u043c\u0438<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 <code>kubectl create secret<\/code>, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e. \u041f\u0435\u0440\u0435\u0448\u043b\u0438 \u043d\u0430 HashiCorp Vault:<\/p>\n<pre><code class=\"bash\">vault kv put secret\/myapp db_password=supersecret <\/code><\/pre>\n<\/li>\n<li>\n<p>\u0418\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 Vault \u0441 Kubernetes \u0447\u0435\u0440\u0435\u0437 sidecar-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0412\u043d\u0435\u0434\u0440\u0438\u043b\u0438 Trivy \u0432 CI\/CD \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 (\u0441\u043c. \u044d\u0442\u0430\u043f <code>scan<\/code>).<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 CVE \u0432 \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Nginx \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438 \u043e\u0431\u0440\u0430\u0437.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0442\u043e\u043a\u0435\u043d\u044b \u0432 <code>.env<\/code>.<\/p>\n<\/li>\n<li>\n<p>Trivy \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u043b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043d\u0430 5 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\u043c.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f Trivy.<\/p>\n<\/li>\n<\/ul>\n<h4>3.2. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0437\u0430\u0442\u0440\u0430\u0442<\/h4>\n<p>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u0434\u0435\u0448\u0435\u0432\u043b\u0435 \u043d\u0430 30\u201340%, \u043d\u043e \u043d\u0430\u0448 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438\u0437 10 \u043d\u043e\u0434 ($5000\/\u043c\u0435\u0441) \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 managed-\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u043b\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u044b &#8212; \u043e\u043a\u043e\u043b\u043e 20 \u0447\u0430\u0441\u043e\u0432 \u0432 \u043c\u0435\u0441\u044f\u0446.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>kube-reserved<\/code> \u0438 HPA.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0438\u043b\u043e\u0442 ArgoCD \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0435\u043f\u043b\u043e\u0435\u0432.<\/p>\n<\/li>\n<\/ul>\n<h3>4. \u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 DevOps-\u043a\u0443\u043b\u044c\u0442\u0443\u0440\u044b: \u043e\u0442 \u0441\u043a\u0435\u043f\u0442\u0438\u0446\u0438\u0437\u043c\u0430 \u043a \u0432\u043e\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u0438<\/h3>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0438 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c CI\/CD \u0438 Kubernetes, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0430 \u044d\u0442\u043e \u0432 \u0448\u0442\u044b\u043a\u0438. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u043b\u0438, \u0447\u0442\u043e \u0443 \u043d\u0438\u0445 \u043d\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u00ab\u044d\u0442\u0438 \u043d\u043e\u0432\u043e\u043c\u043e\u0434\u043d\u044b\u0435 \u0448\u0442\u0443\u043a\u0438\u00bb, \u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0447\u0438\u0442\u0430\u043b\u0438 Kubernetes \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u0438\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u0442\u044c \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0435, \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043d\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435.<\/p>\n<p>\u041c\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u0441\u0435\u0440\u0438\u044e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043c\u0438\u0442\u0430\u043f\u043e\u0432, \u0433\u0434\u0435 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u043a\u0430\u043a CI\/CD \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0443\u0447\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443, \u0430 Kubernetes \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438, \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u0435\u043f\u043b\u043e\u0435\u0432 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0447\u0430\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u043d\u044c\u0448\u0435 \u0442\u0440\u0430\u0442\u0438\u043b\u0438\u0441\u044c \u043d\u0430 <code>scp<\/code>. \u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 DORA-\u043c\u0435\u0442\u0440\u0438\u043a\u0438 (Deploy Frequency, Lead Time for Changes), \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0438\u0434\u0435\u043b\u0430 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441: \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0434\u0435\u043f\u043b\u043e\u0435\u0432 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0432 \u043c\u0435\u0441\u044f\u0446 \u0434\u043e \u0442\u0440\u0435\u0445 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e. \u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u0430\u043c Grafana \u043f\u043e\u043c\u043e\u0433 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0438\u0445 \u043a\u043e\u0434 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d &#8212; \u043e\u0442 \u043e\u0448\u0438\u0431\u043e\u043a \u0434\u043e \u0437\u0430\u0434\u0435\u0440\u0436\u0435\u043a API.<\/p>\n<p>\u0421\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433. \u042d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430, \u043d\u043e \u0438 \u0443\u043a\u0440\u0435\u043f\u0438\u043b\u043e \u0434\u043e\u0432\u0435\u0440\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438. \u0422\u0435\u043f\u0435\u0440\u044c DevOps \u0434\u043b\u044f \u043d\u0430\u0441 &#8212; \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0430 \u043e\u0431\u0449\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c.<\/p>\n<h3>5. \u041a\u0435\u0439\u0441: \u043a\u0430\u043a \u043c\u044b \u0441\u043f\u0430\u0441\u043b\u0438 fintech-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443<\/h3>\n<p>\u041d\u0430\u0448\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u0440\u0435\u0434\u0438\u0442\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c 10 000 TPS, \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0437 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0435\u0432 \u0437\u0430 5 \u043c\u0438\u043d\u0443\u0442. \u041d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u0442\u0440\u0430\u0434\u0430\u043b \u043e\u0442 \u0434\u043e\u043b\u0433\u0438\u0445 \u0434\u0435\u043f\u043b\u043e\u0435\u0432 (2 \u0447\u0430\u0441\u0430), \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430.<\/p>\n<p><strong>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043d\u0430 Go, \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0435 \u0432 Kubernetes.<\/p>\n<\/li>\n<li>\n<p>PostgreSQL \u0441 Patroni \u0438 PgBouncer \u0434\u043b\u044f<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-464756","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/464756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=464756"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/464756\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=464756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=464756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=464756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}