{"id":1672,"date":"2025-05-23T06:55:02","date_gmt":"2025-05-23T03:55:02","guid":{"rendered":"https:\/\/aristov.tech\/blog\/?p=1672"},"modified":"2025-05-23T10:41:29","modified_gmt":"2025-05-23T07:41:29","slug":"patroni-in-k8s","status":"publish","type":"post","link":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/","title":{"rendered":"Patroni in Kubernetes"},"content":{"rendered":"\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0432\u0435\u0431\u0438\u043d\u0430\u0440\u0430 \u201cPatroni in Kubernetes\u201d. \u0417\u0430\u043f\u0438\u0441\u044c \u0437\u0430\u043d\u044f\u0442\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432\u00a0<a href=\"https:\/\/youtu.be\/b3zyE8h4zHw\">youtube<\/a>,\u00a0<a href=\"https:\/\/rutube.ru\/video\/37042f0467f3f0d2395625c959c4cc43\/\">rutube\u00a0<\/a>\u0438\u00a0<a href=\"https:\/\/vkvideo.ru\/video-212716752_456239113\">VK\u0412\u0438\u0434\u0435\u043e<\/a>.<\/p>\n\n\n\n<p>\u041f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043f\u043e&nbsp;<a href=\"https:\/\/github.com\/aeuge\/aristov_tech\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n\n\n\n<p class=\"has-x-large-font-size\"><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u043a\u0430<\/strong><\/p>\n\n\n\n<p>\u0412 PostgreSQL \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 &#8212; HA (high availability). \u0412\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043c\u0430\u043b\u043e:<\/p>\n\n\n\n<p>\u0422\u0438\u043f\u044b \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f<\/li>\n\n\n\n<li>\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0430\u044f<\/li>\n<\/ul>\n\n\n\n<p>\u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430\u044f<\/li>\n\n\n\n<li>\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430\u044f<\/li>\n<\/ul>\n\n\n\n<p>\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043f\u043b\u0438\u043a\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Warm<\/li>\n\n\n\n<li>Hot<\/li>\n<\/ul>\n\n\n\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Mail.Ru Target, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043d\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 Highload. \u0415\u0441\u0442\u044c master \u0438 \u043f\u044f\u0442\u044c \u0440\u0435\u043f\u043b\u0438\u043a:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u0420\u0435\u043f\u043b\u0438\u043a\u0430 failover (sailover \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e)<\/li>\n\n\n\n<li>\u0420\u0435\u043f\u043b\u0438\u043a\u0430 \u0434\u043b\u044f \u0431\u044d\u043a\u0430\u043f\u043e\u0432 (\u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u043d\u0435\u0441\u0443\u0442 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443)<\/li>\n\n\n\n<li>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u043f\u043b\u0438\u043a \u0434\u043b\u044f OLTP \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/li>\n\n\n\n<li>\u0420\u0435\u043f\u043b\u0438\u043a\u0430 \u0434\u043b\u044f OLAP \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 &#8212; \u044d\u0442\u0438 \u0434\u0432\u0430 \u0432\u0438\u0434\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442\u044c!<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"473\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-1024x473.png\" alt=\"\" class=\"wp-image-1673\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-1024x473.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-300x138.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-768x355.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image.png 1265w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u042d\u0442\u043e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0430.<\/p>\n\n\n\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043a \u043b\u043e\u0430\u0434 \u0431\u0430\u043b\u0430\u043d\u0441\u0435\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0435\u0448. \u0414\u0430\u043b\u0435\u0435 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0411\u0414. \u0421\u043f\u043e\u0440\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 &#8212; \u0433\u0434\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c \u0431\u044d\u043a\u0435\u043d\u0434\u044b &#8212; \u043d\u0435\u0442 \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430, \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0438\u0445 \u0437\u0430 \u0434\u0435\u043c\u0438\u043b\u0438\u0442\u0430\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0437\u043e\u043d\u043e\u0439 \u0438\u043b\u0438 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-1.png\" alt=\"\" class=\"wp-image-1674\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-1.png 800w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-1-300x169.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-1-768x432.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f PRIMARY &#8212; \u043a\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c STANDBY \u0432 PRIMARY?<\/p>\n\n\n\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u0434\u0435\u043c\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 health check \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 STANDBY \u043d\u043e\u0434\u0443. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-2.png\" alt=\"\" class=\"wp-image-1675\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-2.png 800w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-2-300x169.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-2-768x432.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u041d\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u043e\u0431\u0440\u044b\u0432\u0435 \u0441\u0432\u044f\u0437\u0438? STANDBY \u0441\u0447\u0438\u0442\u0430\u0435\u0442, \u0447\u0442\u043e PRIMARY \u0443\u043c\u0435\u0440 \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-3.png\" alt=\"\" class=\"wp-image-1676\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-3.png 800w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-3-300x169.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-3-768x432.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0434\u0432\u0435 PRIMARY \u043d\u043e\u0434\u044b &#8212; <a href=\"https:\/\/en.wikipedia.org\/wiki\/Split-brain_(computing)\">\u0441\u043f\u043b\u0438\u0442\u0431\u0440\u0435\u0439\u043d<\/a>. \u0420\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-4.png\" alt=\"\" class=\"wp-image-1677\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-4.png 800w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-4-300x169.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-4-768x432.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u041c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044f &#8212; Witness &#8212; \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u044f\u0449\u0435\u0433\u043e \u043d\u043e\u0434\u044b \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-5.png\" alt=\"\" class=\"wp-image-1678\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-5.png 800w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-5-300x169.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-5-768x432.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u0438 \u0441\u043c\u0435\u0440\u0442\u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044f STANDBY \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u0442 \u0432 PRIMARY.<\/p>\n\n\n\n<p>\u041f\u0440\u0438 \u043e\u0431\u0440\u044b\u0432\u0435 \u0441\u0432\u044f\u0437\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0441\u043b\u0443\u0447\u0430\u044e \u0431\u0435\u0437 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0434\u0432\u0435 PRIMARY \u043d\u043e\u0434\u044b.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-6.png\" alt=\"\" class=\"wp-image-1679\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-6.png 800w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-6-300x169.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-6-768x432.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430, \u0430 \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430. \u0422\u043e\u0433\u0434\u0430 \u043b\u0438\u0434\u0435\u0440 \u043f\u0443\u0448\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 \u043d\u0435\u0433\u043e, \u0430 STANDBY \u0447\u0438\u0442\u0430\u0435\u0442 \u0441 \u043d\u0435\u0433\u043e. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c ETCD\/CONSUL\/ZOOKEEPER. \u041f\u0440\u0438 \u0441\u043c\u0435\u0440\u0442\u0438 PRIMARY \u0438\u043b\u0438 \u043e\u0431\u0440\u044b\u0432\u0435 \u0441\u0432\u044f\u0437\u0438 STANDBY \u043f\u043e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 (RAFT-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b) \u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u043b\u0438\u0434\u0435\u0440\u0441\u0442\u0432\u043e.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-7.png\" alt=\"\" class=\"wp-image-1680\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-7.png 800w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-7-300x169.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-7-768x432.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>PRIMARY \u043d\u043e\u0434\u0430 \u043f\u0443\u0448\u0438\u0442 \u043a\u043b\u044e\u0447, \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0446\u0430 \u0436\u0438\u0437\u043d\u0438 \u043a\u043b\u044e\u0447\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0433\u043e\u043d\u043a\u0430 \u0437\u0430 \u043b\u0438\u0434\u0435\u0440\u0441\u0442\u0432\u043e.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-9.png\" alt=\"\" class=\"wp-image-1682\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-9.png 800w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-9-300x169.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-9-768x432.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u0412\u0441\u044f \u0441\u0445\u0435\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043c\u043e\u043d\u043e\u0432 \u043d\u0430 Python.<\/p>\n\n\n\n<p class=\"has-x-large-font-size\"><strong>\u0413\u043e\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/strong><\/p>\n\n\n\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e, \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0438\u0437 \u043d\u0438\u0445 Open Source.<\/p>\n\n\n\n<p>HA:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/patroni.readthedocs.io\/en\/latest\/\">Patroni<\/a> (90% \u0440\u044b\u043d\u043a\u0430)<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/sorintlab\/stolon\">Stolon<\/a> (\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 9% \u0440\u044b\u043d\u043a\u0430)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.slony.info\/\">Slony<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/severalnines.com\/database-blog\/how-deploy-postgresql-high-availability\">ClusterControl<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.kubegres.io\/\">Kubegres<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.enterprisedb.com\/docs\/pgd\/4\/bdr\/\">Postgres-BDR<\/a> <\/li>\n\n\n\n<li><a href=\"https:\/\/www.citusdata.com\/\">CitusData<\/a> (\u0435\u0441\u0442\u044c \u0448\u0430\u0440\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438)<\/li>\n\n\n\n<li><a href=\"https:\/\/bucardo.org\/Bucardo\/\">Bucardo<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cockroachlabs.com\/\">CockroachDB<\/a> (\u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f NoSQL \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 PotgreSQL)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.yugabyte.com\/\">Yogabyte<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/blogs.vmware.com\/tanzu\/tanzu-greenplum\/\">Greenplum<\/a> (\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442)<\/li>\n\n\n\n<li><a href=\"https:\/\/arenadata.tech\/en\/\">Arenadata<\/a> (\u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 Arenadata)<\/li>\n<\/ul>\n\n\n\n<p class=\"has-x-large-font-size\">\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<strong> &#8212; Patroni<\/strong><\/p>\n\n\n\n<p>\u0418\u0437 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 90% \u0440\u044b\u043d\u043a\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 Patroni \u043e\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Zalando.<\/p>\n\n\n\n<p>\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0448\u0430\u0442\u044c \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0435 \u043f\u0440\u0438 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b.<\/p>\n\n\n\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0441\u0445\u0435\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Patroni. <\/p>\n\n\n\n<p>\u041d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0447\u0435\u0440\u0435\u0437 HAPROXY \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f master-slave, \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0432 ETCD, \u0430 \u0434\u0435\u043c\u043e\u043d\u044b \u043e\u0431\u0441\u0443\u0436\u0438\u0432\u0430\u044e\u0442 \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e\u0442 PostgreSQL. \u0421\u0442\u043e\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0435 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d HAPROXY.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"689\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-11-1024x689.png\" alt=\"\" class=\"wp-image-1684\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-11-1024x689.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-11-300x202.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-11-768x517.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-11.png 1050w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b Patroni \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"584\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/izobrazhenie-1024x584.png\" alt=\"\" class=\"wp-image-1739\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/izobrazhenie-1024x584.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/izobrazhenie-300x171.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/izobrazhenie-768x438.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/izobrazhenie-1536x876.png 1536w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/izobrazhenie.png 1736w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0421 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u043b\u0438\u0434\u0435\u0440 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0447\u0442\u043e \u043e\u043d \u043b\u0438\u0434\u0435\u0440, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u0438 \u0432\u0438\u0434\u044f\u0442, \u0447\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u0440\u043e\u0441\u0440\u043e\u0447\u0438\u043b\u0430\u0441\u044c, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0433\u043e\u043d\u043a\u0430 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043b\u0438\u0434\u0435\u0440\u0430. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u0430\u0441\u0442\u0435\u0440 \u0432\u0438\u0434\u0438\u0442, \u0447\u0442\u043e DCS \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c read only \u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f &#8212; \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a. \u041a\u043e\u0433\u0434\u0430 \u0441\u0432\u044f\u0437\u044c \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f &#8212; \u043e\u043d \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0442\u044c \u0440\u0435\u043f\u043b\u0438\u043a\u043e\u0439 \u0438 \u0434\u043e\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0438\u0435 \u0441 \u0442\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (\u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e) \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043a\u0430\u0442\u0438\u0442 \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043d\u043e\u0432\u0430.<\/p>\n\n\n\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Distributed_control_system\">DCS <\/a>(<em>distributed<\/em> control system):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ETCD (\u0438\u043b\u0438 Consul, Zookeeper) \u0445\u0440\u0430\u043d\u044f\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u043c, \u043a\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043b\u0438\u0434\u0435\u0440<\/li>\n\n\n\n<li>DCS \u0445\u0440\u0430\u043d\u0438\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/li>\n\n\n\n<li>\u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u0435\u0442\u0438<\/li>\n<\/ul>\n\n\n\n<p>\u041f\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\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 \u0441\u0442\u043e\u0438\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/STONITH\">STONITH<\/a> (\u043f\u0440\u0438\u043d\u0446\u0438\u043f, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u043e\u0434\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0438\u0437 \u0441\u0442\u0440\u043e\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u0438)<\/li>\n\n\n\n<li>watchdog (\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0448\u0435\u0439 \u043d\u043e\u0434\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/www.nomadproject.io\/\">Nomad by HashiCorp<\/a> )<\/li>\n<\/ul>\n\n\n\n<p>\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043e\u043c ETCD \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f consul.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.consul.io\/\">Consul<\/a>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Service check<\/li>\n\n\n\n<li>\u0415\u0441\u0442\u044c GUI<\/li>\n\n\n\n<li>\u0415\u0441\u0442\u044c \u0441\u0432\u043e\u0439 DNS<\/li>\n\n\n\n<li>Patroni \u043c\u043e\u0436\u0435\u0442 \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c master\/replica<\/li>\n\n\n\n<li>ETCD \u043f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0434\u0430\u0435\u0442 \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a\u043e\u0432\u0443\u044e \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0443 (\u043e\u0431\u044b\u0447\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0442\u0435 \u0436\u0435 \u043d\u043e\u0434\u044b, \u043a\u0443\u0434\u0430 \u0438 PostgreSQL)<\/li>\n<\/ul>\n\n\n\n<p>\u0421 \u0432\u0435\u0440\u0441\u0438\u0438 2.0 Patroni \u043d\u0430\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u0431\u043e\u0440\u044b \u043d\u043e\u0432\u043e\u0433\u043e \u043c\u0430\u0441\u0442\u0435\u0440\u0430 \u043f\u043e <a href=\"https:\/\/raft.github.io\">raft-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443<\/a> \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f etcd\/consul, \u043e\u0434\u043d\u0430\u043a\u043e \u0432 \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u044d\u0442\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u043b\u0430 \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u0430.<\/p>\n\n\n\n<p>CITUS \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u044e Patroni 3.0 \u0431\u0435\u0437 etcd. \u041f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u043d\u0430\u0435\u0442, \u0433\u0434\u0435 \u043b\u0435\u0436\u0430\u0442 \u0448\u0430\u0440\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"808\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-12-1024x808.png\" alt=\"\" class=\"wp-image-1685\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-12-1024x808.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-12-300x237.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-12-768x606.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-12.png 1090w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d Patroni<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PostgreSQL \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 etcd<\/li>\n\n\n\n<li>\u0414\u0435\u043c\u043e\u043d \u043d\u0430 Python \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0440\u044f\u0434\u043e\u043c \u0441 PostgreSQL (\u0435\u0434\u0438\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f)<\/li>\n\n\n\n<li>\u0414\u0435\u043c\u043e\u043d \u0443\u043c\u0435\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 etcd<\/li>\n\n\n\n<li>\u0414\u0435\u043c\u043e\u043d \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 promotion\/demotion<\/li>\n<\/ul>\n\n\n\n<p class=\"has-x-large-font-size\"><strong>DCS \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 ETCD<\/strong><\/p>\n\n\n\n<p>ETCD<strong> <\/strong>&#8212; \u044d\u0442\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0438\u0434\u0430 &#171;\u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&#187;<\/p>\n\n\n\n<p>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0435\u043c\u043e\u0432 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0432\u0438\u0434\u0435 \u043a\u043b\u044e\u0447\u0435\u0439 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430<\/li>\n\n\n\n<li>\u043f\u043e\u043b\u043d\u0430\u044f \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043d\u043e\u0434\u0430\u043c\u0438 \u0438 \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438<\/li>\n\n\n\n<li>\u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a, in-memory \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442<\/li>\n\n\n\n<li>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043a\u043e\u043d\u0441\u0435\u043d\u0441\u0443\u0441\u0430 RAFT<\/li>\n\n\n\n<li>\u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Go, \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439, \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e<\/li>\n<\/ul>\n\n\n\n<p>\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u043f\u0440\u043e\u0441\u0442\u043e\u0439 API \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 http + json<\/li>\n\n\n\n<li>\u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439<\/li>\n\n\n\n<li>\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 (watch) \u0438 \u0440\u0435\u0430\u043a\u0446\u0438\u044f \u043d\u0430 \u043d\u0438\u0445 (\u0432 \u044d\u0442\u043e\u043c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 Kubernetes)<\/li>\n\n\n\n<li>\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438<\/li>\n\n\n\n<li>\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/li>\n\n\n\n<li>B-tree \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0434\u043b\u044f \u043a\u043b\u044e\u0447\u0435\u0439<\/li>\n\n\n\n<li>\u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e ACID<\/li>\n<\/ul>\n\n\n\n<p>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 ETCD:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0437 3 \u043d\u043e\u0434<\/li>\n\n\n\n<li>\u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0430\u0441\u0442\u0435\u0440<\/li>\n\n\n\n<li>\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u0448\u0435\u0434\u0448\u0438\u0445 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f \u043d\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/etcd.io\/docs\/v2\/admin_guide\">\u0442\u0430\u0431\u043b\u0438\u0446\u0435<\/a> (\u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u0435\u0440\u0441\u0438\u044f API 3+)<\/li>\n\n\n\n<li>\u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u043e\u0434 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043e, \u043d\u043e \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043b\u044e\u0431\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0433\u043b\u0430\u0441\u0443\u044e\u0442 \u0432\u0441\u0435 \u043d\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/li>\n\n\n\n<li>\u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0437\u0430\u043f\u0438\u0441\u0438-\u0447\u0442\u0435\u043d\u0438\u044f (\u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430 \u0434\u0438\u0441\u043a) \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u0438\u0437\u0431\u0440\u0430\u043d\u0438\u044f\u043c \u043c\u0430\u0441\u0442\u0435\u0440\u0430<\/li>\n\n\n\n<li>\u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043b\u043e\u0445\u043e \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a\u043e\u0432\u0443\u044e \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0443 &#8212; \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u043d\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0443\u0436\u0435 \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0435 \u0412\u041c<\/li>\n\n\n\n<li><a href=\"https:\/\/www.crunchydata.com\/blog\/patroni-etcd-in-high-availability-environments\">\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 &#8212; 5 \u043d\u043e\u0434<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0430\u0441\u0442\u0435\u0440, \u0443 ETCD \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438\u0434\u0435\u0440.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"653\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-13-1024x653.png\" alt=\"\" class=\"wp-image-1686\" style=\"width:403px;height:auto\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-13-1024x653.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-13-300x191.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-13-768x490.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-13.png 1080w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-x-large-font-size\"><strong>Patroni<\/strong><\/p>\n\n\n\n<p class=\"has-large-font-size\">\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>patronictl<\/strong> &#8212; \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u043c<\/li>\n\n\n\n<li><strong>patronictl -c \/etc\/patroni.yml list<\/strong> (\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b, \u0433\u0434\u0435 \u043e\u043f\u0438\u0441\u0430\u043d \u043a\u043b\u0430\u0441\u0442\u0435\u0440)<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"231\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-14-1024x231.png\" alt=\"\" class=\"wp-image-1687\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-14-1024x231.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-14-300x68.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-14-768x174.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-14.png 1040w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0412\u0438\u0434\u043d\u043e \u0438\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u043d\u043e\u0434\u044b, \u0430\u0434\u0440\u0435\u0441\u0430, \u043b\u0438\u0434\u0435\u0440\u0430 \u0438 \u0442.\u0434.<\/p>\n\n\n\n<p class=\"has-large-font-size\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 Failover<\/p>\n\n\n\n<p>#systemctl stop patroni &#8212; \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c failover<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>30 \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430 \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0430 \u0432 DCS<\/li>\n\n\n\n<li>\u0414\u0430\u043b\u0435\u0435 Patroni \u0441\u0442\u0443\u0447\u0438\u0442\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u043e\u0434\u0443 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u0438 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442, \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d\u0430 \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u043c, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 WAL-\u043b\u043e\u0433\u0438 (\u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u043b\u0438\u0437\u043a\u0438 \u043e\u043d\u0438 \u043a \u043c\u0430\u0441\u0442\u0435\u0440\u0443). \u0412 \u0438\u0442\u043e\u0433\u0435, \u0435\u0441\u043b\u0438 WAL-\u043b\u043e\u0433\u0438 \u0443 \u0432\u0441\u0435\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435, \u0442\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/li>\n<\/ol>\n\n\n\n<p>\u0412\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u043e\u043f\u0440\u043e\u0441 \u043d\u043e\u0434 \u0438\u0434\u0451\u0442 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e.<\/p>\n\n\n\n<p class=\"has-large-font-size\">\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/p>\n\n\n\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 &#8212; <strong>patronictl -c \/etc\/patroni.yml edit-con\ufb01g<\/strong><\/p>\n\n\n\n<p>\u0420\u0443\u0447\u043d\u043e\u0439 Switchover &#8212; <strong>patronictl -c \/etc\/patroni.yml switchover<\/strong><\/p>\n\n\n\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 &#8212;<strong> patronictl -c \/etc\/patroni.yml restart postgres pg02<\/strong><\/p>\n\n\n\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0445 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/p>\n\n\n\n<p>\u0420\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f &#8212;<strong> patronictl -c \/etc\/patroni.yml reinit postgres pg03<\/strong><\/p>\n\n\n\n<p>\u0420\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043d\u043e\u0434\u0443 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435. \u0422.\u0435. \u043f\u043e \u0441\u0443\u0442\u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0434\u0430\u0442\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 pg_basebackup, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c create_replica_method<\/p>\n\n\n\n<p><a href=\"https:\/\/habr.com\/ru\/company\/oleg-bunin\/blog\/489206\/\">\u0418\u0441\u0442\u043e\u0440\u0438\u0438 \u0430\u0432\u0430\u0440\u0438\u0439 \u0441 Patroni, \u0438\u043b\u0438 \u041a\u0430\u043a \u0443\u0440\u043e\u043d\u0438\u0442\u044c PostgreSQL-\u043a\u043b\u0430\u0441\u0442\u0435\u0440<\/a><\/p>\n\n\n\n<p class=\"has-x-large-font-size\"><strong>\u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 Patroni<\/strong><\/p>\n\n\n\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 REST API 4.0.3 (\u0432\u0435\u0440\u0441\u0438\u0438 \u0440\u0430\u0441\u0442\u0443\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c), \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0448\u0438\u0440\u0435, \u0447\u0435\u043c \u0443 ctl<\/p>\n\n\n\n<p>\u0414\u043e\u0441\u0442\u0443\u043f \u0438\u0434\u0435\u0442 \u043f\u043e http, \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043e\u0442 \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u043e\u0432. \u0420\u0430\u043d\u0435\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u0431\u044b\u043b \u0431\u0435\u0437 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0434\u043e\u0441\u0442\u0443\u043f \u043c\u043e\u0433 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e. <a href=\"https:\/\/www.percona.com\/blog\/securing-patroni-rest-api-end-points-part-1\/\">\u041c\u043e\u0436\u043d\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f patroni<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"435\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-24.png\" alt=\"\" class=\"wp-image-1697\" style=\"width:384px;height:auto\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-24.png 848w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-24-300x154.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-24-768x394.png 768w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/patroni.readthedocs.io\/en\/latest\/rest_api.html\">\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/a><\/p>\n\n\n\n<p><strong>GET \/read-only<\/strong>: \u043a\u0430\u043a \u0438 \u0432\u044b\u0448\u0435\u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u0430\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430, \u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0442\u0430\u043a\u0436\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e.<\/p>\n\n\n\n<p><strong>GET \/synchronous<\/strong> \u0438\u043b\u0438 <strong>GET \/sync<\/strong>: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 HTTP-\u043a\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f 200, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0443\u0437\u0435\u043b Patroni \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439.<\/p>\n\n\n\n<p><strong>GET \/read-only-sync<\/strong>: \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0435, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e.<\/p>\n\n\n\n<p><strong>GET \/quorum<\/strong>: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 HTTP-\u043a\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f 200, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u0443\u0437\u0435\u043b Patroni \u0443\u043a\u0430\u0437\u0430\u043d \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0443\u0437\u043b\u0430 \u043a\u0432\u043e\u0440\u0443\u043c\u0430 \u0432 synchronous_standby_names \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0443\u0437\u043b\u0435.<\/p>\n\n\n\n<p><strong>GET \/read-only-quorum<\/strong>: \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0435, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0443\u0437\u0435\u043b.<\/p>\n\n\n\n<p><strong>GET \/asynchronous<\/strong> \u0438\u043b\u0438 <strong>GET \/async<\/strong>: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 HTTP-\u043a\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f 200, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0443\u0437\u0435\u043b Patroni \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439.<\/p>\n\n\n\n<p><strong>GET \/patroni<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"979\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-15.png\" alt=\"\" class=\"wp-image-1688\" style=\"width:502px;height:auto\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-15.png 703w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-15-215x300.png 215w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/figure>\n\n\n\n<p><strong>GET \/health:<\/strong> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 HTTP-\u043a\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f 200, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 PostgreSQL \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n\n\n\n<p><strong>GET \/liveness:<\/strong> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 HTTP-\u043a\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f 200, \u0435\u0441\u043b\u0438 \u0446\u0438\u043a\u043b \u0441\u0435\u0440\u0434\u0446\u0435\u0431\u0438\u0435\u043d\u0438\u044f Patroni \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0438 503, \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0431\u044b\u043b \u0431\u043e\u043b\u0435\u0435 ttl \u0441\u0435\u043a\u0443\u043d\u0434 \u043d\u0430\u0437\u0430\u0434 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043b\u0438 2*TTL \u043d\u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0435. \u041c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f livenessProbe.<\/p>\n\n\n\n<p><strong>GET \/readiness:<\/strong> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 HTTP-\u043a\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f 200, \u043a\u043e\u0433\u0434\u0430 \u0443\u0437\u0435\u043b Patroni \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043b\u0438\u0434\u0435\u0440 \u0438\u043b\u0438 \u043a\u043e\u0433\u0434\u0430 PostgreSQL \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0434\u043b\u044f readinessProbe, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 Kubernetes \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u043e\u0432 \u043b\u0438\u0434\u0435\u0440\u0430.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"754\" height=\"347\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-16.png\" alt=\"\" class=\"wp-image-1689\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-16.png 754w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-16-300x138.png 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/figure>\n\n\n\n<p><strong>GET \/metrics<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"830\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-17-1024x830.png\" alt=\"\" class=\"wp-image-1690\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-17-1024x830.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-17-300x243.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-17-768x622.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-17.png 1044w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>GET \/history<\/strong>: \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u043c\u0435\u043d\u044b \u0442\u0430\u0439\u043c\u043b\u0430\u0439\u043d\u043e\u0432 (\u0441\u043c\u0435\u043d\u044b \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043d\u043e\u0434\u044b)<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"668\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-18.png\" alt=\"\" class=\"wp-image-1691\" style=\"width:438px;height:auto\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-18.png 550w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-18-247x300.png 247w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n\n\n<p><strong>GET \/config<\/strong>: \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"691\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-19.png\" alt=\"\" class=\"wp-image-1692\" style=\"width:489px;height:auto\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-19.png 855w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-19-300x242.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-19-768x621.png 768w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><\/figure>\n\n\n\n<p><strong>PATCH \/config<\/strong>: \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u043d\u043b\u0430\u0439\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"570\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-20-1024x570.png\" alt=\"\" class=\"wp-image-1693\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-20-1024x570.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-20-300x167.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-20-768x427.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-20.png 1235w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\/switchover<br>\/failover<br>DELETE \/switchover &#8212; \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u043e\u0435 \u0440\u0443\u0447\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441 \u043c\u0430\u0441\u0442\u0435\u0440\u0430<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"81\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-21-1024x81.png\" alt=\"\" class=\"wp-image-1694\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-21-1024x81.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-21-300x24.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-21-768x61.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-21-1536x122.png 1536w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-21.png 1686w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"108\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-22-1024x108.png\" alt=\"\" class=\"wp-image-1695\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-22-1024x108.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-22-300x32.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-22-768x81.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-22-1536x162.png 1536w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-22.png 1631w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"106\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-23-1024x106.png\" alt=\"\" class=\"wp-image-1696\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-23-1024x106.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-23-300x31.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-23-768x80.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-23-1536x159.png 1536w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-23.png 1631w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>POST \/reload<\/strong><\/p>\n\n\n\n<p><strong>POST \/reinitialize<\/strong> &#8212; \u043f\u0435\u0440\u0435\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 pg_basebackup \u0438\u043b\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u044e\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e&nbsp; <a href=\"https:\/\/patroni.readthedocs.io\/en\/latest\/replica_bootstrap.html\">replica creation method<\/a><\/p>\n\n\n\n<p class=\"has-x-large-font-size\"><strong>PGBouncer<\/strong><\/p>\n\n\n\n<p>PgBouncer<strong> <\/strong>&#8212; \u043f\u0443\u043b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u044b\u0439 &#8212; 2 \u041a\u0431 \u043d\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435<\/li>\n\n\n\n<li>\u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0438\u043f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f: \u043d\u0430 \u0441\u0435\u0441\u0441\u0438\u044e, \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u0438\u043b\u0438 \u043a\u0430\u0436\u0434\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e<\/li>\n\n\n\n<li>\u043e\u043d\u043b\u0430\u0439\u043d-\u0440\u0435\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0431\u0435\u0437 \u0441\u0431\u0440\u043e\u0441\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439<\/li>\n<\/ul>\n\n\n\n<p><a href=\"https:\/\/scalegrid.io\/blog\/postgresql-connection-pooling-part-4-pgbouncer-vs-pgpool\/\">\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 c PGpool2<\/a><\/p>\n\n\n\n<p><a href=\"http:\/\/www.pgbouncer.org\/usage.html\">\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/a><\/p>\n\n\n\n<p class=\"has-x-large-font-size\"><strong>HAproxy<\/strong><\/p>\n\n\n\n<p>\u041f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c, \u0433\u0434\u0435 \u043d\u043e\u0434\u0430.<\/p>\n\n\n\n<p>\u041d\u0435\u043f\u043b\u043e\u0445\u043e \u0431\u044b \u0435\u0449\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <a href=\"https:\/\/www.haproxy.org\/\">HAPROXY <\/a>\u0434\u043b\u044f <a href=\"https:\/\/www.percona.com\/blog\/2018\/10\/02\/scaling-postgresql-using-connection-poolers-and-load-balancers-for-an-enterprise-grade-environment\">\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u043d\u0433\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/a><\/p>\n\n\n\n<p>\u0415\u0449\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0431\u0430\u043b\u0430\u043d\u0441\u0435\u0440\u043e\u0432:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0438\u043b\u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 GLB \u0432 \u043e\u0431\u043b\u0430\u043a\u043e \u0438\u043b\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b:<\/li>\n\n\n\n<li><a href=\"https:\/\/docs.nginx.com\/nginx\/admin-guide\/load-balancer\/http-load-balancer\/\">NGINX<\/a><\/li>\n\n\n\n<li><em>\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0445\u043e\u0441\u0442\u043e\u0432 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/em>\n<ul class=\"wp-block-list\">\n<li><em>jdbc:postgresql:\/\/node1,node2,node3\/postgres?targetServerType=master<\/em><\/li>\n\n\n\n<li><em>postgresql:\/\/host1:port2,host2:port2\/?target_session_attrs=read-write<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"has-x-large-font-size\"><strong>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b<\/strong><\/p>\n\n\n\n<p class=\"has-large-font-size\">1-\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n\n\n\n<p>\u0412\u0441\u0435 \u0438\u0434\u0443\u0442 \u043d\u0430 HAproxy, \u0434\u0430\u043b\u0435\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043d\u0430 PostgreSQL, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f Patroni. <\/p>\n\n\n\n<p>\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a: HAproxy &#8212; \u0435\u0434\u0438\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043e\u0442\u043a\u0430\u0437\u0430.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"916\" height=\"599\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-25.png\" alt=\"\" class=\"wp-image-1698\" style=\"width:503px;height:auto\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-25.png 916w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-25-300x196.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-25-768x502.png 768w\" sizes=\"auto, (max-width: 916px) 100vw, 916px\" \/><\/figure>\n\n\n\n<p class=\"has-large-font-size\">2-\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n\n\n\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c HAproxy. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u0434\u0432\u0435 \u0442\u043e\u0447\u043a\u0438 \u043e\u0442\u043a\u0430\u0437\u0430 &#8212; \u0438 HAproxy, \u0438 PgBouncer.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"774\" height=\"728\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-26.png\" alt=\"\" class=\"wp-image-1699\" style=\"width:405px;height:auto\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-26.png 774w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-26-300x282.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-26-768x722.png 768w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><\/figure>\n\n\n\n<p class=\"has-large-font-size\">3-\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n\n\n\n<p><a href=\"https:\/\/wiki.orionsoft.ru\/proximadb\/latest\/admin-guide\/\">\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0442 Orion Soft<\/a>. Keepalived &#8212; \u0435\u0434\u0438\u043d\u0430\u044f \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430, HAproxy \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445 (\u0442\u043e\u0436\u0435 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432), \u0434\u0430\u043b\u0435\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u043c\u0435\u043d\u0435\u043d \u043d\u0430 Odyssey, \u0435\u0449\u0451 \u043e\u0434\u0438\u043d HAproxy (\u0443\u0434\u0430\u043b\u0435\u043d \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438).<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"199\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-27-1024x199.png\" alt=\"\" class=\"wp-image-1700\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-27-1024x199.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-27-300x58.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-27-768x149.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-27-1536x299.png 1536w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-27.png 1950w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-large-font-size\"><a href=\"https:\/\/keepalived.readthedocs.io\/en\/latest\/software_design.html\">Keepalived<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/dasunhegoda.com\/how-to-setup-haproxy-with-keepalived\/833\/\">\u0417\u0430\u043f\u0443\u0441\u043a HAproxy \u0441 Keepalived<\/a><\/p>\n\n\n\n<p>\u041a\u043b\u0438\u0435\u043d\u0442\u044b \u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 IP, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u0440\u0436\u0430\u0442 \u0434\u0432\u0435 \u043d\u043e\u0434\u044b \u0441\u0440\u0430\u0437\u0443. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"934\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-30.png\" alt=\"\" class=\"wp-image-1703\" style=\"width:350px;height:auto\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-30.png 769w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-30-247x300.png 247w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/figure>\n\n\n\n<p>\u0412 \u0413\u0443\u0433\u043b \u043e\u0431\u043b\u0430\u043a\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432 \u042f\u043d\u0434\u0435\u043a\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n\n\n\n<p class=\"has-large-font-size\">4-\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/p>\n\n\n\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0442 AWS. \u0415\u0441\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 Load Balancer, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u043d\u0430\u0435\u0442, \u0433\u0434\u0435 HAproxy \u0438 PgBouncer. \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u0442\u0441\u044f<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"681\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-29-1024x681.png\" alt=\"\" class=\"wp-image-1702\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-29-1024x681.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-29-300x199.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-29-768x510.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-29.png 1300w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-x-large-font-size\"><strong>\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b<\/strong><\/p>\n\n\n\n<p class=\"has-large-font-size\">DBaaS<\/p>\n\n\n\n<p>\u041f\u043b\u044e\u0441\u044b:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0437\u0430 \u043f\u0430\u0440\u0443 \u043a\u043b\u0438\u043a\u043e\u0432 \u0432 GUI<\/li>\n\n\n\n<li>\u0431\u044d\u043a\u0430\u043f\u044b, \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0437\u0430 1 \u043d\u0430\u0436\u0430\u0442\u0438\u0435<\/li>\n<\/ul>\n\n\n\n<p>\u041c\u0438\u043d\u0443\u0441\u044b:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u0430\u044f \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c &#8212; \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438<\/li>\n\n\n\n<li>\u043d\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043d\u0430\u0434 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u043e\u043c<\/li>\n\n\n\n<li>\u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a<\/li>\n\n\n\n<li>\u0434\u0435\u0431\u0430\u0433 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u043d\u043e\u0433\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u043a\u0432\u0435\u0441\u0442<\/li>\n\n\n\n<li>\u043e\u0431\u044b\u0447\u043d\u043e HA \u0440\u0435\u043f\u043b\u0438\u043a\u0443 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a read \u0440\u0435\u043f\u043b\u0438\u043a\u0443<\/li>\n\n\n\n<li>\u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043c\u0443\u043b\u0442\u0438\u043a\u043b\u0430\u0443\u0434 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u0438 \u0434\u0430\u0436\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u0443 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430<\/li>\n\n\n\n<li>\u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 on premise<\/li>\n<\/ul>\n\n\n\n<p class=\"has-large-font-size\">Kubernetes<\/p>\n\n\n\n<p>\u041e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u043d\u0430\u0434 Docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0431\u0440\u0430\u0442\u044c \u0441\u043b\u043e\u0439 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u0438 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"488\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-31-1024x488.png\" alt=\"\" class=\"wp-image-1704\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-31-1024x488.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-31-300x143.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-31-768x366.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-31.png 1049w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>K8s \u0445\u0440\u0430\u043d\u0438\u0442 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432 \u0432\u0438\u0434\u0435 \u043d\u0430\u0431\u043e\u0440\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432, \u0430 \u043d\u0430\u0431\u043e\u0440 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 (\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432):<\/p>\n\n\n\n<p>1. \u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u0443\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c<\/p>\n\n\n\n<p>2. \u0421\u043b\u0443\u0448\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432<\/p>\n\n\n\n<p>K8s \u2013 \u044d\u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044f \u0442\u043e\u0433\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e yaml-\u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u0440\u043e\u0449\u0435 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043f\u043e\u0447\u0442\u0438 \u043d\u0430 100%. \u041f\u0440\u0438 \u0441\u0431\u043e\u0435 \u043e\u0434\u043d\u043e\u0439 \u0412\u041c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435. \u041f\u043e \u0441\u0443\u0442\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \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.<\/p>\n\n\n\n<p>\u0421\u043f\u043e\u0440\u043d\u044b\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f PostgreSQL \u0432 Kubernetes.<\/p>\n\n\n\n<p>\u0412 \u0441\u0445\u0435\u043c\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0435\u0441\u0442\u044c Kubernetes Master, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 API \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u041e\u043d \u0437\u043d\u0430\u0435\u0442, \u0433\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u043e\u0434\u044b, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442 Kubelet (\u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c).<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"734\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-32-1024x734.png\" alt=\"\" class=\"wp-image-1705\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-32-1024x734.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-32-300x215.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-32-768x550.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-32.png 1196w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0432 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u043c, \u0442\u0430\u043a \u0438 on premise \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435.<\/p>\n\n\n\n<p>\u041f\u043b\u044e\u0441\u044b &#8212; \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f HA \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u0441\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0443\u043b\u0435\u0440\u0430\u043c\u0438 \u0438 \u0442.\u0434., \u043e\u0431\u044b\u0447\u043d\u043e \u0435\u0441\u0442\u044c GUI \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0441\u0432\u043e\u0439 \u0440\u0435\u043b\u0438\u0437 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0432 <a href=\"https:\/\/helm.sh\/\">\u0447\u0430\u0440\u0442<\/a><\/li>\n\n\n\n<li><strong>cloud native<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/patroni.readthedocs.io\/en\/latest\/\">patroni<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/github.com\/sorintlab\/stolon\">stolon<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/severalnines.com\/database-blog\/how-deploy-postgresql-high-availability\">ClusterControl<\/a><\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b (\u0434\u043b\u044f YAML \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043d\u043e\u0432\u044b\u0439 \u0442\u0438\u043f \u0440\u0435\u0441\u0443\u0440\u0441\u0430 &#8212; postgresql)\n<ul class=\"wp-block-list\">\n<li>\u043e\u0442 <a href=\"https:\/\/github.com\/zalando\/postgres-operator\">\u0430\u0432\u0442\u043e\u0440\u043e\u0432<\/a> Patroni<\/li>\n\n\n\n<li>\u043e\u0442 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u043e\u0440\u0430 <a href=\"https:\/\/github.com\/CrunchyData\/postgres-operator\">Crunchy<\/a><\/li>\n\n\n\n<li>\u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u043e\u0440\u0430 <a href=\"https:\/\/cloudnative-pg.io\/\">EnterpriseDB<\/a><\/li>\n\n\n\n<li>\u043d\u0430 <a href=\"https:\/\/operatorhub.io\/?keyword=postgre\">\u0445\u0430\u0431\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432<\/a> 15 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043d\u0430 <a href=\"https:\/\/github.com\/zalando\/postgres-operator\">\u043f\u0440\u0438\u043c\u0435\u0440\u0435<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"733\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-33.png\" alt=\"\" class=\"wp-image-1706\" style=\"width:439px;height:auto\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-33.png 697w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-33-285x300.png 285w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<p>\u0414\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 Patroni.<\/p>\n\n\n\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/companies\/flant\/articles\/684202\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u0438 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"615\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-34-1024x615.png\" alt=\"\" class=\"wp-image-1707\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-34-1024x615.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-34-300x180.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-34-768x461.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-34.png 1181w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041f\u043b\u044e\u0441\u044b Kubernetes:<\/p>\n\n\n\n<p>\u0420\u0430\u0441\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c \u0438 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c<\/li>\n\n\n\n<li>\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 pod \u043c\u0435\u0436\u0434\u0443 \u043d\u043e\u0434\u0430\u043c\u0438<\/li>\n\n\n\n<li>\u0412\u044b\u0448\u0435 \u043f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f k8s<\/li>\n\n\n\n<li>\u041d\u0438\u0436\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f HA PostgreSQL, \u043d\u043e \u0432\u044b\u0448\u0435 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c<\/li>\n\n\n\n<li>\u041d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u0434\u043b\u044f On-premise<\/li>\n<\/ul>\n\n\n\n<p>\u041c\u0438\u043d\u0443\u0441\u044b Kubernetes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On-premise \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0442\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c 100% \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/li>\n\n\n\n<li>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 NVMe \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0448\u0435 CEPH \u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432<\/li>\n<\/ul>\n\n\n\n<p class=\"has-x-large-font-size\"><strong>\u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/aeuge\/aristov_tech\/blob\/main\/07%20%D0%9E%D0%A3%20patroni%20GKE.sql\">\u0421\u043a\u0440\u0438\u043f\u0442\u044b<\/a>, \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0430 github.<\/p>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 (3 \u043d\u043e\u0434\u044b, \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 5 \u043c\u0438\u043d\u0443\u0442):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>gcloud beta container --node-locations \"us-central1-c\"<\/code><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"295\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-35-1024x295.png\" alt=\"\" class=\"wp-image-1708\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-35-1024x295.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-35-300x86.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-35-768x221.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-35.png 1386w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"128\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-36-1024x128.png\" alt=\"\" class=\"wp-image-1709\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-36-1024x128.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-36-300x38.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-36-768x96.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-36.png 1375w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432 \u0433\u0443\u0433\u043b \u043e\u0431\u043b\u0430\u043a\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f, \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f.<\/p>\n\n\n\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gcloud container clusters list <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"57\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-37-1024x57.png\" alt=\"\" class=\"wp-image-1710\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-37-1024x57.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-37-300x17.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-37-768x42.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-37.png 1104w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get all <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"903\" height=\"69\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-38.png\" alt=\"\" class=\"wp-image-1711\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-38.png 903w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-38-300x23.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-38-768x59.png 768w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/figure>\n\n\n\n<p>\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get all -A <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-39-1024x618.png\" alt=\"\" class=\"wp-image-1712\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-39-1024x618.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-39-300x181.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-39-768x463.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-39.png 1255w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"573\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-40-1024x573.png\" alt=\"\" class=\"wp-image-1713\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-40-1024x573.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-40-300x168.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-40-768x430.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-40.png 1378w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0420\u0435\u0441\u0443\u0440\u0441\u044b \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl api-resources <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"609\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-41-1024x609.png\" alt=\"\" class=\"wp-image-1714\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-41-1024x609.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-41-300x178.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-41-768x457.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-41.png 1370w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0435\u0442 PostgreSQL. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0435\u0433\u043e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/mnt\/d\/download\ngit clone https:\/\/github.com\/zalando\/postgres-operator\ncd postgres-operator\nhelm install postgres-operator .\/charts\/postgres-operator<\/code><\/pre>\n\n\n\n<p>helm install \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"184\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-42-1024x184.png\" alt=\"\" class=\"wp-image-1715\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-42-1024x184.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-42-300x54.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-42-768x138.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-42.png 1260w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0447\u0442\u043e postgres \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u043b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl --namespace=default get pods -l \"app.kubernetes.io\/name=postgres-operator\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"52\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-43-1024x52.png\" alt=\"\" class=\"wp-image-1716\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-43-1024x52.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-43-300x15.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-43-768x39.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-43.png 1358w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0447\u0442\u043e \u0440\u0435\u0441\u0443\u0440\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl api-resources | grep postgres <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"59\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-44-1024x59.png\" alt=\"\" class=\"wp-image-1717\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-44-1024x59.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-44-300x17.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-44-768x45.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-44.png 1223w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>helm install postgres-operator-ui .\/charts\/postgres-operator-ui<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"173\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-45-1024x173.png\" alt=\"\" class=\"wp-image-1718\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-45-1024x173.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-45-300x51.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-45-768x130.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-45.png 1326w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl --namespace=default get pods -l \"app.kubernetes.io\/name=postgres-operator-ui\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"67\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-46-1024x67.png\" alt=\"\" class=\"wp-image-1719\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-46-1024x67.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-46-300x20.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-46-768x50.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-46.png 1379w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get all<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"332\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-47-1024x332.png\" alt=\"\" class=\"wp-image-1720\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-47-1024x332.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-47-300x97.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-47-768x249.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-47.png 1380w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043e\u0440\u0442\u0430 \u0434\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl port-forward svc\/postgres-operator-ui 8081:80<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"74\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-48-1024x74.png\" alt=\"\" class=\"wp-image-1721\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-48-1024x74.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-48-300x22.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-48-768x55.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-48.png 1137w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0421\u0441\u044b\u043b\u043a\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 &#8212; http:\/\/localhost:8081\/#new<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"536\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-49-1024x536.png\" alt=\"\" class=\"wp-image-1722\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-49-1024x536.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-49-300x157.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-49-768x402.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-49.png 1338w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 (\u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0438\u043c\u044f, \u0432\u0435\u0440\u0441\u0438\u044e, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u043e\u0432):<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"840\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-50.png\" alt=\"\" class=\"wp-image-1723\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-50.png 758w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-50-271x300.png 271w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><\/figure>\n\n\n\n<p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043f\u0443\u0441\u043a\u0430:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"296\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-53-1024x296.png\" alt=\"\" class=\"wp-image-1726\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-53-1024x296.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-53-300x87.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-53-768x222.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-53.png 1353w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0433\u0434\u0435 \u0447\u0442\u043e \u043b\u0435\u0436\u0438\u0442:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get all -o wide<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-54-1024x341.png\" alt=\"\" class=\"wp-image-1727\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-54-1024x341.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-54-300x100.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-54-768x256.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-54.png 1379w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043d\u043e\u0434\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get node gke-postgresoperator-default-pool-9cc4eb0f-57mq -o wide<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"78\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-55-1024x78.png\" alt=\"\" class=\"wp-image-1728\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-55-1024x78.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-55-300x23.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-55-768x58.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-55.png 1384w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0423 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0441\u0432\u043e\u0439 \u0434\u0438\u0441\u043a \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u043e\u0434\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gcloud compute disks list<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"152\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-56-1024x152.png\" alt=\"\" class=\"wp-image-1729\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-56-1024x152.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-56-300x44.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-56-768x114.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-56.png 1141w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl top node gke-postgresoperator-default-pool-9cc4eb0f-57mq<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"55\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-57-1024x55.png\" alt=\"\" class=\"wp-image-1730\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-57-1024x55.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-57-300x16.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-57-768x41.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-57.png 1273w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 postgres \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export PGPASSWORD=$(kubectl get secret postgres.minimal.credentials.postgresql.acid.zalan.do -o 'jsonpath={.data.password}' | base64 -d)<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>echo $PGPASSWORD<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"67\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-58-1024x67.png\" alt=\"\" class=\"wp-image-1731\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-58-1024x67.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-58-300x20.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-58-768x50.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-58.png 1375w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041f\u0440\u043e\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl port-forward service\/minimal-repl 5433:5432<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"67\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-59-1024x67.png\" alt=\"\" class=\"wp-image-1732\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-59-1024x67.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-59-300x20.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-59-768x51.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-59.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u0437\u043d\u0443\u0442\u0440\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>psql -U postgres -h localhost -p 5433 -W<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"231\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-60-1024x231.png\" alt=\"\" class=\"wp-image-1733\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-60-1024x231.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-60-300x68.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-60-768x173.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-60.png 1101w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"176\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-61-1024x176.png\" alt=\"\" class=\"wp-image-1734\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-61-1024x176.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-61-300x52.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-61-768x132.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-61.png 1315w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0417\u0430\u0439\u0434\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl exec -it pod\/minimal-0 -- bash<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0431\u043e\u0440\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl exec -it pod\/minimal-1 -- patronictl -c postgres.yml list<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"141\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-62-1024x141.png\" alt=\"\" class=\"wp-image-1735\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-62-1024x141.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-62-300x41.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-62-768x106.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-62.png 1074w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gcloud container clusters delete postgresoperator --zone us-central1-c<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"166\" src=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-63-1024x166.png\" alt=\"\" class=\"wp-image-1736\" srcset=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-63-1024x166.png 1024w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-63-300x49.png 300w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-63-768x124.png 768w, https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/image-63.png 1155w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u044e. \u041f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u041e\u0423!!! <\/p>\n\n\n\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0438\u0437 6 <a href=\"https:\/\/github.com\/aeuge\/aristov_tech\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 <\/a>\u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d.<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0432\u0435\u0431\u0438\u043d\u0430\u0440\u0430 \u201cPatroni in Kubernetes\u201d. \u0417\u0430\u043f\u0438\u0441\u044c \u0437\u0430\u043d\u044f\u0442\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432\u00a0youtube,\u00a0rutube\u00a0\u0438\u00a0VK\u0412\u0438\u0434\u0435\u043e. \u041f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043f\u043e&nbsp;\u0441\u0441\u044b\u043b\u043a\u0435. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0412 PostgreSQL \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 &#8212; HA (high availability). \u0412\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043c\u0430\u043b\u043e: \u0422\u0438\u043f\u044b \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438: \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438: \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043f\u043b\u0438\u043a\u0438: \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Mail.Ru Target, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043d\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 Highload. \u0415\u0441\u0442\u044c master \u0438 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1743,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[194,12,9,11],"tags":[379,370,358,376,380,339,16,377,66],"class_list":["post-1672","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-obuchenie-postgresql","category-optimizacziya-postgresql","category-upravlenie-postgresql","category-ustrojstvo-postgresql","tag-dbaas","tag-etcd","tag-haproxy","tag-k8s","tag-kubernetes","tag-patroni","tag-postgresql","tag-zookeeper","tag-obuchenie"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Patroni in Kubernetes - \u0411\u043b\u043e\u0433 \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL \u043e\u0442 \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u044f<\/title>\n<meta name=\"description\" content=\"\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 Etcd, Patroni, \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0445 \u0430\u0440\u0437\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0434\u043b\u044f PostgreSQL, kubernetes, K8s Operators.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Patroni in Kubernetes - \u0411\u043b\u043e\u0433 \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL \u043e\u0442 \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u044f\" \/>\n<meta property=\"og:description\" content=\"\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 Etcd, Patroni, \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0445 \u0430\u0440\u0437\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0434\u043b\u044f PostgreSQL, kubernetes, K8s Operators.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0411\u043b\u043e\u0433 \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL \u043e\u0442 \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u044f\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-23T03:55:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-23T07:41:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/bez-imeni.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2339\" \/>\n\t<meta property=\"og:image:height\" content=\"1269\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Maria\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"Maria\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"23 \u043c\u0438\u043d\u0443\u0442\u044b\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/\"},\"author\":{\"name\":\"Maria\",\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/#\\\/schema\\\/person\\\/6a152749a3dde76f19cc30db676d2310\"},\"headline\":\"Patroni in Kubernetes\",\"datePublished\":\"2025-05-23T03:55:02+00:00\",\"dateModified\":\"2025-05-23T07:41:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/\"},\"wordCount\":1936,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/#\\\/schema\\\/person\\\/05f3a04bf720ae4bf25ac99c4248d5e7\"},\"image\":{\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/bez-imeni.png\",\"keywords\":[\"dbaas\",\"etcd\",\"haproxy\",\"k8s\",\"Kubernetes\",\"patroni\",\"postgresql\",\"Zookeeper\",\"\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435\"],\"articleSection\":[\"\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 PostgreSQL\",\"\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f PostgreSQL\",\"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 PostgreSQL\",\"\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e PostgreSQL\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/\",\"url\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/\",\"name\":\"Patroni in Kubernetes - \u0411\u043b\u043e\u0433 \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL \u043e\u0442 \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u044f\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/bez-imeni.png\",\"datePublished\":\"2025-05-23T03:55:02+00:00\",\"dateModified\":\"2025-05-23T07:41:29+00:00\",\"description\":\"\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 Etcd, Patroni, \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0445 \u0430\u0440\u0437\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0434\u043b\u044f PostgreSQL, kubernetes, K8s Operators.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/#primaryimage\",\"url\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/bez-imeni.png\",\"contentUrl\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/bez-imeni.png\",\"width\":2339,\"height\":1269},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/patroni-in-k8s\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Patroni in Kubernetes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/\",\"name\":\"\u0411\u043b\u043e\u0433 \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL \u043e\u0442 \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u044f\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/#\\\/schema\\\/person\\\/05f3a04bf720ae4bf25ac99c4248d5e7\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/#\\\/schema\\\/person\\\/05f3a04bf720ae4bf25ac99c4248d5e7\",\"name\":\"admin2\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/blog-logo.png\",\"url\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/blog-logo.png\",\"contentUrl\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/blog-logo.png\",\"width\":180,\"height\":180,\"caption\":\"admin2\"},\"logo\":{\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/blog-logo.png\"},\"sameAs\":[\"https:\\\/\\\/aristov.tech\\\/blog\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/#\\\/schema\\\/person\\\/6a152749a3dde76f19cc30db676d2310\",\"name\":\"Maria\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a86c8edd49a73db805cc02e271f5fc126b109c146ad0d8976829c538b3b94ca4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a86c8edd49a73db805cc02e271f5fc126b109c146ad0d8976829c538b3b94ca4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a86c8edd49a73db805cc02e271f5fc126b109c146ad0d8976829c538b3b94ca4?s=96&d=mm&r=g\",\"caption\":\"Maria\"},\"url\":\"https:\\\/\\\/aristov.tech\\\/blog\\\/author\\\/maria\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Patroni in Kubernetes - \u0411\u043b\u043e\u0433 \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL \u043e\u0442 \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u044f","description":"\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 Etcd, Patroni, \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0445 \u0430\u0440\u0437\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0434\u043b\u044f PostgreSQL, kubernetes, K8s Operators.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/","og_locale":"ru_RU","og_type":"article","og_title":"Patroni in Kubernetes - \u0411\u043b\u043e\u0433 \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL \u043e\u0442 \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u044f","og_description":"\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 Etcd, Patroni, \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0445 \u0430\u0440\u0437\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0434\u043b\u044f PostgreSQL, kubernetes, K8s Operators.","og_url":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/","og_site_name":"\u0411\u043b\u043e\u0433 \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL \u043e\u0442 \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u044f","article_published_time":"2025-05-23T03:55:02+00:00","article_modified_time":"2025-05-23T07:41:29+00:00","og_image":[{"width":2339,"height":1269,"url":"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/bez-imeni.png","type":"image\/png"}],"author":"Maria","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"Maria","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"23 \u043c\u0438\u043d\u0443\u0442\u044b"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/#article","isPartOf":{"@id":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/"},"author":{"name":"Maria","@id":"https:\/\/aristov.tech\/blog\/#\/schema\/person\/6a152749a3dde76f19cc30db676d2310"},"headline":"Patroni in Kubernetes","datePublished":"2025-05-23T03:55:02+00:00","dateModified":"2025-05-23T07:41:29+00:00","mainEntityOfPage":{"@id":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/"},"wordCount":1936,"commentCount":0,"publisher":{"@id":"https:\/\/aristov.tech\/blog\/#\/schema\/person\/05f3a04bf720ae4bf25ac99c4248d5e7"},"image":{"@id":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/#primaryimage"},"thumbnailUrl":"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/bez-imeni.png","keywords":["dbaas","etcd","haproxy","k8s","Kubernetes","patroni","postgresql","Zookeeper","\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435"],"articleSection":["\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 PostgreSQL","\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f PostgreSQL","\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 PostgreSQL","\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e PostgreSQL"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/aristov.tech\/blog\/patroni-in-k8s\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/","url":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/","name":"Patroni in Kubernetes - \u0411\u043b\u043e\u0433 \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL \u043e\u0442 \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u044f","isPartOf":{"@id":"https:\/\/aristov.tech\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/#primaryimage"},"image":{"@id":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/#primaryimage"},"thumbnailUrl":"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/bez-imeni.png","datePublished":"2025-05-23T03:55:02+00:00","dateModified":"2025-05-23T07:41:29+00:00","description":"\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 Etcd, Patroni, \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0445 \u0430\u0440\u0437\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0434\u043b\u044f PostgreSQL, kubernetes, K8s Operators.","breadcrumb":{"@id":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/aristov.tech\/blog\/patroni-in-k8s\/"]}]},{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/#primaryimage","url":"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/bez-imeni.png","contentUrl":"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2025\/05\/bez-imeni.png","width":2339,"height":1269},{"@type":"BreadcrumbList","@id":"https:\/\/aristov.tech\/blog\/patroni-in-k8s\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/aristov.tech\/blog\/"},{"@type":"ListItem","position":2,"name":"Patroni in Kubernetes"}]},{"@type":"WebSite","@id":"https:\/\/aristov.tech\/blog\/#website","url":"https:\/\/aristov.tech\/blog\/","name":"\u0411\u043b\u043e\u0433 \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 PostgreSQL \u043e\u0442 \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u044f","description":"","publisher":{"@id":"https:\/\/aristov.tech\/blog\/#\/schema\/person\/05f3a04bf720ae4bf25ac99c4248d5e7"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/aristov.tech\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":["Person","Organization"],"@id":"https:\/\/aristov.tech\/blog\/#\/schema\/person\/05f3a04bf720ae4bf25ac99c4248d5e7","name":"admin2","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2023\/05\/blog-logo.png","url":"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2023\/05\/blog-logo.png","contentUrl":"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2023\/05\/blog-logo.png","width":180,"height":180,"caption":"admin2"},"logo":{"@id":"https:\/\/aristov.tech\/blog\/wp-content\/uploads\/2023\/05\/blog-logo.png"},"sameAs":["https:\/\/aristov.tech\/blog"]},{"@type":"Person","@id":"https:\/\/aristov.tech\/blog\/#\/schema\/person\/6a152749a3dde76f19cc30db676d2310","name":"Maria","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/secure.gravatar.com\/avatar\/a86c8edd49a73db805cc02e271f5fc126b109c146ad0d8976829c538b3b94ca4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a86c8edd49a73db805cc02e271f5fc126b109c146ad0d8976829c538b3b94ca4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a86c8edd49a73db805cc02e271f5fc126b109c146ad0d8976829c538b3b94ca4?s=96&d=mm&r=g","caption":"Maria"},"url":"https:\/\/aristov.tech\/blog\/author\/maria\/"}]}},"_links":{"self":[{"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/posts\/1672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/comments?post=1672"}],"version-history":[{"count":23,"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/posts\/1672\/revisions"}],"predecessor-version":[{"id":1767,"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/posts\/1672\/revisions\/1767"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/media\/1743"}],"wp:attachment":[{"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/media?parent=1672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/categories?post=1672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aristov.tech\/blog\/wp-json\/wp\/v2\/tags?post=1672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}