{"id":379022,"date":"2024-06-17T15:00:38","date_gmt":"2024-06-17T15:00:38","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=379022"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=379022","title":{"rendered":"<span>\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 PostgreSQL \u0434\u043b\u044f 1\u0421. HAProxy, \u0434\u0430\u0432\u0430\u0439 \u0434\u043e \u0441\u0432\u0438\u0434\u0430\u043d\u0438\u044f. \u0420\u0435\u0446\u0435\u043f\u0442\u044b \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430<\/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-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\u041e\u0434\u043d\u0430 \u0438\u0437 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0438\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439 \u0446\u0438\u043a\u043b\u0430 \u00ab\u0412 \u043e\u0431\u043b\u0430\u043a\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443:\u2026 \u0420\u0435\u0446\u0435\u043f\u0442\u044b \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430\u00bb \u0432 \u0445\u043e\u0434\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u043b \u0441\u043e\u0431\u0440\u0430\u043d \u043f\u043e\u043b\u043d\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u043d\u0442\u0443\u0440 1\u0421 \u0432 \u0441\u0435\u0442\u0438 \u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0420\u0435\u0434 \u041e\u0421. \u0421 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438, \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u043f\u0440\u043e\u0447\u0430\u044f \u043f\u0440\u043e\u0447\u0430\u044f\u2026 <br \/>  \u042d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0431\u043b\u044e\u0434\u043e, \u043d\u0430 \u0437\u0430\u043a\u0443\u0441\u043a\u0443 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c\u044e.<br \/>  \u0412 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u043b\u044f PostgreSQL, \u0437\u0430\u043e\u0434\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u043e \u043d\u043e\u0432\u043e\u043c\u0443.<br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/822257\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/8_\/zw\/ks\/8_zwksdxbd6pbpsins4tim5dwf0.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/8_\/zw\/ks\/8_zwksdxbd6pbpsins4tim5dwf0.jpeg\" data-blurred=\"true\"\/><\/div>\n<p><\/a><a name=\"habracut\"><\/a><\/p>\n<p><em>\u041f\u043e\u0441\u043b\u0435 \u0440\u043e\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u0432\u0438\u0434\u0430\u043d\u0438\u044f\u00a0\u0434\u0435\u0432\u0443\u0448\u043a\u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442:<br \/>  -\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0435\u0445\u0430\u0442\u044c \u043a\u00a0\u0442\u0435\u0431\u0435\u00a0\u0438 \u0437\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u043a\u043e\u0435-\u0447\u0435\u043c \u043d\u0435\u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c.<br \/>  -\u0423\u0445 \u0442\u044b! \u0411\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u043d\u043e\u043b\u044c!<br \/>  \u041e\u0431\u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442.<br \/>  anekdot.ru\u00a9<\/em><\/p>\n<p><strong>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u041c\u0435\u0442\u043e\u0434 \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430\u00a0PostgreSQL \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0418\u0422\u0421.<br \/>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u044f \u0441\u0447\u0438\u0442\u0430\u044e \u0440\u0435\u0446\u0435\u043f\u0442 \u043e\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0441\u043e\u0431\u0440\u0430\u0432\u0448\u0435\u0433\u043e 10+ \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u043f\u043e \u043d\u0435\u043c\u0443 \u0441\u0438\u0441\u0442\u0435\u043c, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a.<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043a\u043e\u043d\u0442\u0443\u0440\u0435 \u0431\u0435\u0437 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/strong><\/p>\n<p>\u041d\u043e, \u043f\u043e\u043a\u0430 \u043a\u043e\u0440\u0438\u0444\u0435\u0438 \u0432 \u043e\u0442\u043f\u0443\u0441\u043a\u0435, \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0437\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0435\u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0448\u0430\u0442\u0430\u0442\u044c \u0438\u0445 \u0442\u0440\u0443\u0431\u0443.<\/p>\n<p><strong>\u0422\u0435\u043c \u043a\u0442\u043e \u043d\u0435 \u043b\u044e\u0431\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u0431\u0443\u043a\u0432<\/strong><\/p>\n<p>\u041e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 PostgreSQL \u0434\u043b\u044f 1\u0421 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0431\u0435\u0437\u00a0HAProxy, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 IP \u0438 vip-manager \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043c.<\/p>\n<p>\u041a\u0442\u043e \u043d\u0435 \u043b\u044e\u0431\u0438\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u0432\u043e\u043e\u0431\u0449\u0435, \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e.<br \/>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p><strong>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0437\u043d\u0430\u043a\u043e\u043c\u0443\u044e \u0441\u0445\u0435\u043c\u0443 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u043e\u0442 \u0418\u0422\u0421 &amp; Co.<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/rf\/vv\/m0\/rfvvm0r9pi36ppnp4p9ky7vfy2w.jpeg\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/rf\/vv\/m0\/rfvvm0r9pi36ppnp4p9ky7vfy2w.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/rf\/vv\/m0\/rfvvm0r9pi36ppnp4p9ky7vfy2w.jpeg\" data-blurred=\"true\"\/><\/a><\/p>\n<p>\u0415\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a, \u044d\u0442\u043e \u043b\u0438\u0448\u043d\u0435\u0435 \u0437\u0432\u0435\u043d\u043e \u0432 \u0432\u0438\u0434\u0435\u00a0HAProxy.<br \/>  \u042d\u0442\u043e, \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u043a\u043b\u0430\u0434 \u0432 \u0431\u044b\u0441\u0442\u0440\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0438 \u0441\u043b\u0430\u0431\u043e\u0435 \u0437\u0432\u0435\u043d\u043e \u043a\u0430\u043a \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c \u0441\u0430\u043c\u043e\u0433\u043e \u0443\u0437\u043b\u0430\u00a0HAProxy.<br \/>  \u041d\u043e\u0433\u0438 \u044d\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u044b \u0440\u0430\u0441\u0442\u0443\u0442 \u0438\u0437 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u0442\u0430\u043c \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435\u00a0HAProxy \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u043d\u043e, \u0442.\u043a. \u043e\u043d \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0440\u0430\u0444\u0438\u043a, \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u044d\u0442\u043e \u0443\u043c\u0435\u0435\u0442, \u0442\u043e \u043f\u0438\u0441\u0430\u0442\u0435\u043b\u0438 \u0438\u0434\u0443\u0442 \u043d\u0430\u043b\u0435\u0432\u043e, \u0430 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043e \u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0438\u043a\u043e\u043c\u0443 \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/zd\/oh\/hp\/zdohhpuk08p8r2mid9z5_oryfow.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/zd\/oh\/hp\/zdohhpuk08p8r2mid9z5_oryfow.jpeg\" data-blurred=\"true\"\/><br \/>  \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u043a\u0440\u0430\u0442\u043d\u043e.<br \/>  1\u0421 \u0436\u0435 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442, \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043f\u043e\u043a\u0430, \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0434\u043b\u044f \u043d\u0435\u0435\u00a0HAProxy \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u0442\u0440\u0430\u0444\u0438\u043a\u0430, \u0432\u043d\u043e\u0441\u044f\u0449\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432 1-10% \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0436\u0435\u043b\u0435\u0437\u0430 \u0438 \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a.<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/et\/8s\/uy\/et8suyfhsdjyrxeayws1sy7oteu.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/et\/8s\/uy\/et8suyfhsdjyrxeayws1sy7oteu.png\" data-src=\"https:\/\/habrastorage.org\/webt\/et\/8s\/uy\/et8suyfhsdjyrxeayws1sy7oteu.png\"\/><\/a><br \/>  \u0418 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e 1\u0421, \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0435 \u043c\u043e\u0433\u0443\u0442\u00a0\u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u0435\u043d\u0438\u0435,\u00a0\u043e\u0442\u0441\u044e\u0434\u0430 \u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u0445\u043e\u0434\u0430 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u0430\u0439\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 PostgreSQL.<br \/>  \u041e\u0431\u044b\u0447\u043d\u043e \u0441\u0445\u0435\u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0432\u0435\u0441\u044c\u043c\u0430 \u0437\u0430\u043c\u044b\u0441\u043b\u043e\u0432\u0430\u0442\u044b\u0435, \u0442\u044f\u0436\u0435\u043b\u044b\u0435 \u043a\u0430\u043a \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0438, \u0442\u0430\u043a \u0438 \u0432 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438.<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/am\/2v\/yo\/am2vyo9nszkvuz0mocqq3t2uo4m.jpeg\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/am\/2v\/yo\/am2vyo9nszkvuz0mocqq3t2uo4m.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/am\/2v\/yo\/am2vyo9nszkvuz0mocqq3t2uo4m.jpeg\" data-blurred=\"true\"\/><\/a><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ad\/us\/0v\/adus0v0evzxgk7-uogx6odzbtr4.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ad\/us\/0v\/adus0v0evzxgk7-uogx6odzbtr4.png\"\/><br \/>  \u041d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0438\u0435 \u043f\u043e\u0445\u043e\u0434 \u043f\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0443<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/ie\/ys\/lg\/ieyslgvyso3rnpkwry8d3odp9js.jpeg\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ie\/ys\/lg\/ieyslgvyso3rnpkwry8d3odp9js.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ie\/ys\/lg\/ieyslgvyso3rnpkwry8d3odp9js.jpeg\" data-blurred=\"true\"\/><\/a><\/p>\n<p>  \u0410 \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e. \u0412\u0436\u0443\u0445&#8230;<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/wa\/6m\/xg\/wa6mxgwxcfcf1jal4ugl7bdas0w.jpeg\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/wa\/6m\/xg\/wa6mxgwxcfcf1jal4ugl7bdas0w.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/wa\/6m\/xg\/wa6mxgwxcfcf1jal4ugl7bdas0w.jpeg\" data-blurred=\"true\"\/><\/a><br \/>  \u0438 \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u0437\u0432\u0435\u043d\u0430.<br \/>  \u0422\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0435\u0441\u0442\u044c \u0443 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 <a href=\"https:\/\/www.cybertec-postgresql.com\/en\/\">CYBERTEC PostgreSQL International GmbH<\/a>,\u00a0\u0443 \u043c\u0435\u043d\u044f \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0431\u0443\u0434\u0435\u0442 \u0443 \u0432\u0430\u0441.<br \/>  <a href=\"https:\/\/www.cybertec-postgresql.com\/en\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/0g\/hn\/2l\/0ghn2lhut6xe0fqhuxa4tjnybga.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/0g\/hn\/2l\/0ghn2lhut6xe0fqhuxa4tjnybga.jpeg\" data-blurred=\"true\"\/><\/a><br \/>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0443 \u043d\u0438\u0445 \u0436\u0435 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 <a href=\"https:\/\/www.cybertec-postgresql.com\/en\/products\/pgconfigurator\/\">PGConfigurator<\/a>.<br \/>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u00a0<a href=\"https:\/\/github.com\/cybertec-postgresql\/vip-manager\">vip-manager<\/a>,\u00a0\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0439\u00a0\u0435\u0434\u0438\u043d\u0443\u044e\u00a0\u0442\u043e\u0447\u043a\u0443\u00a0\u0432\u0445\u043e\u0434\u0430 (\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 IP \u0430\u0434\u0440\u0435\u0441) \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a PostgreSQL.<br \/>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<p><strong>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/strong><\/p>\n<p>\u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u0438\u0437\u00a0\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439<\/p>\n<ul>\n<li>\u0421\u0435\u0440\u0432\u0435\u0440 1\u0421 \u0420\u0435\u0434\u041e\u0421 8\u00a0<\/li>\n<li>Postgres 16 \u043e\u0442 PostgresPro<\/li>\n<li>1\u0421 \u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435 64-\u0445\u00a08.3.24.1467<\/li>\n<li>\u0432\u0441\u0435 \u0432 \u0434\u043e\u043c\u0435\u043d\u0435 test.loc.\u00a0<br \/>   \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 1\u0421\u00a0usr1cv83, \u043f\u0430\u0440\u043e\u043b\u0438 \u0443 \u0432\u0441\u0435\u0445 123456.<br \/>   \u0412\u0441\u0435 \u044d\u0442\u0438\u00a0\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u0431\u044b\u0442\u044c \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u043d\u0430 \u0432\u0430\u0448\u0438.<\/li>\n<li>\u0432\u0441\u0435\u00a0\u043f\u043e \u0436\u0435\u043b\u0435\u0437\u0443 4\u0413\u0411 RAM 50\u0413\u0411 SSD 2 \u042f\u0434\u0440\u0430 CPU<\/li>\n<li>\u0432\u0441\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e \u0432 \u043e\u0431\u043b\u0430\u043a\u0435\u00a0\u00a9<a href=\"https:\/\/serverspace.ru\/\">Serverspace<\/a>\u00a0\u0438\u0437 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 iso \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u0434\u043b\u044f \u0447\u0438\u0441\u0442\u043e\u0442\u044b \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430.<\/li>\n<li>\u0431\u0430\u0437\u0430 \u0417\u0430\u0440\u043f\u043b\u0430\u0442\u0430 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u043e\u043c \u041a\u041e\u0420\u041f, \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044f 3.1 (3.1.29.62)\u00a0\u0434\u0435\u043c\u043e<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<p><a href=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/my\/lg\/y7\/mylgy74atekz3zng8fl-hvbvqcg.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/my\/lg\/y7\/mylgy74atekz3zng8fl-hvbvqcg.png\" data-src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/my\/lg\/y7\/mylgy74atekz3zng8fl-hvbvqcg.png\"\/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u044b\u043b\u0430 \u0440\u0435\u0446\u0435\u043f\u0442\u043e\u043c, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430.\u00a0<\/p>\n<p><strong>etcd<\/strong>, \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044e, \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00a0\u043f\u0440\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 patroni<\/p>\n<p><em>dnf install -y etcd<br \/>  etcd &#8212;version<br \/>  systemctl status etcd.service &#8212;no-pager -l<br \/>  mv \/etc\/etcd\/etcd.conf \/etc\/etcd\/etcd.conf.def<br \/>  mcedit \/etc\/etcd\/etcd.conf\u00a0<\/em><\/p>\n<p>\u0431\u0435\u0440\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d \u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441 <a href=\"https:\/\/its.1c.ru\/db\/metod8dev\/content\/5971\/hdoc\">\u0418\u0422\u0421 <\/a>\u0438\u043b\u0438 \u0441\u00a0<a href=\"https:\/\/github.com\/etcd-io\/etcd\/blob\/release-3.4\/etcd.conf.yml.sample\">github<\/a>\u00a0\u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0432 \u043d\u0435\u043c \u0438\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430,\u00a0\u0430\u0434\u0440\u0435\u0441\u0430 \u0445\u043e\u0441\u0442\u043e\u0432,\u00a0\u0441\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0443\u0437\u0435\u043b, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0431\u0430\u0437\u0443 \u0434\u0432\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u0442\u043e\u0433\u0434\u0430 \u0432\u0441\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">&#8230;<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre> #[Member] ETCD_DATA_DIR=\"\/var\/lib\/etcd\/cluster-1c\" ETCD_LISTEN_PEER_URLS=\"http:\/\/0.0.0.0:2380\" ETCD_LISTEN_CLIENT_URLS=\"http:\/\/0.0.0.0:2379\" ETCD_NAME=\"red8-cln01.test.loc\" ETCD_HEARTBEAT_INTERVAL=\"1000\" ETCD_ELECTION_TIMEOUT=\"5000\" #[Clustering] ETCD_INITIAL_ADVERTISE_PEER_URLS=\"http:\/\/red8-cln01.test.loc:2380\"\u00a0 ETCD_ADVERTISE_CLIENT_URLS=\"http:\/\/red8-cln01.test.loc:2379\" ETCD_INITIAL_CLUSTER=\"red8-cln01.test.loc=http:\/\/red8-cln01.test.loc:2380\"\u00a0 # \u0434\u043b\u044f \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 ETCD_INITIAL_CLUSTER=\"red8-cln01.test.loc=http:\/\/red8-cln01.test.loc:2380, red-srv.test.loc=http:\/\/red-srv.test.loc:2380, red8-srv.test.loc=http:\/\/red8-srv.test.loc:2380\"\u00a0 ETCD_INITIAL_CLUSTER_TOKEN=\"cluster-1c\" ETCD_INITIAL_CLUSTER_STATE=\"new\" # \u0434\u043b\u044f \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 ETCD_INITIAL_CLUSTER_STATE=\"existing\" <\/pre>\n<p><em>systemctl start etcd.service<br \/>  systemctl status etcd.service &#8212;no-pager -l<\/p>\n<p>  etcdctl member add red8-srv.test.loc &#8212;peer-urls=http:\/\/red8-srv.test.loc:2380<\/em><br \/>  #\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c conf \u0444\u0430\u0439\u043b \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u043d\u0430 \u043d\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443<br \/>  <em>etcdctl member add red-srv.test.loc &#8212;peer-urls=http:\/\/red-srv.test.loc:2380<\/em><br \/>  #\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c conf \u0444\u0430\u0439\u043b \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u043d\u0430 \u043d\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443<br \/>  #\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0432\u0441\u0435\u0445 \u0443\u0437\u043b\u043e\u0432<\/p>\n<p>  <\/div>\n<\/p><\/div>\n<p><em>ENDPOINTS=red8-cln01.test.loc:2379,red-srv.test.loc:2379,red8-srv.test.loc:2379<br \/>  etcdctl &#8212;endpoints=$ENDPOINTS endpoint health<br \/>  etcdctl &#8212;write-out=table &#8212;endpoints=$ENDPOINTS endpoint status<\/em><\/p>\n<p><a href=\"https:\/\/habrastorage.org\/webt\/qv\/ns\/97\/qvns97yati8-ox_q4j7jtz-ey2s.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qv\/ns\/97\/qvns97yati8-ox_q4j7jtz-ey2s.png\" data-src=\"https:\/\/habrastorage.org\/webt\/qv\/ns\/97\/qvns97yati8-ox_q4j7jtz-ey2s.png\"\/><\/a><br \/>  \u043a\u043b\u0430\u0441\u0442\u0435\u0440 etcd \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430\u0434\u0435\u0436\u043d\u043e, \u043d\u0435\u0434\u0430\u0440\u043e\u043c \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Kubernetes,\u00a0\u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0438\u0434\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a, \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443, \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u00a0ETCD_DATA_DIR=&#187;\/var\/lib\/etcd\/cluster-1c&#187; \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430<\/p>\n<p>\u0412 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043a\u043e\u043d\u0442\u0443\u0440\u0435, \u043d\u0443\u0436\u043d\u043e \u0435\u0449\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root \u0434\u043b\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a etcd \u0438 \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p><strong>patroni<\/strong>, \u043f\u0440\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f\u0445 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 \u043f\u0443\u0441\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430\u00a0postgreSQL, Patroni \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0438 \u043f\u0440\u0438\u043c\u0435\u0442 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439, \u044d\u0442\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0432\u043e\u0437\u043d\u044e \u0441 \u0430\u0440\u0445\u0438\u0432\u0430\u043c\u0438, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f, \u044d\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439\u00a0\u0434\u043b\u044f \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438\u00a0Patroni superuser etc.<br \/>  \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430, \u043a\u0430\u043a \u043d\u0430 <a href=\"https:\/\/patroni.readthedocs.io\/en\/latest\/installation.html\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435<\/a>, \u0442\u0430\u043a \u0438 \u043d\u0430 <a href=\"https:\/\/its.1c.ru\/db\/metod8dev\/content\/5971\/hdoc\">\u0418\u0422\u0421<\/a><\/p>\n<p><em>python3 -m pip install patroni[etcd]<br \/>  dnf install python3-psycopg2 -y<br \/>  mkdir \/etc\/patroni<br \/>  chown postgres:postgres \/etc\/patroni<br \/>  chmod 700 \/etc\/patroni<br \/>  mcedit\u00a0&#8216;\/1c\/create users.txt&#8217;<\/em><br \/>  <em>chmod +777 -R \/1c<\/em><\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">&#8230;<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p>\u00a0<\/p>\n<p> \u2014 Patroni superuser<br \/>   \u2014 Replace PATRONI_SUPERUSER_USERNAME and PATRONI_SUPERUSER_PASSWORD accordingly<br \/>  CREATE USER patroni_superuser WITH SUPERUSER ENCRYPTED PASSWORD &#8216;123456&#8217;;<\/p>\n<p> \u2014 Patroni replication user<br \/>   \u2014 Replace PATRONI_REPLICATION_USERNAME and PATRONI_REPLICATION_PASSWORD accordingly<br \/>  CREATE USER patroni_replication WITH REPLICATION ENCRYPTED PASSWORD &#8216;123456&#8217;;<\/p>\n<p> \u2014 Patroni rewind user, if you intend to enable use_pg_rewind in your Patroni configuration<br \/>   \u2014 Replace PATRONI_REWIND and PATRONI_REWIND_PASSWORD accordingly<br \/>  CREATE USER patroni_rewind WITH ENCRYPTED PASSWORD &#8216;123456&#8217;;<br \/>  GRANT EXECUTE ON function pg_catalog.pg_ls_dir(text, boolean, boolean) TO patroni_rewind;<br \/>  GRANT EXECUTE ON function pg_catalog.pg_stat_file(text, boolean) TO patroni_rewind;<br \/>  GRANT EXECUTE ON function pg_catalog.pg_read_binary_file(text) TO patroni_rewind;<br \/>  GRANT EXECUTE ON function pg_catalog.pg_read_binary_file(text, bigint, bigint, boolean) TO patroni_rewind;<\/p>\n<p>  <\/div>\n<\/p><\/div>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0436\u0431\u0443\u00a0postgres \u043d\u0443\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c<br \/>  <em>systemctl status postgrespro-1c-16.service<br \/>  systemctl stop postgrespro-1c-16.service<br \/>  systemctl disable postgrespro-1c-16.service<br \/>  mcedit \/etc\/systemd\/system\/patroni.service<\/em><\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">&#8230;<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p>\u00a0[Unit]<br \/>  Description=Runners to orchestrate a high-availability PostgreSQL<br \/>  After=syslog.target network.target<br \/>  [Service]<br \/>  Type=simple<br \/>  User=postgres<br \/>  Group=postgres<br \/>  ExecStart=\/usr\/local\/bin\/patroni \/etc\/patroni\/patroni.yml<br \/>  ExecReload=\/bin\/kill -s HUP $MAINPID<br \/>  KillMode=process<br \/>  TimeoutSec=30<br \/>  Restart=no<br \/>  [Install]<br \/>  WantedBy=multi-user.target<\/p>\n<p>  <\/div>\n<\/p><\/div>\n<p><em>mcedit\u00a0\/etc\/patroni\/patroni.yml<\/em><br \/>  \u0428\u0430\u0431\u043b\u043e\u043d \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0432\u0437\u044f\u0442\u044c \u0441 \u0418\u0422\u0421 \u0438\u043b\u0438 \u0441\u0430\u0439\u0442\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430, \u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<br \/>  <em>patroni &#8212;generate-sample-config\u00a0\/etc\/patroni\/patroni.yml<\/em><\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">&#8230;<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p>scope: &#8216;cluster-1c&#8217;<br \/>  name: red8-srv.test.loc<br \/>  namespace: \/db\/<\/p>\n<p>  log:<br \/>  \u00a0 format: &#8216;%(asctime)s %(levelname)s: %(message)s&#8217;<br \/>  \u00a0 level: INFO<br \/>  \u00a0 max_queue_size: 1000<br \/>  \u00a0 traceback_level: ERROR<\/p>\n<p>restapi:<br \/>  \u00a0 connect_address: red8-srv.test.loc:8008<br \/>  \u00a0 listen: 0.0.0.0:8008<\/p>\n<p>etcd3:<br \/>  \u00a0 host: red8-srv.test.loc:2379<br \/>  \u00a0 username: root<br \/>  \u00a0 password: &#8216;123456&#8217;<\/p>\n<p># The bootstrap configuration. Works only when the cluster is not yet initialized.<br \/>  # If the cluster is already initialized, all changes in the `bootstrap` section are ignored!<br \/>  bootstrap:<br \/>  \u00a0 # This section will be written into &lt;dcs>:\/&lt;namespace>\/&lt;scope>\/config after initializing<br \/>  \u00a0 # new cluster and all other cluster members will use it as a `global configuration`.<br \/>  \u00a0 # WARNING! If you want to change any of the parameters that were set up<br \/>  \u00a0 # via `bootstrap.dcs` section, please use `patronictl edit-config`!<br \/>  \u00a0 dcs:<br \/>  \u00a0 \u00a0 loop_wait: 10<br \/>  \u00a0 \u00a0 retry_timeout: 10<br \/>  \u00a0 \u00a0 ttl: 30<br \/>  \u00a0 \u00a0 postgresql:<br \/>  \u00a0 \u00a0 \u00a0 parameters:<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 hot_standby: &#8216;on&#8217;<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 max_connections: 100<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 max_locks_per_transaction: 64<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 max_prepared_transactions: 0<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 max_replication_slots: 10<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 max_wal_senders: 10<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 max_worker_processes: 8<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 track_commit_timestamp: &#8216;off&#8217;<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 wal_keep_size: 128MB<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 wal_level: replica<br \/>  \u00a0 \u00a0 \u00a0 \u00a0 wal_log_hints: &#8216;on&#8217;<br \/>  \u00a0 \u00a0 \u00a0 use_pg_rewind: true<br \/>  \u00a0 \u00a0 \u00a0 use_slots: true<\/p>\n<p>postgresql:<br \/>  \u00a0 authentication:<br \/>  \u00a0 \u00a0superuser:<br \/>  \u00a0 \u00a0 username: patroni_superuser<br \/>  \u00a0 \u00a0 password: &#8216;123456&#8217;<br \/>  \u00a0 \u00a0replication:<br \/>  \u00a0 \u00a0 username: patroni_replication<br \/>  \u00a0 \u00a0 password: &#8216;123456&#8217;<br \/>  \u00a0 \u00a0rewind:<br \/>  \u00a0 \u00a0 username: patroni_rewind<br \/>  \u00a0 \u00a0 password: &#8216;123456&#8217;<br \/>  \u00a0 bin_dir: &#8216;\/opt\/pgpro\/1c-16\/bin\/&#8217;<br \/>  \u00a0 connect_address: red8-srv.test.loc:5432<br \/>  \u00a0 data_dir: \/var\/lib\/pgpro\/1c-16\/data<br \/>  \u00a0 listen: 0.0.0.0:5432<br \/>  \u00a0 parameters:<br \/>  \u00a0 \u00a0 password_encryption: md5<\/p>\n<p>tags:<br \/>  \u00a0 clonefrom: true<br \/>  \u00a0 failover_priority: 1<br \/>  \u00a0 noloadbalance: false<br \/>  \u00a0 nosync: false<br \/>  \u00a0<\/p>\n<p>  <\/div>\n<\/p><\/div>\n<p>\u0432 \u043d\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0438\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0438 \u0442.\u043f<br \/>  <em>\u0442.\u043a. \u0443 \u043d\u0430\u0441\u00a0<\/em>etcd \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0442\u043e \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0434\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 etcd3<br \/>  \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043e\u043f\u0435\u0447\u0430\u0442\u0430\u043b\u0438\u0441\u044c \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043e\u0442\u0441\u0442\u0443\u043f\u044b<\/p>\n<p><em>\/usr\/local\/bin\/patroni &#8212;validate-config \/etc\/patroni\/patroni.yml<br \/>  mcedit \/var\/lib\/pgpro\/1c-16\/data\/pg_hba.conf<\/em><br \/>  \u00a0<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">&#8230;<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p>host \u00a0 \u00a0all \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 all \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 0.0.0.0\/0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 md5<br \/>  host \u00a0 \u00a0replication \u00a0 \u00a0 all \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 0.0.0.0\/0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 md5<br \/>  #\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u043e\u043a \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043b\u0438\u0434\u0435\u0440\u0443 \u0441 \u0440\u0435\u043f\u043b\u0438\u043a\u0438<\/p>\n<p>  <\/div>\n<\/p><\/div>\n<p><em>systemctl start patroni.service<br \/>  systemctl status patroni.service &#8212;no-pager -l<\/em><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u043c\u0430\u043d\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u043c, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 etc.<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/zd\/jt\/xg\/zdjtxgiwgmnjmh0xtxphomvbnvg.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/zd\/jt\/xg\/zdjtxgiwgmnjmh0xtxphomvbnvg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/zd\/jt\/xg\/zdjtxgiwgmnjmh0xtxphomvbnvg.png\"\/><\/a><br \/>  \u041f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u043a\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0433\u0434\u0435 \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f,\u00a0\u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043d\u0430 <a href=\"https:\/\/patroni.readthedocs.io\/en\/latest\/patroni_configuration.html\">\u0441\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430<\/a>, \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u0445\u043e\u0434\u0447\u0438\u0432\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e. \u0421\u043b\u043e\u043c\u0430\u0442\u044c \u0432\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0435\u0442\u0435, \u0442.\u043a. \u0441\u0430\u043c\u044b\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u0434\u043b\u044f patroni \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 postgres \u0438 \u0438\u043c\u0435\u044e\u0442 \u043d\u0430\u0438\u0432\u044b\u0441\u0448\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442.<br \/>  <em>\/usr\/local\/bin\/patronictl &#8212;config-file \/etc\/patroni\/patroni.yml topology cluster-1c<br \/>  \/usr\/local\/bin\/patronictl &#8212;config-file \/etc\/patroni\/patroni.yml edit-config cluster-1c &#8212;pg max_locks_per_transaction=&#187;256&#8243; &#8212;force<\/em><\/p>\n<p><em>\/usr\/local\/bin\/patronictl &#8212;config-file \/etc\/patroni\/patroni.yml restart cluster-1c<\/em><\/p>\n<p>\u0438\u0442\u043e\u0433 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438: \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0441 \u043b\u0438\u0434\u0435\u0440\u043e\u043c \u0438 \u0440\u0435\u043f\u043b\u0438\u043a\u043e\u0439<\/p>\n<p><strong>haproxy<\/strong>, \u0442.\u043a \u043c\u044b \u0438\u0434\u0435\u043c \u043f\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0418\u0422\u0421, \u0442\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440<br \/>  <em>yum install -y haproxy<br \/>  mv \/etc\/haproxy\/haproxy.cfg \/etc\/haproxy\/haproxy.conf.def<br \/>  mcedit \/etc\/haproxy\/haproxy.cfg<\/em><br \/>  \u00a0<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">&#8230;<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p>global<br \/>  \u00a0maxconn 1000<br \/>  defaults<br \/>  \u00a0log global<br \/>  \u00a0mode tcp<br \/>  \u00a0retries 2<br \/>  \u00a0timeout client 30m<br \/>  \u00a0timeout connect 4s<br \/>  \u00a0timeout server 30m<br \/>  \u00a0timeout check 5s<br \/>  listen stats<br \/>  \u00a0mode http<br \/>  \u00a0bind *:7000<br \/>  \u00a0stats enable<br \/>  \u00a0stats uri \/<br \/>  listen postgres<br \/>  \u00a0bind *:5432<br \/>  \u00a0option httpchk<br \/>  \u00a0http-check expect status 200<br \/>  \u00a0default-server inter 3s fastinter 1s fall 2 rise 2 on-marked-down shutdown-sessions<br \/>  \u00a0server red8-srv.test.loc red8-srv.test.loc:5432 maxconn 100 check port 8008<br \/>  \u00a0server red-srv.test.loc red-srv.test.loc:5432 maxconn 100 check port 8008<\/p>\n<p>  \u00a0<\/p>\n<p>  <\/div>\n<\/p><\/div>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">&#8230;<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p>\u0412 \u0431\u043b\u0430\u0433\u043e\u0441\u043b\u043e\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430, \u043a\u043e\u0433\u0434\u0430 \u0441\u0435\u043c\u0438\u043d\u0430\u0440\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0438 \u043d\u0435 \u043e\u043d\u043b\u0430\u0439\u043d, \u0430 \u0432 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446-\u0445\u043e\u043b\u043b\u0430\u0445, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u0433\u0430\u043b\u0435\u0440\u043a\u0435 \u0441\u0438\u0434\u0435\u043b \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0432\u0430\u043b \u043d\u0430 \u0441\u0435\u0431\u0435 \u0432\u043e\u043b\u043e\u0441\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043f\u0430\u043b\u044c\u0446\u0435\u043c \u0432 \u0434\u043e\u043a\u043b\u0430\u0434\u0447\u0438\u043a\u0430 \u0438 \u0442\u0438\u0445\u0438\u043c \u0448\u0435\u043f\u043e\u0442\u043e\u043c \u0441\u043e\u0432\u0435\u0442\u0443\u044f \u0442\u0430\u043a \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c.<br \/>  \u041f\u0440\u0438\u0447\u0435\u043c \u0438\u043d\u043e\u0433\u0434\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u043e\u043b\u043e\u0441 \u043d\u0430 \u0433\u043e\u043b\u043e\u0432\u0435 \u044d\u0442\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u043d\u0430\u043c\u0435\u043a\u0430\u043b\u043e, \u043d\u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u0438 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f\u0445 \u043e\u043d \u0443\u0436\u0435 \u043f\u043e\u0431\u044b\u0432\u0430\u043b.<\/p>\n<p>  <\/div>\n<\/p><\/div>\n<p>\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043e\u043f\u0435\u0447\u0430\u0442\u043e\u043a \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432<br \/>  <em>\/usr\/sbin\/haproxy -f \/etc\/haproxy\/haproxy.cfg -c<\/em><\/p>\n<p><em>systemctl start haproxy.service<br \/>  systemctl status haproxy.service &#8212;no-pager -l<\/em><\/p>\n<p>\u041c\u043e\u0436\u0435\u043c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430:7000<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/zs\/f8\/g3\/zsf8g3vbkw98fdgezd4kvyfplus.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/zs\/f8\/g3\/zsf8g3vbkw98fdgezd4kvyfplus.png\" data-src=\"https:\/\/habrastorage.org\/webt\/zs\/f8\/g3\/zsf8g3vbkw98fdgezd4kvyfplus.png\"\/><\/a><\/p>\n<p>\u0418 \u0438\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u044b.<br \/>  \u041d\u0430 \u043b\u0438\u0434\u0435\u0440\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0431\u0430\u0437\u0443\u00a0pgbench.<br \/>  sudo -u postgres psql -U postgres -c &#171;create database pgbench;&#187;<br \/>  PGPASSWORD=&#8217;123456&#8242; pgbench -h redos-vm -U postgres -i -s 5 pgbench<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e \u043f\u0440\u044f\u043c\u043e\u043c\u0443 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044e \u043d\u0430 \u043b\u0438\u0434\u0435\u0440 \u00a0\u00a0<\/p>\n<p><em>PGPASSWORD=&#8217;123456&#8242; pgbench \u00a0-h red-srv.test.loc -U postgres -c 10 -j 1 -t 10000 pgbench<\/em><\/p>\n<p><a href=\"https:\/\/habrastorage.org\/webt\/tg\/zj\/fj\/tgzjfju2mohlzzwygqztqntiihu.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/tg\/zj\/fj\/tgzjfju2mohlzzwygqztqntiihu.png\" data-src=\"https:\/\/habrastorage.org\/webt\/tg\/zj\/fj\/tgzjfju2mohlzzwygqztqntiihu.png\"\/><\/a><br \/>  \u0438 \u0447\u0435\u0440\u0435\u0437\u00a0HAProxy<br \/>  <em>PGPASSWORD=&#8217;123456&#8242; pgbench \u00a0-h red8-cln01.test.loc -U postgres -c 10 -j 1 -t 10000 pgbench<\/em><br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/qz\/jw\/do\/qzjwdo90odgqzbrunly60swzueg.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qz\/jw\/do\/qzjwdo90odgqzbrunly60swzueg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/qz\/jw\/do\/qzjwdo90odgqzbrunly60swzueg.png\"\/><\/a><\/p>\n<p>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0431\u0430\u0437\u044b 1\u0421 \u043d\u0430 \u0430\u0434\u0440\u0435\u0441\u00a0HAProxy<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/1o\/5e\/eq\/1o5eeqo4jv2-5sujmqs4pnkbu3k.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/1o\/5e\/eq\/1o5eeqo4jv2-5sujmqs4pnkbu3k.png\" data-src=\"https:\/\/habrastorage.org\/webt\/1o\/5e\/eq\/1o5eeqo4jv2-5sujmqs4pnkbu3k.png\"\/><\/a><\/p>\n<p>\u0412 \u043e\u0431\u043b\u0430\u043a\u0435\u00a0\u00a9Serverspace \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0430\u044f, \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043e\u043d\u0442\u0443\u0440\u0430\u0445 \u0433\u0434\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0434\u043e\u0445\u043e\u0434\u0438\u043b\u043e \u0434\u043e 10%, \u043a\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u0443 \u0441\u0435\u0431\u044f, \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p><strong>vip-manager<\/strong>, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 patroni<br \/>  \u043f\u0430\u043a\u0435\u0442 \u0431\u0435\u0440\u0435\u043c \u0441\u00a0<a href=\"https:\/\/github.com\/cybertec-postgresql\/vip-manager\/releases\">github\u00a0Releases<\/a><\/p>\n<p><em>echo &#171;net.ipv4.ip_nonlocal_bind = 1&#187; \u00a0>> \/etc\/sysctl.conf<br \/>  sysctl -p<\/em><br \/>  <em>rpm -ivh *.rpm<br \/>  systemctl start vip-manager.service<br \/>  systemctl status vip-manager.service &#8212;no-pager -l<br \/>  systemctl enable vip-manager.service<br \/>  cp \u00a0\/etc\/default\/vip-manager.yml \u00a0\/etc\/default\/vip-manager.yml.bak<\/em><\/p>\n<p><em>mcedit \/etc\/default\/vip-manager.yml<\/em><\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">&#8230;<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p>\u00a0<\/p>\n<p># \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445<br \/>  interval: 1000<\/p>\n<p># &lt;namespace>\/&lt;scope>\/leader \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Patroni<br \/>  trigger-key: &#171;\/db\/cluster-1c\/leader&#187;<br \/>  # hostname \u0441\u0435\u0440\u0432\u0435\u0440\u0430<br \/>  trigger-value: &#171;red8-srv.test.loc&#187;<\/p>\n<p>ip: 10.0.0.10 # virtual ip\u00a0<br \/>  netmask: 24 # netmask<br \/>  interface: \u00a0enp0s5 #interface\u00a0<\/p>\n<p>hosting-type: basic\u00a0<\/p>\n<p>dcs-type: etcd\u00a0<br \/>  # \u0441\u043f\u0438\u0441\u043e\u043a DCS endpoints<br \/>  dcs-endpoints:<br \/>  \u00a0 \u2014 <a href=\"http:\/\/127.0.0.1\">127.0.0.1<\/a>:2379<\/p>\n<p>#etcd-user: &#171;patroni&#187;<br \/>  #etcd-password: &#171;123456&#187;<\/p>\n<p>retry-num: 2<br \/>  retry-after: 250 \u00a0#in milliseconds<\/p>\n<p>verbose: false<br \/>  \u00a0<\/p>\n<p>  <\/div>\n<\/p><\/div>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0432 DNS \u0438\u043b\u0438 \u0444\u0430\u0439\u043b\u0430\u0445 hosts<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/kp\/ap\/kf\/kpapkfv2pydhozfupr6nfwkuxkw.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/kp\/ap\/kf\/kpapkfv2pydhozfupr6nfwkuxkw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/kp\/ap\/kf\/kpapkfv2pydhozfupr6nfwkuxkw.png\"\/><\/a><\/p>\n<p>\u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0431\u0430\u0437\u044b 1\u0421,\u00a0HAProxy\u00a0\u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0442\u044c.<br \/>  \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u044e, \u0447\u0442\u043e \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u043f\u043e\u043a\u0430 \u0435\u0433\u043e \u0438\u0441\u0442\u0438\u043d\u043d\u043e\u0439 \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f 1\u0421.<br \/>  \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0438\u0442\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p>  \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043b\u0438\u0434\u0435\u0440\u0430 patroni \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440,\u00a0\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0443\u0448\u0435\u043b \u043d\u0430 \u043d\u043e\u0432\u043e\u0433\u043e \u043b\u0438\u0434\u0435\u0440\u0430 \u0438 1\u0421 \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u043e \u043f\u043e\u0442\u0435\u0440\u0438 \u0431\u043e\u0439\u0446\u0430.<br \/>  \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u0442\u0435\u0441\u0442 \u0431\u044b\u0441\u0442\u0440\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0445\u043e\u0442\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u044f\u043c\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u043b\u0438\u0434\u0435\u0440\u043e\u043c.<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/hn\/0s\/tf\/hn0stfojjd2xf-fmdcdyuqenm2c.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/hn\/0s\/tf\/hn0stfojjd2xf-fmdcdyuqenm2c.png\" data-src=\"https:\/\/habrastorage.org\/webt\/hn\/0s\/tf\/hn0stfojjd2xf-fmdcdyuqenm2c.png\"\/><\/a><\/p>\n<p><strong>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u0438:<\/strong><br \/>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044e\u00a0\u00a9<a href=\"https:\/\/serverspace.ru\/\">Serverspace<\/a>\u00a0\u0437\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435, \u0431\u0435\u0437 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438\u00a0\u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043f\u0438\u043d\u0433\u0432\u0438\u043d\u0430\u0440\u0438\u0443\u043c \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u0433\u0434\u0435.<\/p>\n<p><strong>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0441\u043f\u043e\u043d\u0441\u043e\u0440 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438, \u043f\u0438\u0442\u0435\u0440\u0441\u043a\u0430\u044f \u043f\u043e\u0433\u043e\u0434\u0430.<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/wu\/hn\/ly\/wuhnly8h6pbtgj25umyvart2zsg.png\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/wu\/hn\/ly\/wuhnly8h6pbtgj25umyvart2zsg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/wu\/hn\/ly\/wuhnly8h6pbtgj25umyvart2zsg.png\"\/><\/a><\/strong><br \/>  \u0410 \u0432\u044b \u043a\u0430\u043a \u0434\u0443\u043c\u0430\u0435\u0442\u0435, \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0430\u0448 \u0433\u043e\u0440\u043e\u0434 \u0434\u0430\u043b \u043c\u0438\u0440\u0443 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u043b\u0438\u043a\u0438\u0445 \u0443\u0447\u0435\u043d\u044b\u0445 \u0438 \u043f\u0438\u0441\u0430\u0442\u0435\u043b\u0435\u0439?<\/p>\n<p>  \u0421\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0431\u0438\u0432\u0447\u0438\u0432\u0430\u044f, \u0441\u0443\u0442\u044c \u0432\u044b \u043f\u043e\u043d\u044f\u043b\u0438, \u043f\u0440\u043e\u0441\u0442\u0438\u0442\u0435 \u0437\u0430 \u043d\u0435\u0440\u043e\u0432\u043d\u044b\u0439 \u043f\u043e\u0447\u0435\u0440\u043a, \u0430\u043d\u0435\u043a\u0434\u043e\u0442 \u0443\u0431\u0435\u0440\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  \u00a0<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">&#8230;<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p><em>\u041f\u0438\u0441\u044c\u043c\u043e \u0432 \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044e \u0436\u0443\u0440\u043d\u0430\u043b\u0430 &#171;\u0420\u0430\u0431\u043e\u0442\u043d\u0438\u0446\u0430&#187;.<br \/>  \u0414\u043e\u0440\u043e\u0433\u0430\u044f \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044f! \u041f\u043e\u043c\u043e\u0433\u0438\u0442\u0435 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0447\u0442\u043e \u043c\u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c, \u043c\u0443\u0436\u00a0\u043d\u0435 \u0434\u0430\u0435\u0442 \u043f\u043e\u043a\u043e\u044e.<br \/>  \u0418 \u043d\u0430 \u043a\u0443\u0445\u043d\u0435 \u043f\u0440\u0438\u0441\u0442\u0430\u0435\u0442 \u0438 \u0443 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0430, \u0430 \u0443\u0436 \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b \u043c\u043e\u044e, \u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043a\u043e\u0448\u043c\u0430\u0440.<br \/>  \u041f\u0440\u043e\u0441\u0438\u0442 \u043e\u0442\u0434\u0430\u0442\u044c \u0441\u0443\u043f\u0440\u0443\u0436\u0435\u0441\u043a\u0438\u0439 \u0434\u043e\u043b\u0433.<br \/>  \u0412\u043e\u0442 \u0438 \u0441\u0435\u0439\u0447\u0430\u0441\u2026, \u0438\u0437\u0432\u0438\u043d\u0438\u0442\u0435 \u0437\u0430 \u043d\u0435\u0440\u043e\u0432\u043d\u044b\u0439 \u043f\u043e\u0447\u0435\u0440\u043a.<br \/>  anekdot.ru\u00a9<\/em><\/p>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u041d\u0443 \u0438 \u0437\u0430\u043e\u0434\u043d\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0441\u043f\u043e\u043d\u0441\u043e\u0440 \u0432\u0441\u0435\u0445 \u043d\u0430\u0441, \u043a\u0440\u043e\u043c\u0435 \u0442\u0435\u0445, \u043a\u043e\u0433\u043e \u043d\u0430\u0448\u043b\u0438 \u0432 \u043a\u0430\u043f\u0443\u0441\u0442\u0435,\u00a0\u0432\u0435\u0434\u044c \u0447\u0438\u043d\u0438\u0442\u044c \u043b\u044e\u0434\u0435\u0439, \u044d\u0442\u043e \u043f\u043e\u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0447\u0435\u043c \u0447\u0438\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b.<br \/>  16 \u0438\u044e\u043d\u044f 2024 \u0414\u0435\u043d\u044c \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u043d\u0438\u043a\u0430 (\u0414\u0435\u043d\u044c \u043c\u0435\u0434\u0438\u043a\u0430)<br \/>  <a href=\"https:\/\/habrastorage.org\/webt\/of\/zw\/u9\/ofzwu9oxtlabaa3uppdknwfwx-o.jpeg\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/of\/zw\/u9\/ofzwu9oxtlabaa3uppdknwfwx-o.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/of\/zw\/u9\/ofzwu9oxtlabaa3uppdknwfwx-o.jpeg\" data-blurred=\"true\"\/><\/a><br \/>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0438 \u0443\u0432\u0430\u0436\u0430\u0442\u044c \u043c\u0435\u0434\u0438\u043a\u043e\u0432 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0434\u0435\u043d\u044c \u0432 \u0433\u043e\u0434\u0443.<br \/>  \u041a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u043a\u043e\u0440\u0443\u044e, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0435\u0434\u0435\u0442 \u0431\u0435\u0437 \u0441\u0438\u0440\u0435\u043d\u044b, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u0441\u043f\u0430\u0441\u0435\u0442 \u0447\u044c\u044e-\u0442\u043e \u0436\u0438\u0437\u043d\u044c.<br \/>  \u041c\u043e\u0439 \u043f\u043e\u0447\u0435\u0442 \u0438 \u0443\u0432\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u043c \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0442\u0435\u0445. \u043e\u0442\u0434\u0435\u043b\u0443 \u041f\u0421\u041f\u0431\u0413\u041c\u0423.<\/p>\n<p><strong>\u041f\u043b\u0430\u043d\u044b \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435:<\/strong><\/p>\n<p>\u0414\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0443\u0436\u0435 \u0434\u043b\u044f 1\u0421.<br \/>  + \u043d\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043e\u043d\u043e \u0435\u0441\u0442\u044c \u0443 \u043c\u0435\u043d\u044f<\/p>\n<p>\u0423\u0439\u0442\u0438 \u0432 \u043b\u0435\u0442\u043e.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/3w\/vr\/sk\/3wvrskyutfzlxavin_euieuaqv4.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/3w\/vr\/sk\/3wvrskyutfzlxavin_euieuaqv4.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>\u0416\u0435\u043b\u0430\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u044e\u0442 \u0433\u0434\u0435 \u043c\u0435\u043d\u044f \u0438\u0441\u043a\u0430\u0442\u044c, \u0432\u0440\u0435\u043c\u044f \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/s_\/uy\/rg\/s_uyrgqynxwdc4bu-_zztgr4koq.jpeg\" data-src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/s_\/uy\/rg\/s_uyrgqynxwdc4bu-_zztgr4koq.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>\u00a0<\/p>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0441\u0435\u0440\u0438\u044e \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439:<\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/companies\/serverspace\/articles\/817301\/\">\u0412 \u043e\u0431\u043b\u0430\u043a\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443: \u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 postgres. \u0414\u0430\u0439\u0442\u0435 \u0434\u0432\u0430<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/companies\/serverspace\/articles\/800801\/\">\u0412 \u043e\u0431\u043b\u0430\u043a\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443: \u0412\u0441\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u041e\u0421 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c 1\u0421 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0420\u0415\u0414 \u041e\u0421 8 \u0432 \u0434\u043e\u043c\u0435\u043d\u0435 windows. \u0420\u0435\u0446\u0435\u043f\u0442\u044b \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430<\/a><\/li>\n<li><a href=\"https:\/\/infostart.ru\/edu\/1970196\/\">\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0432\u0435\u0431\u0438\u043d\u0430\u0440 &#171;\u0412 \u043e\u0431\u043b\u0430\u043a\u0435, \u043a\u0430\u043a \u0434\u043e\u043c\u0430: \u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043c\u0435\u0441\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f 1\u0421 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0420\u0415\u0414 \u041e\u0421&#187;<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/789744\/\">\u0412 \u043e\u0431\u043b\u0430\u043a\u0435, \u043a\u0430\u043a \u0434\u043e\u043c\u0430: \u0423\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u043f\u043e\u0443\u0434\u043e\u0431\u043d\u0435\u0435. \u0420\u0430\u0431\u043e\u0447\u0435\u0435 \u043c\u0435\u0441\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f 1\u0421 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0420\u0415\u0414 \u041e\u0421 (HTTPS \u0438 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435)<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/782664\/\">\u0422\u0440\u0438 \u043f\u0438\u043d\u0433\u0432\u0438\u043d\u0430 \u043f\u043e\u0434 \u043e\u043a\u043d\u043e\u043c\u2026 \u041e\u0431\u0437\u043e\u0440 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043c\u0435\u0441\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f 1\u0421, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 linux<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/795955\/\">\u0422\u0440\u0438 \u043f\u0438\u043d\u0433\u0432\u0438\u043d\u0430 \u043f\u043e\u0434 \u043e\u043a\u043d\u043e\u043c\u2026 \u0422\u043e\u0447\u043a\u0438 \u043d\u0430\u0434 \u0401. \u041e\u0431\u0437\u043e\u0440 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043c\u0435\u0441\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f 1\u0421, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 linux<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/766824\/\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 1\u0421: \u0421\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u0417\u0430\u043c\u0435\u0442\u043a\u0438 \u043d\u0430 \u043f\u043e\u043b\u044f\u0445<\/a><\/li>\n<li><a href=\"https:\/\/infostart.ru\/public\/970225\/\">\u0421\u0435\u0440\u0432\u0435\u0440 1\u0421: \u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435 \u043d\u0430 Ubuntu 16.04 \u0438 PostgreSQL 9.6, \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0443\u0437\u043d\u0430\u0442\u044c \u0435\u0433\u043e \u0432\u043a\u0443\u0441. \u0420\u0435\u0446\u0435\u043f\u0442 \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430<\/a> \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0430\u0442\u0443 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438<\/li>\n<li><a href=\"https:\/\/infostart.ru\/1c\/articles\/1019971\/\">1\u0421 \u0432 1cloud.ru. \u0422\u0435\u043f\u043b\u043e\u0435, \u043b\u0430\u043c\u043f\u043e\u0432\u043e\u0435, \u0441\u0432\u043e\u0435<\/a>\u00a0\u043e\u0442\u0447\u0435\u0442 \u043e \u043f\u043e\u0445\u043e\u0434\u0435 \u0432 \u043f\u0438\u0442\u0435\u0440\u0441\u043a\u0438\u0439 \u043e\u0444\u0438\u0441\u00a0\u00a9<a href=\"https:\/\/infostart.ru\/redirect.php?url=aHR0cHM6Ly9zZXJ2ZXJzcGFjZS5ydS8=\">Serverspace<\/a>\u00a0\u043a\u043e\u0433\u0434\u0430 \u043e\u043d \u0435\u0449\u0435 \u043d\u0435 \u0431\u044b\u043b\u00a0Serverspace<\/li>\n<\/ul>\n<p>\u0421\u0435\u0440\u0438\u044f &#171;\u0420\u0435\u0446\u0435\u043f\u0442\u044b \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430&#187; \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439<\/p>\n<ul>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/532392\/\">\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u044d\u043a\u0437\u0430\u043c\u0435\u043d\u0443 1\u0421: \u0421\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 \u043f\u043e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435. \u0420\u0435\u0446\u0435\u043f\u0442\u044b \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430<\/a><\/li>\n<li><a href=\"https:\/\/habr.com\/ru\/articles\/556296\/\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Performance Monitor Windows Server. \u0420\u0435\u0446\u0435\u043f\u0442\u044b \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430<\/a><\/li>\n<li><a href=\"https:\/\/infostart.ru\/1c\/articles\/970225\/\">\u0421\u0435\u0440\u0432\u0435\u0440 1\u0421: \u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435 \u043d\u0430 Ubuntu 16.04 \u0438 PostgreSQL 9.6, \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0443\u0437\u043d\u0430\u0442\u044c \u0435\u0433\u043e \u0432\u043a\u0443\u0441. \u0420\u0435\u0446\u0435\u043f\u0442 \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430<\/a><\/li>\n<\/ul>\n<p>\u00a0<\/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\/822257\/\"> https:\/\/habr.com\/ru\/articles\/822257\/<\/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-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\u041e\u0434\u043d\u0430 \u0438\u0437 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0438\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439 \u0446\u0438\u043a\u043b\u0430 \u00ab\u0412 \u043e\u0431\u043b\u0430\u043a\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443:\u2026 \u0420\u0435\u0446\u0435\u043f\u0442\u044b \u043e\u0442 \u041a\u0430\u043f\u0438\u0442\u0430\u043d\u0430\u00bb \u0432 \u0445\u043e\u0434\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u043b \u0441\u043e\u0431\u0440\u0430\u043d \u043f\u043e\u043b\u043d\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u043d\u0442\u0443\u0440 1\u0421 \u0432 \u0441\u0435\u0442\u0438 \u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0420\u0435\u0434 \u041e\u0421. \u0421 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438, \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u043f\u0440\u043e\u0447\u0430\u044f \u043f\u0440\u043e\u0447\u0430\u044f\u2026 <br \/>  \u042d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0431\u043b\u044e\u0434\u043e, \u043d\u0430 \u0437\u0430\u043a\u0443\u0441\u043a\u0443 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c\u044e.<br \/>  \u0412 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u043b\u044f PostgreSQL, \u0437\u0430\u043e\u0434\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u043e \u043d\u043e\u0432\u043e\u043c\u0443.<br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/822257\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/8_\/zw\/ks\/8_zwksdxbd6pbpsins4tim5dwf0.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/8_\/zw\/ks\/8_zwksdxbd6pbpsins4tim5dwf0.jpeg\" data-blurred=\"true\"\/><\/div>\n<p><\/a><\/p>\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-379022","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/379022","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=379022"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/379022\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=379022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=379022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=379022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}