{"id":6763,"date":"2025-06-05T21:49:44","date_gmt":"2025-06-05T18:19:44","guid":{"rendered":"https:\/\/actobit.com\/actomag\/?p=6763"},"modified":"2025-06-05T21:49:44","modified_gmt":"2025-06-05T18:19:44","slug":"redis-sentinel","status":"publish","type":"post","link":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/","title":{"rendered":"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel"},"content":{"rendered":"<div id=\"model-response-message-contentr_c6bd4e7b23a9fb3d\" class=\"markdown markdown-main-panel stronger enable-updated-hr-color\" dir=\"rtl\">\n<p style=\"text-align: justify;\" data-sourcepos=\"7:1-7:382\">\u062f\u0631 \u062f\u0646\u06cc\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0645\u062f\u0631\u0646\u060c \u067e\u0627\u06cc\u062f\u0627\u0631\u06cc \u0648 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0628\u0627\u0644\u0627 (High Availability) \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0627\u0632 \u0627\u0647\u0645\u06cc\u062a \u062d\u06cc\u0627\u062a\u06cc \u0628\u0631\u062e\u0648\u0631\u062f\u0627\u0631 \u0627\u0633\u062a. \u0631\u062f\u06cc\u0633 (Redis) \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062f\u0631\u0648\u0646 \u062d\u0627\u0641\u0638\u0647\u200c\u0627\u06cc (in-memory) \u067e\u0631\u0633\u0631\u0639\u062a\u060c \u0646\u0642\u0634 \u06a9\u0644\u06cc\u062f\u06cc \u062f\u0631 \u0628\u0647\u0628\u0648\u062f \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627 \u0627\u06cc\u0641\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u0628\u0631\u0648\u0632 \u062e\u0637\u0627 \u062f\u0631 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647\u200c\u06cc \u0645\u0646\u0641\u0631\u062f \u0631\u062f\u06cc\u0633 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0645\u0646\u062c\u0631 \u0628\u0647 \u0627\u0632 \u062f\u0633\u062a\u0631\u0633 \u062e\u0627\u0631\u062c \u0634\u062f\u0646 \u06a9\u0644 \u0633\u0631\u0648\u06cc\u0633 \u0648 \u0627\u06cc\u062c\u0627\u062f \u0627\u062e\u062a\u0644\u0627\u0644 \u062f\u0631 \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0648\u062f.<\/p>\n<p style=\"text-align: justify;\" data-sourcepos=\"9:1-9:538\">\u0631\u062f\u06cc\u0633 \u0633\u0646\u062a\u06cc\u0646\u0644 (Redis Sentinel) \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u062a\u0648\u0632\u06cc\u0639\u200c\u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0646\u0638\u0627\u0631\u062a \u0628\u0631 \u0646\u0645\u0648\u0646\u0647\u200c\u0647\u0627\u06cc \u0631\u062f\u06cc\u0633 \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0641\u0631\u0622\u06cc\u0646\u062f \u062c\u0627\u0628\u062c\u0627\u06cc\u06cc \u062e\u0637\u0627 (failover) \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a. \u0628\u0647 \u0639\u0628\u0627\u0631\u062a \u0633\u0627\u062f\u0647\u200c\u062a\u0631\u060c \u0633\u0646\u062a\u06cc\u0646\u0644 \u0645\u0627\u0646\u0646\u062f \u06cc\u06a9 \u0646\u06af\u0647\u0628\u0627\u0646 \u0647\u0648\u0634\u06cc\u0627\u0631 \u0639\u0645\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u0628\u0647 \u0637\u0648\u0631 \u0645\u062f\u0627\u0648\u0645 \u0633\u0644\u0627\u0645\u062a \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc (master) \u0648 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u067e\u0634\u062a\u06cc\u0628\u0627\u0646 (replicas) \u0631\u062f\u06cc\u0633 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc \u062f\u0686\u0627\u0631 \u0645\u0634\u06a9\u0644 \u0634\u0648\u062f \u0648 \u0627\u0632 \u062f\u0633\u062a\u0631\u0633 \u062e\u0627\u0631\u062c \u06af\u0631\u062f\u062f\u060c \u0633\u0646\u062a\u06cc\u0646\u0644 \u0628\u0647 \u0633\u0631\u0639\u062a \u0648\u0627\u0631\u062f \u0639\u0645\u0644 \u0634\u062f\u0647\u060c \u06cc\u06a9\u06cc \u0627\u0632 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u067e\u0634\u062a\u06cc\u0628\u0627\u0646 \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc \u062c\u062f\u06cc\u062f \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0631\u062f\u0647 \u0648 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0633\u0627\u06cc\u0631 \u0627\u062c\u0632\u0627 \u0648 \u06a9\u0644\u0627\u06cc\u0646\u062a\u200c\u0647\u0627 \u0631\u0627 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f \u062a\u0627 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc \u062c\u062f\u06cc\u062f \u0645\u062a\u0635\u0644 \u0634\u0648\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\" data-sourcepos=\"11:1-11:351\">\u0627\u06cc\u0646 \u0641\u0631\u0622\u06cc\u0646\u062f \u062e\u0648\u062f\u06a9\u0627\u0631 \u062a\u0636\u0645\u06cc\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u062d\u062a\u06cc \u062f\u0631 \u0635\u0648\u0631\u062a \u0628\u0631\u0648\u0632 \u0645\u0634\u06a9\u0644 \u0628\u0631\u0627\u06cc \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc\u060c \u0633\u0631\u0648\u06cc\u0633 \u0631\u062f\u06cc\u0633 \u0628\u0627 \u062d\u062f\u0627\u0642\u0644 \u0648\u0642\u0641\u0647 \u0628\u0647 \u06a9\u0627\u0631 \u062e\u0648\u062f \u0627\u062f\u0627\u0645\u0647 \u062f\u0647\u062f \u0648 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0628\u0627\u0644\u0627 \u0628\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u06cc \u0634\u0645\u0627 \u0641\u0631\u0627\u0647\u0645 \u06af\u0631\u062f\u062f. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0633\u0646\u062a\u06cc\u0646\u0644 \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f \u062a\u0627 \u0627\u0632 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u062e\u0648\u062f \u062f\u0631 \u0628\u0631\u0627\u0628\u0631 \u062e\u0631\u0627\u0628\u06cc\u200c\u0647\u0627\u06cc \u0633\u062e\u062a\u200c\u0627\u0641\u0632\u0627\u0631\u06cc \u06cc\u0627 \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631\u06cc \u0645\u062d\u0627\u0641\u0638\u062a \u06a9\u0631\u062f\u0647 \u0648 \u062a\u062c\u0631\u0628\u0647\u200c\u06cc \u06a9\u0627\u0631\u0628\u0631\u06cc \u0628\u0647\u062a\u0631\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0646\u0647\u0627\u06cc\u06cc \u0628\u0647 \u0627\u0631\u0645\u063a\u0627\u0646 \u0628\u06cc\u0627\u0648\u0631\u06cc\u062f.<\/p>\n<h2 data-sourcepos=\"11:1-11:351\">\u0627\u0632 \u06a9\u062c\u0627 \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u0645\u061f<\/h2>\n<div id=\"model-response-message-contentr_9bb24ec88e3ff4c2\" class=\"markdown markdown-main-panel stronger enable-updated-hr-color\" dir=\"rtl\">\n<p style=\"text-align: justify;\" data-sourcepos=\"3:1-3:154\">\u0628\u0631\u0627\u06cc \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc Redis Sentinel \u0648 \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u0628\u0627 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0628\u0627\u0644\u0627\u060c \u0628\u0627\u06cc\u062f \u0686\u0646\u062f \u0645\u0631\u062d\u0644\u0647 \u0627\u0633\u0627\u0633\u06cc \u0631\u0627 \u0637\u06cc \u06a9\u0646\u06cc\u062f \u0648 \u062a\u0639\u062f\u0627\u062f \u0645\u0646\u0627\u0633\u0628\u06cc \u0645\u0627\u0634\u06cc\u0646 (\u0641\u06cc\u0632\u06cc\u06a9\u06cc \u06cc\u0627 \u0645\u062c\u0627\u0632\u06cc) \u062f\u0631 \u0646\u0638\u0631 \u0628\u06af\u06cc\u0631\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\" data-sourcepos=\"7:1-7:45\">\u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc Redis Sentinel \u0634\u0627\u0645\u0644 \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n<ol style=\"text-align: justify;\" data-sourcepos=\"9:1-18:0\">\n<li data-sourcepos=\"9:1-9:162\">\u0646\u0635\u0628 Redis: \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f Redis \u0631\u0627 \u0631\u0648\u06cc \u062a\u0645\u0627\u0645 \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0642\u0631\u0627\u0631 \u0627\u0633\u062a \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0633\u0631\u0648\u0631 Redis (master \u06cc\u0627 replica) \u06cc\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0641\u0631\u0622\u06cc\u0646\u062f Sentinel \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u0646\u062f\u060c \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f.<\/li>\n<li data-sourcepos=\"10:1-12:285\">\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0646\u0645\u0648\u0646\u0647\u200c\u0647\u0627\u06cc Redis \u0628\u0631\u0627\u06cc \u062a\u06a9\u062b\u06cc\u0631 (Replication):\n<ul data-sourcepos=\"11:5-12:285\">\n<li data-sourcepos=\"11:5-11:157\">\u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc (Master): \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 Redis \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0633\u0631\u0648\u0631 \u0645\u0633\u0626\u0648\u0644\u06cc\u062a \u067e\u0631\u062f\u0627\u0632\u0634 \u062a\u0645\u0627\u0645 \u0639\u0645\u0644\u06cc\u0627\u062a \u0646\u0648\u0634\u062a\u0646 (write) \u0631\u0627 \u0628\u0631 \u0639\u0647\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u062f\u0627\u0634\u062a.<\/li>\n<li data-sourcepos=\"12:5-12:285\">\u06cc\u06a9 \u06cc\u0627 \u0686\u0646\u062f \u0633\u0631\u0648\u0631 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646 (Replica): \u06cc\u06a9 \u06cc\u0627 \u0686\u0646\u062f \u0646\u0645\u0648\u0646\u0647 \u062f\u06cc\u06af\u0631 Redis \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646 \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0633\u0631\u0648\u0631\u0647\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0627\u0632 \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc \u06a9\u067e\u06cc (replicate) \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u0648 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0631\u0627\u06cc \u067e\u0631\u062f\u0627\u0632\u0634 \u0639\u0645\u0644\u06cc\u0627\u062a \u062e\u0648\u0627\u0646\u062f\u0646 (read) \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0628\u0631\u0627\u06cc \u062c\u0627\u0628\u062c\u0627\u06cc\u06cc \u062e\u0637\u0627 (failover) \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u0646\u062f.<\/li>\n<\/ul>\n<\/li>\n<li data-sourcepos=\"13:1-16:62\">\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0648 \u0627\u062c\u0631\u0627\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc Sentinel:\n<ul data-sourcepos=\"14:5-16:62\">\n<li data-sourcepos=\"14:5-14:86\">\u0641\u0627\u06cc\u0644\u200c\u0647\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc sentinel.conf \u0631\u0627 \u0628\u0631\u0627\u06cc \u0647\u0631 \u0641\u0631\u0622\u06cc\u0646\u062f Sentinel \u0627\u06cc\u062c\u0627\u062f \u0648 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f.<\/li>\n<li data-sourcepos=\"15:5-15:200\">\u062f\u0631 \u0647\u0631 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc\u060c \u0628\u0627\u06cc\u062f \u062d\u062f\u0627\u0642\u0644 \u06cc\u06a9 &#8220;monitor&#8221; \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0647 Sentinel \u0628\u06af\u0648\u06cc\u062f \u06a9\u062f\u0627\u0645 \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc \u0631\u0627 \u0646\u0638\u0627\u0631\u062a \u06a9\u0646\u062f\u060c \u0622\u062f\u0631\u0633 IP \u0648 \u067e\u0648\u0631\u062a \u0622\u0646\u060c \u0648 \u062a\u0639\u062f\u0627\u062f Sentinel\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u0639\u0644\u0627\u0645 \u062e\u0631\u0627\u0628\u06cc \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc (quorum) \u0644\u0627\u0632\u0645 \u0627\u0633\u062a.<\/li>\n<li data-sourcepos=\"16:5-16:62\">\u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc Sentinel \u0631\u0627 \u0631\u0648\u06cc \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627\u06cc \u062a\u0639\u06cc\u06cc\u0646 \u0634\u062f\u0647 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/li>\n<\/ul>\n<\/li>\n<li data-sourcepos=\"17:1-18:0\">\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0644\u0627\u06cc\u0646\u062a\u200c\u0647\u0627: \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u062e\u0648\u062f \u0631\u0627 \u0637\u0648\u0631\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u062c\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u0645\u0633\u062a\u0642\u06cc\u0645 \u0628\u0647 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 Redis \u062e\u0627\u0635\u060c \u0627\u0632 \u0637\u0631\u06cc\u0642 Sentinel\u0647\u0627 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0627\u0635\u0644\u06cc \u0641\u0639\u0644\u06cc \u0645\u062a\u0635\u0644 \u0634\u0648\u0646\u062f. \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647\u200c\u0647\u0627\u06cc \u06a9\u0644\u0627\u06cc\u0646\u062a Redis \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0627\u0632 \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f.<\/li>\n<\/ol>\n<h3 style=\"text-align: justify;\" data-sourcepos=\"19:1-19:31\">\u0628\u0647 \u0686\u0646\u062f \u0645\u0627\u0634\u06cc\u0646 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u0645\u061f<\/h3>\n<p style=\"text-align: justify;\" data-sourcepos=\"21:1-21:120\">\u062a\u0639\u062f\u0627\u062f \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0645\u06cc\u0632\u0627\u0646 \u062a\u062d\u0645\u0644 \u062e\u0637\u0627 \u0648 \u067e\u06cc\u0686\u06cc\u062f\u06af\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0634\u0645\u0627 \u0628\u0633\u062a\u06af\u06cc \u062f\u0627\u0631\u062f\u060c \u0627\u0645\u0627 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u06cc\u06a9 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u06a9\u0644\u06cc \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f:<\/p>\n<ul style=\"text-align: justify;\" data-sourcepos=\"23:1-44:0\">\n<li data-sourcepos=\"23:1-29:0\">\n<p data-sourcepos=\"23:3-23:46\">\u062d\u062f\u0627\u0642\u0644 \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u0645\u062c\u0645\u0648\u0639\u0647 \u067e\u0627\u06cc\u0647 (Basic Setup):<\/p>\n<ul data-sourcepos=\"24:5-29:0\">\n<li data-sourcepos=\"24:5-29:0\">\u06f3 \u0645\u0627\u0634\u06cc\u0646: \u0627\u06cc\u0646 \u062d\u062f\u0627\u0642\u0644 \u062a\u0639\u062f\u0627\u062f \u062a\u0648\u0635\u06cc\u0647 \u0634\u062f\u0647 \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u067e\u0627\u06cc\u062f\u0627\u0631 Sentinel \u0627\u0633\u062a. \u062f\u0644\u06cc\u0644 \u0627\u06cc\u0646 \u0627\u0645\u0631 \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 &#8220;split-brain&#8221; (\u0648\u0636\u0639\u062a\u06cc \u06a9\u0647 \u06af\u0631\u0648\u0647\u06cc \u0627\u0632 \u0646\u0648\u062f\u0647\u0627 \u0627\u0631\u062a\u0628\u0627\u0637\u0634\u0627\u0646 \u0628\u0627 \u06af\u0631\u0648\u0647 \u062f\u06cc\u06af\u0631 \u0642\u0637\u0639 \u0634\u062f\u0647 \u0648 \u0647\u0631 \u06af\u0631\u0648\u0647 \u0641\u06a9\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f \u062f\u06cc\u06af\u0631\u06cc \u0627\u0632 \u06a9\u0627\u0631 \u0627\u0641\u062a\u0627\u062f\u0647 \u0627\u0633\u062a) \u0648 \u062f\u0627\u0634\u062a\u0646 quorum \u0645\u0646\u0627\u0633\u0628 \u0628\u0631\u0627\u06cc \u062a\u0635\u0645\u06cc\u0645\u200c\u06af\u06cc\u0631\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f failover \u0627\u0633\u062a.\n<ul data-sourcepos=\"25:9-29:0\">\n<li data-sourcepos=\"25:9-25:55\">\u0645\u0627\u0634\u06cc\u0646 \u06f1: \u0627\u062c\u0631\u0627\u06cc \u0646\u0645\u0648\u0646\u0647 Redis \u0627\u0635\u0644\u06cc (Master).<\/li>\n<li data-sourcepos=\"26:9-26:62\">\u0645\u0627\u0634\u06cc\u0646 \u06f2: \u0627\u062c\u0631\u0627\u06cc \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 Redis \u067e\u0634\u062a\u06cc\u0628\u0627\u0646 (Replica).<\/li>\n<li data-sourcepos=\"27:9-27:157\">\u0645\u0627\u0634\u06cc\u0646 \u06f3: \u0627\u062c\u0631\u0627\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f Sentinel. (\u0645\u06cc\u200c\u062a\u0648\u0627\u0646 Sentinel \u0631\u0627 \u0631\u0648\u06cc \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627\u06cc Redis \u0647\u0645 \u0627\u062c\u0631\u0627 \u06a9\u0631\u062f\u060c \u0627\u0645\u0627 \u0628\u0631\u0627\u06cc \u062c\u062f\u0627\u0633\u0627\u0632\u06cc \u0628\u0647\u062a\u0631 \u0627\u0633\u062a \u0631\u0648\u06cc \u0645\u0627\u0634\u06cc\u0646 \u062c\u062f\u0627\u06af\u0627\u0646\u0647 \u0628\u0627\u0634\u062f).<\/li>\n<li data-sourcepos=\"28:9-29:0\">\u0646\u06a9\u062a\u0647: \u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648\u06cc \u062d\u062f\u0627\u0642\u0644\u060c \u0627\u06af\u0631 \u0645\u0627\u0634\u06cc\u0646 Sentinel \u0627\u0632 \u06a9\u0627\u0631 \u0628\u06cc\u0641\u062a\u062f\u060c \u0641\u0631\u0622\u06cc\u0646\u062f failover \u062e\u0648\u062f\u06a9\u0627\u0631 \u06a9\u0627\u0631 \u0646\u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li data-sourcepos=\"30:1-44:0\">\n<p data-sourcepos=\"30:3-30:90\">\u062a\u0648\u0635\u06cc\u0647 \u0634\u062f\u0647 \u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0628\u0627\u0644\u0627 \u0648 \u062a\u062d\u0645\u0644 \u062e\u0637\u0627\u06cc \u062e\u0648\u0628 (Recommended for High Availability):<\/p>\n<ul data-sourcepos=\"31:5-44:0\">\n<li data-sourcepos=\"31:5-31:269\">\n<p data-sourcepos=\"31:7-31:269\">\u062d\u062f\u0627\u0642\u0644 \u06f3 \u0645\u0627\u0634\u06cc\u0646 \u0628\u0631\u0627\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc Sentinel: \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 Sentinel \u062e\u0648\u062f\u0634 \u06cc\u06a9 \u0646\u0642\u0637\u0647 \u0634\u06a9\u0633\u062a (Single Point of Failure &#8211; SPOF) \u0646\u0628\u0627\u0634\u062f \u0648 \u0628\u062a\u0648\u0627\u0646\u062f \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f failover \u062a\u0635\u0645\u06cc\u0645\u200c\u06af\u06cc\u0631\u06cc \u06a9\u0646\u062f (\u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 quorum)\u060c \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u062d\u062f\u0627\u0642\u0644 \u06f3 \u0641\u0631\u0622\u06cc\u0646\u062f Sentinel \u0631\u0648\u06cc \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627\u06cc \u0645\u062c\u0632\u0627 \u0627\u062c\u0631\u0627 \u0634\u0648\u0646\u062f.<\/p>\n<\/li>\n<li data-sourcepos=\"32:5-36:0\">\n<p data-sourcepos=\"32:7-32:118\">\u062d\u062f\u0627\u0642\u0644 \u06f2 \u0645\u0627\u0634\u06cc\u0646 \u0628\u0631\u0627\u06cc \u0646\u0645\u0648\u0646\u0647\u200c\u0647\u0627\u06cc Redis (\u06f1 Master + \u06f1 Replica): \u0627\u06cc\u0646 \u062d\u062f\u0627\u0642\u0644 \u0628\u0631\u0627\u06cc \u062f\u0627\u0634\u062a\u0646 \u06cc\u06a9 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646 \u062c\u0647\u062a failover \u0627\u0633\u062a.<\/p>\n<ul data-sourcepos=\"33:9-36:0\">\n<li data-sourcepos=\"33:9-33:70\">\u0645\u0627\u0634\u06cc\u0646 \u06f1: \u0646\u0645\u0648\u0646\u0647 Redis \u0627\u0635\u0644\u06cc (Master) + \u06cc\u06a9 \u0641\u0631\u0622\u06cc\u0646\u062f Sentinel.<\/li>\n<li data-sourcepos=\"34:9-34:74\">\u0645\u0627\u0634\u06cc\u0646 \u06f2: \u0646\u0645\u0648\u0646\u0647 Redis \u067e\u0634\u062a\u06cc\u0628\u0627\u0646 (Replica) + \u06cc\u06a9 \u0641\u0631\u0622\u06cc\u0646\u062f Sentinel.<\/li>\n<li data-sourcepos=\"35:9-36:0\">\u0645\u0627\u0634\u06cc\u0646 \u06f3: \u0641\u0642\u0637 \u06cc\u06a9 \u0641\u0631\u0622\u06cc\u0646\u062f Sentinel.<\/li>\n<\/ul>\n<\/li>\n<li data-sourcepos=\"37:5-44:0\">\n<p data-sourcepos=\"37:7-37:42\">\u06cc\u06a9 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u062a\u062f\u0627\u0648\u0644 \u0648 \u0645\u0642\u0627\u0648\u0645\u200c\u062a\u0631:<\/p>\n<ul data-sourcepos=\"38:9-44:0\">\n<li data-sourcepos=\"38:9-38:35\">\u0645\u0627\u0634\u06cc\u0646 \u06f1: Redis Master<\/li>\n<li data-sourcepos=\"39:9-39:38\">\u0645\u0627\u0634\u06cc\u0646 \u06f2: Redis Replica 1<\/li>\n<li data-sourcepos=\"40:9-40:101\">\u0645\u0627\u0634\u06cc\u0646 \u06f3: Redis Replica 2 (\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc \u0627\u0645\u0627 \u0628\u0631\u0627\u06cc \u0627\u0641\u0632\u0627\u06cc\u0634 \u062a\u062d\u0645\u0644 \u062e\u0637\u0627 \u0648 \u062a\u0648\u0632\u06cc\u0639 \u0628\u0627\u0631 \u062e\u0648\u0627\u0646\u062f\u0646 \u0645\u0641\u06cc\u062f \u0627\u0633\u062a)<\/li>\n<li data-sourcepos=\"41:9-41:33\">\u0645\u0627\u0634\u06cc\u0646 \u06f4: Sentinel 1<\/li>\n<li data-sourcepos=\"42:9-42:33\">\u0645\u0627\u0634\u06cc\u0646 \u06f5: Sentinel 2<\/li>\n<li data-sourcepos=\"43:9-44:0\">\u0645\u0627\u0634\u06cc\u0646 \u06f6: Sentinel 3<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\" data-sourcepos=\"45:1-45:38\">\u0646\u06a9\u0627\u062a \u06a9\u0644\u06cc\u062f\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f \u062a\u0639\u062f\u0627\u062f \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627:<\/p>\n<ul style=\"text-align: justify;\" data-sourcepos=\"47:1-50:0\">\n<li data-sourcepos=\"47:1-47:497\">Quorum: \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 Sentinel \u0628\u062a\u0648\u0627\u0646\u062f \u06cc\u06a9 failover \u0631\u0627 \u0622\u063a\u0627\u0632 \u06a9\u0646\u062f\u060c \u0628\u0627\u06cc\u062f \u062a\u0639\u062f\u0627\u062f \u0645\u0634\u062e\u0635\u06cc \u0627\u0632 \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc Sentinel (\u06a9\u0647 \u0628\u0647 \u0622\u0646 quorum \u06af\u0641\u062a\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f) \u0628\u0627 \u0627\u0632 \u06a9\u0627\u0631 \u0627\u0641\u062a\u0627\u062f\u0646 master \u0645\u0648\u0627\u0641\u0642 \u0628\u0627\u0634\u0646\u062f. \u0645\u0642\u062f\u0627\u0631 quorum \u062f\u0631 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc Sentinel \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc\u200c\u0634\u0648\u062f (sentinel monitor &lt;master-name&gt; &lt;ip&gt; &lt;port&gt; &lt;quorum&gt;). \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 (\u062a\u0639\u062f\u0627\u062f \u06a9\u0644 Sentinel \u0647\u0627 \/ \u06f2) + \u06f1 \u062f\u0631 \u0646\u0638\u0631 \u06af\u0631\u0641\u062a\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u062a\u0627 \u0627\u06a9\u062b\u0631\u06cc\u062a \u0622\u0631\u0627 \u0631\u0627 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u0628\u0631\u0627\u06cc \u062f\u0627\u0634\u062a\u0646 \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u0642\u0627\u0628\u0644 \u0627\u0639\u062a\u0645\u0627\u062f\u060c \u0628\u0627\u06cc\u062f \u062a\u0639\u062f\u0627\u062f \u0641\u0631\u062f\u06cc \u0627\u0632 Sentinel \u0647\u0627 (\u0645\u062b\u0644\u0627\u064b \u06f3\u060c \u06f5\u060c &#8230;) \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/li>\n<li data-sourcepos=\"48:1-48:289\">\u062c\u062f\u0627\u0633\u0627\u0632\u06cc \u0641\u06cc\u0632\u06cc\u06a9\u06cc\/\u0645\u0646\u0637\u0642\u06cc: \u062a\u0627 \u062d\u062f \u0627\u0645\u06a9\u0627\u0646\u060c \u0646\u0645\u0648\u0646\u0647\u200c\u0647\u0627\u06cc Redis (master\/replica) \u0648 \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc Sentinel \u0631\u0627 \u0631\u0648\u06cc \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627\u06cc \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u06cc\u0627 \u0645\u062c\u0627\u0632\u06cc \u0645\u062c\u0632\u0627 \u0648 \u062d\u062a\u06cc \u062f\u0631 \u0635\u0648\u0631\u062a \u0627\u0645\u06a9\u0627\u0646 \u062f\u0631 Availability Zone \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 (\u062f\u0631 \u0645\u062d\u06cc\u0637\u200c\u0647\u0627\u06cc \u0627\u0628\u0631\u06cc) \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f \u062a\u0627 \u0627\u0632 \u062e\u0631\u0627\u0628\u06cc \u0647\u0645\u0632\u0645\u0627\u0646 \u0628\u0647 \u062f\u0644\u06cc\u0644 \u0645\u0634\u06a9\u0644\u0627\u062a \u0633\u062e\u062a\u200c\u0627\u0641\u0632\u0627\u0631\u06cc \u06cc\u0627 \u0634\u0628\u06a9\u0647 \u062f\u0631 \u06cc\u06a9 \u0646\u0642\u0637\u0647 \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0634\u0648\u062f.<\/li>\n<li data-sourcepos=\"49:1-50:0\">\u0645\u0646\u0627\u0628\u0639 \u0645\u0627\u0634\u06cc\u0646: \u0647\u0631 \u0646\u0645\u0648\u0646\u0647 Redis \u0648 \u0647\u0631 \u0641\u0631\u0622\u06cc\u0646\u062f Sentinel \u0628\u0647 \u0645\u0646\u0627\u0628\u0639 CPU\u060c \u062d\u0627\u0641\u0638\u0647 \u0648 \u0634\u0628\u06a9\u0647 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u062f. \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc Sentinel \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0645\u0646\u0627\u0628\u0639 \u0632\u06cc\u0627\u062f\u06cc \u0645\u0635\u0631\u0641 \u0646\u0645\u06cc\u200c\u06a9\u0646\u0646\u062f\u060c \u0627\u0645\u0627 \u0646\u0645\u0648\u0646\u0647\u200c\u0647\u0627\u06cc Redis\u060c \u0628\u0647 \u062e\u0635\u0648\u0635 Master\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0633\u062a\u0647 \u0628\u0647 \u062d\u062c\u0645 \u062f\u0627\u062f\u0647 \u0648 \u0628\u0627\u0631 \u06a9\u0627\u0631\u06cc\u060c \u0628\u0647 \u062d\u0627\u0641\u0638\u0647 \u0648 CPU \u0642\u0627\u0628\u0644 \u062a\u0648\u062c\u0647\u06cc \u0646\u06cc\u0627\u0632 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0646\u062f.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div id=\"model-response-message-contentr_2378b613a9b3a341\" class=\"markdown markdown-main-panel stronger enable-updated-hr-color\" dir=\"rtl\">\n<h2 data-sourcepos=\"1:1-1:66\">\u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc Redis Sentinel \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 (Ubuntu) \u0628\u0631\u0627\u06cc \u06f3 \u0645\u0627\u0634\u06cc\u0646 \u0645\u062c\u0632\u0627<\/h2>\n<p style=\"text-align: justify;\" data-sourcepos=\"3:1-3:95\">\u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627 \u0641\u0631\u0636 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u0634\u0645\u0627 \u06f5 \u0645\u0627\u0634\u06cc\u0646 \u0645\u062c\u0627\u0632\u06cc \u06cc\u0627 \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u0628\u0627 \u0633\u06cc\u0633\u062a\u0645\u200c\u0639\u0627\u0645\u0644 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u062f\u0631 \u0627\u062e\u062a\u06cc\u0627\u0631 \u062f\u0627\u0631\u06cc\u062f:<\/p>\n<ul data-sourcepos=\"5:1-7:0\">\n<li style=\"text-align: justify;\" data-sourcepos=\"5:1-5:78\"><strong>\u06f2 \u0645\u0627\u0634\u06cc\u0646 \u0628\u0631\u0627\u06cc \u0646\u0648\u062f\u0647\u0627\u06cc Redis:<\/strong> \u06cc\u06a9\u06cc \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 Master \u0648 \u062f\u06cc\u06af\u0631\u06cc \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 Replica.<\/li>\n<li style=\"text-align: justify;\" data-sourcepos=\"6:1-7:0\"><strong>\u06f3 \u0645\u0627\u0634\u06cc\u0646 \u0628\u0631\u0627\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc Redis Sentinel:<\/strong> \u0647\u0631 \u06a9\u062f\u0627\u0645 \u062f\u0631 \u06cc\u06a9 \u0646\u0642\u0637\u0647 \u0645\u062a\u0641\u0627\u0648\u062a \u0628\u0631\u0627\u06cc \u0627\u0641\u0632\u0627\u06cc\u0634 \u062a\u062d\u0645\u0644 \u062e\u0637\u0627.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\" data-sourcepos=\"8:1-8:133\">\u0647\u062f\u0641 \u0645\u0627 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06f3 \u0641\u0631\u0622\u06cc\u0646\u062f Sentinel \u0627\u0633\u062a \u06a9\u0647 \u0646\u0648\u062f Master \u0631\u0627 \u0646\u0638\u0627\u0631\u062a \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0635\u0648\u0631\u062a \u0628\u0631\u0648\u0632 \u0645\u0634\u06a9\u0644\u060c \u0641\u0631\u0622\u06cc\u0646\u062f failover \u0628\u0647 \u0646\u0648\u062f Replica \u0631\u0627 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\" data-sourcepos=\"10:1-10:15\"><strong>\u067e\u06cc\u0634\u200c\u0646\u06cc\u0627\u0632\u0647\u0627:<\/strong><\/p>\n<p>\u0646\u0635\u0628 Redis \u0631\u0648\u06cc \u062a\u0645\u0627\u0645 \u06f5 \u0645\u0627\u0634\u06cc\u0646:<\/p>\n<p dir=\"ltr\">#apt update<br \/>\n#apt install redis-server<\/p>\n<p style=\"text-align: justify;\">\u067e\u0633 \u0627\u0632 \u0646\u0635\u0628\u060c \u0633\u0631\u0648\u06cc\u0633 Redis \u0628\u0647 \u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0631\u0627\u06cc \u0646\u0648\u062f\u0647\u0627\u06cc Sentinel\u060c \u0645\u0627 \u0641\u0642\u0637 \u0628\u0647 \u0627\u0628\u0632\u0627\u0631 redis-sentinel \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u0645 \u06a9\u0647 \u0628\u0627 \u0647\u0645\u06cc\u0646 \u067e\u06a9\u06cc\u062c \u0646\u0635\u0628 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u063a\u06cc\u0631\u0636\u0631\u0648\u0631\u06cc \u0633\u0631\u0648\u06cc\u0633 \u06a9\u0627\u0645\u0644 Redis \u0631\u0648\u06cc \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627\u06cc Sentinel (\u0627\u06af\u0631 \u0641\u0642\u0637 \u0628\u0631\u0627\u06cc Sentinel \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f)\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0633\u0631\u0648\u06cc\u0633 redis-server \u0631\u0627 \u0631\u0648\u06cc \u0622\u0646 \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0648 \u0645\u062a\u0648\u0642\u0641 \u06a9\u0646\u06cc\u062f:<\/p>\n<p dir=\"ltr\">#systemctl stop redis-server<br \/>\n#systemctl disable redis-server<\/p>\n<\/div>\n<p><strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc Master \u0648 Replica:<\/strong><\/p>\n<div id=\"model-response-message-contentr_2378b613a9b3a341\" class=\"markdown markdown-main-panel stronger enable-updated-hr-color\" dir=\"rtl\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul data-sourcepos=\"23:5-38:0\">\n<li data-sourcepos=\"23:5-26:72\">\u0645\u0627\u0634\u06cc\u0646 Master (\u0645\u062b\u0644\u0627\u064b IP: 192.168.1.10):\n<ul data-sourcepos=\"24:9-26:72\">\n<li data-sourcepos=\"24:9-26:72\">\u0641\u0627\u06cc\u0644 redis.conf (\u0645\u0639\u0645\u0648\u0644\u0627\u064b \u062f\u0631 \/etc\/redis\/redis.conf) \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f:\n<ul data-sourcepos=\"25:13-26:72\">\n<li data-sourcepos=\"25:13-25:83\">bind 0.0.0.0 (\u06cc\u0627 IP \u0645\u0634\u062e\u0635 \u0645\u0627\u0634\u06cc\u0646 Master \u06a9\u0647 \u0627\u0632 \u0628\u06cc\u0631\u0648\u0646 \u0642\u0627\u0628\u0644 \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0627\u0634\u062f)<\/li>\n<li data-sourcepos=\"26:13-26:72\">\u0645\u0642\u062f\u0627\u0631 \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0628\u0631\u0627\u06cc requirepass \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0647\u0645\u0627\u0646 \u067e\u0633\u0648\u0631\u062f\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0627\u06cc\u062f \u062f\u0631 masterauth \u0633\u0631\u0648\u0631 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li data-sourcepos=\"27:5-32:112\">\u0645\u0627\u0634\u06cc\u0646 Replica (\u0645\u062b\u0644\u0627\u064b IP: 192.168.1.11):\n<ul data-sourcepos=\"28:9-32:112\">\n<li data-sourcepos=\"28:9-32:112\">\u0641\u0627\u06cc\u0644 redis.conf\u00a0\u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f:\n<ul data-sourcepos=\"29:13-32:112\">\n<li data-sourcepos=\"29:13-29:55\">bind 0.0.0.0 (\u06cc\u0627 IP \u0645\u0634\u062e\u0635 \u0645\u0627\u0634\u06cc\u0646 Replica)<\/li>\n<li data-sourcepos=\"30:13-30:62\">replicaof 192.168.1.10 6379 (IP \u0648 \u067e\u0648\u0631\u062a Master)<\/li>\n<li data-sourcepos=\"31:13-31:86\">(\u0627\u06af\u0631 \u0628\u0631\u0627\u06cc Master \u067e\u0633\u0648\u0631\u062f \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f) masterauth YOUR_MASTER_PASSWORD<\/li>\n<li data-sourcepos=\"32:13-32:112\">(\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc \u0648\u0644\u06cc \u062a\u0648\u0635\u06cc\u0647 \u0634\u062f\u0647) requirepass YOUR_REPLICA_PASSWORD\u00a0(\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u0627 \u067e\u0633\u0648\u0631\u062f Master \u0645\u062a\u0641\u0627\u0648\u062a \u0628\u0627\u0634\u062f)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li data-sourcepos=\"33:5-36:11\">\u0633\u0631\u0648\u06cc\u0633 Redis \u0631\u0627 \u0631\u0648\u06cc \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627\u06cc Master \u0648 Replica \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f:<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p dir=\"ltr\">#systemctl restart redis-server<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul data-sourcepos=\"23:5-38:0\">\n<li style=\"text-align: justify;\" data-sourcepos=\"37:5-38:0\">\u0628\u0627 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 Replica \u0627\u0632 \u0637\u0631\u06cc\u0642 redis-cli \u0648 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 INFO replication \u0627\u0632 \u0635\u062d\u062a \u0639\u0645\u0644\u06a9\u0631\u062f \u062a\u06a9\u062b\u06cc\u0631 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f. role \u0628\u0627\u06cc\u062f slave (\u06cc\u0627 replica) \u0648 master_link_status \u0628\u0627\u06cc\u062f up \u0628\u0627\u0634\u062f.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p data-sourcepos=\"39:1-39:39\"><strong>\u0645\u0631\u062d\u0644\u0647 \u06f1: \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0641\u0627\u06cc\u0644\u200c\u0647\u0627\u06cc Sentinel<\/strong><\/p>\n<p style=\"text-align: justify;\">\u0631\u0648\u06cc \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0633\u0647 \u0645\u0627\u0634\u06cc\u0646 Sentinel (\u0645\u062b\u0644\u0627\u064b \u0628\u0627 IP \u0647\u0627\u06cc \u06f1\u06f9\u06f2.\u06f1\u06f6\u06f8.\u06f1.\u06f2\u06f0, \u06f1\u06f9\u06f2.\u06f1\u06f6\u06f8.\u06f1.\u06f2\u06f1, \u06f1\u06f9\u06f2.\u06f1\u06f6\u06f8.\u06f1.\u06f2\u06f2)\u060c \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0628\u0631\u0627\u06cc Sentinel \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0646\u0627\u0645 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 sentinel.conf \u0627\u0633\u062a. \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u062f\u0631 \/etc\/redis\/ \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u06cc\u0627 \u06cc\u06a9 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u062c\u062f\u0627\u06af\u0627\u0646\u0647 \u0628\u0631\u0627\u06cc \u0622\u0646 \u062f\u0631 \u0646\u0638\u0631 \u0628\u06af\u06cc\u0631\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0645\u062d\u062a\u0648\u06cc\u0627\u062a \u0641\u0627\u06cc\u0644 sentinel.conf \u0628\u0631\u0627\u06cc \u0647\u0631 \u0633\u0647 \u0645\u0627\u0634\u06cc\u0646 Sentinel \u0628\u0633\u06cc\u0627\u0631 \u0634\u0628\u06cc\u0647 \u0628\u0647 \u0647\u0645 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f\u060c \u0628\u0647 \u062e\u0635\u0648\u0635 \u0628\u062e\u0634 sentinel monitor.<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">#vim \/etc\/redis\/sentinel.conf<\/p>\n<\/div>\n<p dir=\"ltr\">\n\t\t<div class=\"clearfix\"><\/div>\n\t\t<div class=\"toggle tie-sc-close\">\n\t\t\t<h3 class=\"toggle-head\">sentinel.conf <span class=\"fa fa-angle-down\" aria-hidden=\"true\"><\/span><\/h3>\n\t\t\t<div class=\"toggle-content\">\n<p dir=\"ltr\">port 26379<\/p>\n<p dir=\"ltr\">dir &#8220;\/var\/lib\/redis&#8221;<\/p>\n<p dir=\"ltr\">sentinel monitor mymaster 192.168.1.10 6379 2<\/p>\n<p dir=\"ltr\">sentinel down-after-milliseconds mymaster 30000<\/p>\n<p dir=\"ltr\">sentinel parallel-syncs mymaster 1<\/p>\n<p dir=\"ltr\">sentinel failover-timeout mymaster 180000<\/p>\n<p dir=\"ltr\"># sentinel auth-pass mymaster YOUR_MASTER_PASSWORD<\/p>\n<p dir=\"ltr\">logfile &#8220;\/var\/log\/redis\/sentinel.log&#8221;<\/p>\n<p dir=\"ltr\"># daemonize yes<\/p>\n<p dir=\"ltr\">\n\t\t\t<\/div>\n\t\t<\/div>\n\t\n<p style=\"text-align: justify;\">\u0646\u06a9\u0627\u062a \u0645\u0647\u0645 \u0628\u0631\u0627\u06cc \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc:<\/p>\n<ul>\n<li style=\"text-align: justify;\">\u0645\u0642\u062f\u0627\u0631 sentinel monitor mymaster 192.168.1.10 6379 2 \u062f\u0631 \u0641\u0627\u06cc\u0644 sentinel.conf \u0647\u0631 \u0633\u0647 \u0645\u0627\u0634\u06cc\u0646 Sentinel \u0628\u0627\u06cc\u062f \u06cc\u06a9\u0633\u0627\u0646 \u0628\u0627\u0634\u062f. \u0627\u06cc\u0646\u06af\u0648\u0646\u0647 Sentinel\u0647\u0627 \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u0631\u0627 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0645\u0648\u0631\u062f \u0648\u0636\u0639\u06cc\u062a Master \u0628\u0647 \u062a\u0648\u0627\u0641\u0642 \u0645\u06cc\u200c\u0631\u0633\u0646\u062f.<\/li>\n<li style=\"text-align: justify;\">\u0622\u062f\u0631\u0633 IP \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u062f\u0631 sentinel monitor (192.168.1.10) \u0628\u0627\u06cc\u062f \u0622\u062f\u0631\u0633 IP \u0648\u0627\u0642\u0639\u06cc \u0648 \u0642\u0627\u0628\u0644 \u062f\u0633\u062a\u0631\u0633\u06cc \u0633\u0631\u0648\u0631 Master \u0634\u0645\u0627 \u0628\u0627\u0634\u062f.<\/li>\n<li style=\"text-align: justify;\">\u0645\u0642\u062f\u0627\u0631 quorum \u0628\u0631\u0627\u0628\u0631 \u0628\u0627 \u06f2 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0639\u0646\u06cc \u0627\u0633\u062a \u06a9\u0647 \u062d\u062f\u0627\u0642\u0644 \u062f\u0648 Sentinel \u0627\u0632 \u0633\u0647 Sentinel \u0628\u0627\u06cc\u062f \u062a\u0634\u062e\u06cc\u0635 \u062f\u0647\u0646\u062f \u06a9\u0647 Master \u0627\u0632 \u06a9\u0627\u0631 \u0627\u0641\u062a\u0627\u062f\u0647 \u062a\u0627 \u0641\u0631\u0622\u06cc\u0646\u062f failover \u0622\u063a\u0627\u0632 \u0634\u0648\u062f. \u0627\u06cc\u0646 \u0627\u0632 \u062a\u0635\u0645\u06cc\u0645\u200c\u06af\u06cc\u0631\u06cc\u200c\u0647\u0627\u06cc \u0646\u0627\u062f\u0631\u0633\u062a \u062f\u0631 \u0635\u0648\u0631\u062a \u0645\u0634\u06a9\u0644\u0627\u062a \u0634\u0628\u06a9\u0647\u200c\u0627\u06cc \u0645\u0648\u0642\u062a \u0628\u0631\u0627\u06cc \u06cc\u06a9 Sentinel \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<li style=\"text-align: justify;\">\u0627\u06af\u0631 \u0628\u0631\u0627\u06cc Master \u06cc\u0627 Replica \u067e\u0633\u0648\u0631\u062f (requirepass) \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f\u060c \u062d\u062a\u0645\u0627\u064b \u0627\u0632 sentinel auth-pass mymaster YOUR_MASTER_PASSWORD (\u0648 \u062f\u0631 \u0635\u0648\u0631\u062a \u0644\u0632\u0648\u0645 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0645\u0634\u0627\u0628\u0647 \u0628\u0631\u0627\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0628\u0627 replica\u0647\u0627 \u0627\u06af\u0631 \u0622\u0646\u0647\u0627 \u0646\u06cc\u0632 \u067e\u0633\u0648\u0631\u062f \u062f\u0627\u0631\u0646\u062f \u0648 Sentinel \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062a\u063a\u06cc\u06cc\u0631 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a\u0634\u0627\u0646 \u062f\u0627\u0631\u062f) \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/li>\n<\/ul>\n<div id=\"model-response-message-contentr_2378b613a9b3a341\" class=\"markdown markdown-main-panel stronger enable-updated-hr-color\" dir=\"rtl\">\n<h3 data-sourcepos=\"93:1-93:58\">\u0645\u0631\u062d\u0644\u0647 \u06f2: \u0627\u06cc\u062c\u0627\u062f \u0633\u0631\u0648\u06cc\u0633 Systemd \u0628\u0631\u0627\u06cc Sentinel<\/h3>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0622\u0633\u0627\u0646\u200c\u062a\u0631 \u0641\u0631\u0622\u06cc\u0646\u062f Sentinel (\u0634\u0631\u0648\u0639\u060c \u062a\u0648\u0642\u0641\u060c \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a \u0648 \u0627\u062c\u0631\u0627\u06cc \u062e\u0648\u062f\u06a9\u0627\u0631 \u067e\u0633 \u0627\u0632 \u0628\u0648\u062a)\u060c \u0628\u0647\u062a\u0631 \u0627\u0633\u062a \u06cc\u06a9 \u0633\u0631\u0648\u06cc\u0633 systemd \u0628\u0631\u0627\u06cc \u0622\u0646 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0631\u0648\u06cc \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0633\u0647 \u0645\u0627\u0634\u06cc\u0646 Sentinel\u060c \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0633\u0631\u0648\u06cc\u0633 \u062f\u0631 \u0645\u0633\u06cc\u0631 \u0632\u06cc\u0631 \u0628\u0627 \u0645\u062d\u062a\u0648\u0627\u06cc \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<p dir=\"ltr\">#vim \/etc\/systemd\/system\/redis-sentinel.service<\/p>\n<p dir=\"ltr\">\n\t\t<div class=\"clearfix\"><\/div>\n\t\t<div class=\"toggle tie-sc-close\">\n\t\t\t<h3 class=\"toggle-head\">redis-sentinel.service <span class=\"fa fa-angle-down\" aria-hidden=\"true\"><\/span><\/h3>\n\t\t\t<div class=\"toggle-content\">\n<p dir=\"ltr\">[Unit]\nDescription=Redis Sentinel<br \/>\nAfter=network.target<\/p>\n<p dir=\"ltr\">[Service]\nUser=redis<br \/>\nGroup=redis<\/p>\n<p dir=\"ltr\">ExecStart=\/usr\/bin\/redis-server \/etc\/redis\/sentinel.conf &#8211;sentinel<br \/>\nExecStop=\/bin\/kill -s TERM $MAINPID<br \/>\nRestart=always<\/p>\n<p dir=\"ltr\">[Install]\nWantedBy=multi-user.target<\/p>\n<p dir=\"ltr\">\n\t\t\t<\/div>\n\t\t<\/div>\n\t\n<p dir=\"ltr\">#chown redis:redis sentinel.conf<br \/>\n#touch \/var\/log\/redis\/sentinel.log<br \/>\n#chown redis:adm \/var\/log\/redis\/sentinel.log<br \/>\n#systemctl daemon-reload<br \/>\n#systemctl start redis-sentinel<br \/>\n#systemctl enable redis-sentinel<\/p>\n<h3>\u0645\u0631\u062d\u0644\u0647 \u06f3: \u0628\u0631\u0631\u0633\u06cc \u0648\u0636\u0639\u06cc\u062a Sentinel \u0647\u0627<\/h3>\n<p style=\"text-align: justify;\">\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc Sentinel \u0647\u0627 \u0631\u0648\u06cc \u0633\u0647 \u0645\u0627\u0634\u06cc\u0646\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0648\u0636\u0639\u06cc\u062a \u0622\u0646\u200c\u0647\u0627 \u0648 \u0646\u0638\u0627\u0631\u062a \u0628\u0631 Master \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f. \u0631\u0648\u06cc \u0647\u0631 \u06cc\u06a9 \u0627\u0632 \u0645\u0627\u0634\u06cc\u0646\u200c\u0647\u0627\u06cc Sentinel\u060c \u0627\u0632 redis-cli \u0628\u0631\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u067e\u0648\u0631\u062a Sentinel (\u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u06f2\u06f6\u06f3\u06f7\u06f9) \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<p dir=\"ltr\">#redis-cli -p 26379<\/p>\n<p>\u0633\u067e\u0633 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<ul>\n<li>ping: \u0628\u0627\u06cc\u062f \u067e\u0627\u0633\u062e PONG \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u06cc\u062f.<\/li>\n<li>sentinel masters: \u0627\u0637\u0644\u0627\u0639\u0627\u062a Master \u062a\u062d\u062a \u0646\u0638\u0627\u0631\u062a \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f. \u0628\u0627\u06cc\u062f \u0646\u0627\u0645 mymaster \u0648 \u0648\u0636\u0639\u06cc\u062a \u0622\u0646 \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f. \u0628\u0647 \u0641\u06cc\u0644\u062f\u0647\u0627\u06cc num-slaves (\u0628\u0627\u06cc\u062f \u06f1 \u0628\u0627\u0634\u062f) \u0648 num-other-sentinels (\u0628\u0627\u06cc\u062f \u06f2 \u0628\u0627\u0634\u062f\u060c \u0646\u0634\u0627\u0646\u200c\u062f\u0647\u0646\u062f\u0647 \u062f\u0648 Sentinel \u062f\u06cc\u06af\u0631) \u062a\u0648\u062c\u0647 \u06a9\u0646\u06cc\u062f.<\/li>\n<li>sentinel slaves mymaster: \u0627\u0637\u0644\u0627\u0639\u0627\u062a Replica(\u0647\u0627\u06cc) \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 mymaster \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/li>\n<li>sentinel sentinels mymaster: \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0633\u0627\u06cc\u0631 Sentinel\u0647\u0627\u06cc\u06cc \u06a9\u0647 mymaster \u0631\u0627 \u0646\u0638\u0627\u0631\u062a \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f\u060c \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/li>\n<\/ul>\n<p>\u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0644\u0627\u06af \u0641\u0627\u06cc\u0644 Sentinel (\u0645\u062b\u0644\u0627\u064b \/var\/log\/redis\/sentinel.log) \u0631\u0627 \u0628\u0631\u0627\u06cc \u0645\u0634\u0627\u0647\u062f\u0647 \u067e\u06cc\u0627\u0645\u200c\u0647\u0627 \u0648 \u0631\u0648\u06cc\u062f\u0627\u062f\u0647\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f. \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u067e\u06cc\u0627\u0645\u200c\u0647\u0627\u06cc\u06cc \u0645\u0628\u0646\u06cc \u0628\u0631 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc Master\u060c Replica \u0648 \u0633\u0627\u06cc\u0631 Sentinel\u0647\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<h3>\u0645\u0631\u062d\u0644\u0647 \u06f4: \u062a\u0633\u062a Failover (\u0627\u062e\u062a\u06cc\u0627\u0631\u06cc \u0627\u0645\u0627 \u0645\u0647\u0645)<\/h3>\n<\/div>\n<div>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u0635\u062d\u062a \u0639\u0645\u0644\u06a9\u0631\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0641\u0631\u0622\u06cc\u0646\u062f failover \u0631\u0627 \u062a\u0633\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<ul style=\"text-align: justify;\">\n<li style=\"text-align: justify;\">\u0634\u0628\u06cc\u0647\u200c\u0633\u0627\u0632\u06cc \u062e\u0631\u0627\u0628\u06cc Master: \u0633\u0631\u0648\u06cc\u0633 Redis \u0631\u0627 \u0631\u0648\u06cc \u0645\u0627\u0634\u06cc\u0646 Master \u0645\u062a\u0648\u0642\u0641 \u06a9\u0646\u06cc\u062f:<\/li>\n<\/ul>\n<p dir=\"ltr\" style=\"text-align: justify;\">#systemctl stop redis-server<\/p>\n<ul>\n<li style=\"text-align: justify;\">\u0645\u0634\u0627\u0647\u062f\u0647 \u0644\u0627\u06af\u200c\u0647\u0627\u06cc Sentinel: \u0644\u0627\u06af\u200c\u0647\u0627\u06cc Sentinel\u0647\u0627 \u0631\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f. \u0628\u0627\u06cc\u062f \u0628\u0628\u06cc\u0646\u06cc\u062f \u06a9\u0647 \u0622\u0646\u200c\u0647\u0627 Master \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 +sdown (subjectively down) \u0648 \u0633\u067e\u0633 +odown (objectively down) \u0639\u0644\u0627\u0645\u062a\u200c\u06af\u0630\u0627\u0631\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u0633\u067e\u0633 \u0641\u0631\u0622\u06cc\u0646\u062f \u0627\u0646\u062a\u062e\u0627\u0628 Master \u062c\u062f\u06cc\u062f (failover) \u0622\u063a\u0627\u0632 \u0645\u06cc\u200c\u0634\u0648\u062f. \u06cc\u06a9\u06cc \u0627\u0632 Sentinel\u0647\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0631\u0647\u0628\u0631 \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647 \u0648 Replica \u0631\u0627 \u0628\u0647 Master \u0627\u0631\u062a\u0642\u0627 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/li>\n<li style=\"text-align: justify;\">\u0628\u0631\u0631\u0633\u06cc Master \u062c\u062f\u06cc\u062f: \u067e\u0633 \u0627\u0632 \u0686\u0646\u062f \u0644\u062d\u0638\u0647 (\u0628\u0633\u062a\u0647 \u0628\u0647 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a down-after-milliseconds \u0648 failover-timeout)\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 redis-cli -p 26379 \u0648 \u0633\u067e\u0633 sentinel master mymaster \u0631\u0648\u06cc \u06cc\u06a9\u06cc \u0627\u0632 Sentinel\u0647\u0627\u060c \u0628\u0627\u06cc\u062f \u0628\u0628\u06cc\u0646\u06cc\u062f \u06a9\u0647 \u0622\u062f\u0631\u0633 IP \u0648 \u067e\u0648\u0631\u062a Master \u062a\u063a\u06cc\u06cc\u0631 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0647 \u0622\u062f\u0631\u0633 Replica \u0642\u0628\u0644\u06cc \u0627\u0634\u0627\u0631\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<li style=\"text-align: justify;\">\u0628\u0631\u0631\u0633\u06cc Replica \u062c\u062f\u06cc\u062f: Replica \u0642\u0628\u0644\u06cc \u0627\u06a9\u0646\u0648\u0646 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 Master \u062c\u062f\u06cc\u062f (role:master \u062f\u0631 INFO replication) \u0648 Master \u0642\u0628\u0644\u06cc (\u0627\u06af\u0631 \u062f\u0648\u0628\u0627\u0631\u0647 \u0622\u0646\u0644\u0627\u06cc\u0646 \u0634\u0648\u062f) \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 Replica \u0622\u0646 \u0634\u0646\u0627\u062e\u062a\u0647 \u0634\u0648\u062f (\u06cc\u0627 \u062d\u062f\u0627\u0642\u0644 Sentinel\u0647\u0627 \u062a\u0644\u0627\u0634 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 Replica \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u0646\u062f).<\/li>\n<li style=\"text-align: justify;\">\u0628\u0627\u0632\u06af\u0631\u062f\u0627\u0646\u062f\u0646 Master \u0642\u0628\u0644\u06cc: \u0633\u0631\u0648\u06cc\u0633 Redis \u0631\u0627 \u0631\u0648\u06cc \u0645\u0627\u0634\u06cc\u0646 Master \u0627\u0635\u0644\u06cc \u062f\u0648\u0628\u0627\u0631\u0647 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f:<\/li>\n<\/ul>\n<p dir=\"ltr\">#systemctl start redis-server<\/p>\n<p style=\"text-align: justify;\">Sentinel\u0647\u0627 \u0628\u0627\u06cc\u062f \u062a\u0634\u062e\u06cc\u0635 \u062f\u0647\u0646\u062f \u06a9\u0647 Master \u0642\u0628\u0644\u06cc \u0628\u0631\u06af\u0634\u062a\u0647 \u0648 \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 Replica \u0628\u0631\u0627\u06cc Master \u062c\u062f\u06cc\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0627 \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u0645\u0631\u0627\u062d\u0644\u060c \u0634\u0645\u0627 \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 Redis \u0628\u0627 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0628\u0627\u0644\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0633\u0647 Sentinel \u0645\u062c\u0632\u0627 \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0627\u0634\u062a. \u06a9\u0644\u0627\u06cc\u0646\u062a\u200c\u0647\u0627\u06cc \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u0637\u0648\u0631\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u0648\u0646\u062f \u06a9\u0647 \u0627\u0632 Sentinel \u0628\u0631\u0627\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u0646 \u0622\u062f\u0631\u0633 Master \u0641\u0639\u0644\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u0646\u062f. \u0627\u06a9\u062b\u0631 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647\u200c\u0647\u0627\u06cc \u06a9\u0644\u0627\u06cc\u0646\u062a Redis \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0631\u0627 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u062f\u0646\u06cc\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0645\u062f\u0631\u0646\u060c \u067e\u0627\u06cc\u062f\u0627\u0631\u06cc \u0648 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0628\u0627\u0644\u0627 (High Availability) \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0627\u0632 \u0627\u0647\u0645\u06cc\u062a \u062d\u06cc\u0627\u062a\u06cc \u0628\u0631\u062e\u0648\u0631\u062f\u0627\u0631 \u0627\u0633\u062a. \u0631\u062f\u06cc\u0633 (Redis) \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062f\u0631\u0648\u0646 \u062d\u0627\u0641\u0638\u0647\u200c\u0627\u06cc (in-memory) \u067e\u0631\u0633\u0631\u0639\u062a\u060c \u0646\u0642\u0634 \u06a9\u0644\u06cc\u062f\u06cc \u062f\u0631 \u0628\u0647\u0628\u0648\u062f \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627 \u0627\u06cc\u0641\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u0628\u0631\u0648\u0632 \u062e\u0637\u0627 \u062f\u0631 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647\u200c\u06cc \u0645\u0646\u0641\u0631\u062f \u0631\u062f\u06cc\u0633 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0645\u0646\u062c\u0631 \u0628\u0647 \u0627\u0632 \u062f\u0633\u062a\u0631\u0633 \u062e\u0627\u0631\u062c \u0634\u062f\u0646 &hellip;<\/p>\n","protected":false},"author":1417,"featured_media":6792,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130,324,228],"tags":[],"class_list":["post-6763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-training","category-devops","category-others"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.0 (Yoast SEO v24.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel\" \/>\n<meta property=\"og:description\" content=\"\u062f\u0631 \u062f\u0646\u06cc\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0645\u062f\u0631\u0646\u060c \u067e\u0627\u06cc\u062f\u0627\u0631\u06cc \u0648 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0628\u0627\u0644\u0627 (High Availability) \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0627\u0632 \u0627\u0647\u0645\u06cc\u062a \u062d\u06cc\u0627\u062a\u06cc \u0628\u0631\u062e\u0648\u0631\u062f\u0627\u0631 \u0627\u0633\u062a. \u0631\u062f\u06cc\u0633 (Redis) \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062f\u0631\u0648\u0646 \u062d\u0627\u0641\u0638\u0647\u200c\u0627\u06cc (in-memory) \u067e\u0631\u0633\u0631\u0639\u062a\u060c \u0646\u0642\u0634 \u06a9\u0644\u06cc\u062f\u06cc \u062f\u0631 \u0628\u0647\u0628\u0648\u062f \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627 \u0627\u06cc\u0641\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u0628\u0631\u0648\u0632 \u062e\u0637\u0627 \u062f\u0631 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647\u200c\u06cc \u0645\u0646\u0641\u0631\u062f \u0631\u062f\u06cc\u0633 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0645\u0646\u062c\u0631 \u0628\u0647 \u0627\u0632 \u062f\u0633\u062a\u0631\u0633 \u062e\u0627\u0631\u062c \u0634\u062f\u0646 &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-05T18:19:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2025\/06\/redis-sentinel-1.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"655\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"\u0627\u062f\u0645\u06cc\u0646\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@acto_bit\" \/>\n<meta name=\"twitter:site\" content=\"@acto_bit\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0627\u062f\u0645\u06cc\u0646\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u062e\u0645\u06cc\u0646\u06cc \u0645\u0637\u0627\u0644\u0639\u0647\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/\"},\"author\":{\"name\":\"\u0627\u062f\u0645\u06cc\u0646\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e\"},\"headline\":\"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel\",\"datePublished\":\"2025-06-05T18:19:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/\"},\"wordCount\":474,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#organization\"},\"image\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2025\/06\/redis-sentinel-1.webp\",\"articleSection\":[\"\u062f\u0627\u0646\u0634\u0646\u0627\u0645\u0647\",\"\u062f\u0648\u0627\u067e\u0633\",\"\u0633\u0627\u06cc\u0631\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/\",\"url\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/\",\"name\":\"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel\",\"isPartOf\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2025\/06\/redis-sentinel-1.webp\",\"datePublished\":\"2025-06-05T18:19:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#primaryimage\",\"url\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2025\/06\/redis-sentinel-1.webp\",\"contentUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2025\/06\/redis-sentinel-1.webp\",\"width\":1200,\"height\":655,\"caption\":\"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u062e\u0627\u0646\u0647\",\"item\":\"https:\/\/actobit.com\/actomag\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/actobit.com\/actomag\/#website\",\"url\":\"https:\/\/actobit.com\/actomag\/\",\"name\":\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\",\"description\":\"\u0628\u0644\u0627\u06af \u062c\u0627\u0645\u0639 \u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\",\"publisher\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/actobit.com\/actomag\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/actobit.com\/actomag\/#organization\",\"name\":\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\",\"url\":\"https:\/\/actobit.com\/actomag\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png\",\"contentUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png\",\"width\":599,\"height\":98,\"caption\":\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\"},\"image\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/acto_bit\",\"https:\/\/www.instagram.com\/actobit\/\",\"https:\/\/www.linkedin.com\/in\/actobit\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e\",\"name\":\"\u0627\u062f\u0645\u06cc\u0646\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g\",\"caption\":\"\u0627\u062f\u0645\u06cc\u0646\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel","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:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/","og_locale":"fa_IR","og_type":"article","og_title":"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel","og_description":"\u062f\u0631 \u062f\u0646\u06cc\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0645\u062f\u0631\u0646\u060c \u067e\u0627\u06cc\u062f\u0627\u0631\u06cc \u0648 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0628\u0627\u0644\u0627 (High Availability) \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0627\u0632 \u0627\u0647\u0645\u06cc\u062a \u062d\u06cc\u0627\u062a\u06cc \u0628\u0631\u062e\u0648\u0631\u062f\u0627\u0631 \u0627\u0633\u062a. \u0631\u062f\u06cc\u0633 (Redis) \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062f\u0631\u0648\u0646 \u062d\u0627\u0641\u0638\u0647\u200c\u0627\u06cc (in-memory) \u067e\u0631\u0633\u0631\u0639\u062a\u060c \u0646\u0642\u0634 \u06a9\u0644\u06cc\u062f\u06cc \u062f\u0631 \u0628\u0647\u0628\u0648\u062f \u0639\u0645\u0644\u06a9\u0631\u062f \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627 \u0627\u06cc\u0641\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u0628\u0631\u0648\u0632 \u062e\u0637\u0627 \u062f\u0631 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647\u200c\u06cc \u0645\u0646\u0641\u0631\u062f \u0631\u062f\u06cc\u0633 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0645\u0646\u062c\u0631 \u0628\u0647 \u0627\u0632 \u062f\u0633\u062a\u0631\u0633 \u062e\u0627\u0631\u062c \u0634\u062f\u0646 &hellip;","og_url":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/","og_site_name":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","article_published_time":"2025-06-05T18:19:44+00:00","og_image":[{"width":1200,"height":655,"url":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2025\/06\/redis-sentinel-1.webp","type":"image\/webp"}],"author":"\u0627\u062f\u0645\u06cc\u0646","twitter_card":"summary_large_image","twitter_creator":"@acto_bit","twitter_site":"@acto_bit","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637":"\u0627\u062f\u0645\u06cc\u0646","\u0632\u0645\u0627\u0646 \u062a\u062e\u0645\u06cc\u0646\u06cc \u0645\u0637\u0627\u0644\u0639\u0647":"11 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#article","isPartOf":{"@id":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/"},"author":{"name":"\u0627\u062f\u0645\u06cc\u0646","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e"},"headline":"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel","datePublished":"2025-06-05T18:19:44+00:00","mainEntityOfPage":{"@id":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/"},"wordCount":474,"commentCount":0,"publisher":{"@id":"https:\/\/actobit.com\/actomag\/#organization"},"image":{"@id":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#primaryimage"},"thumbnailUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2025\/06\/redis-sentinel-1.webp","articleSection":["\u062f\u0627\u0646\u0634\u0646\u0627\u0645\u0647","\u062f\u0648\u0627\u067e\u0633","\u0633\u0627\u06cc\u0631"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/","url":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/","name":"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel","isPartOf":{"@id":"https:\/\/actobit.com\/actomag\/#website"},"primaryImageOfPage":{"@id":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#primaryimage"},"image":{"@id":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#primaryimage"},"thumbnailUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2025\/06\/redis-sentinel-1.webp","datePublished":"2025-06-05T18:19:44+00:00","breadcrumb":{"@id":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/"]}]},{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#primaryimage","url":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2025\/06\/redis-sentinel-1.webp","contentUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2025\/06\/redis-sentinel-1.webp","width":1200,"height":655,"caption":"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel"},{"@type":"BreadcrumbList","@id":"https:\/\/actobit.com\/actomag\/1404\/redis-sentinel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u062e\u0627\u0646\u0647","item":"https:\/\/actobit.com\/actomag\/"},{"@type":"ListItem","position":2,"name":"\u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc Redis \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Sentinel"}]},{"@type":"WebSite","@id":"https:\/\/actobit.com\/actomag\/#website","url":"https:\/\/actobit.com\/actomag\/","name":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","description":"\u0628\u0644\u0627\u06af \u062c\u0627\u0645\u0639 \u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","publisher":{"@id":"https:\/\/actobit.com\/actomag\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/actobit.com\/actomag\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/actobit.com\/actomag\/#organization","name":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","url":"https:\/\/actobit.com\/actomag\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/","url":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png","contentUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png","width":599,"height":98,"caption":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a"},"image":{"@id":"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/acto_bit","https:\/\/www.instagram.com\/actobit\/","https:\/\/www.linkedin.com\/in\/actobit"]},{"@type":"Person","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e","name":"\u0627\u062f\u0645\u06cc\u0646","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g","caption":"\u0627\u062f\u0645\u06cc\u0646"}}]}},"_links":{"self":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts\/6763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/users\/1417"}],"replies":[{"embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/comments?post=6763"}],"version-history":[{"count":11,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts\/6763\/revisions"}],"predecessor-version":[{"id":6791,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts\/6763\/revisions\/6791"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/media\/6792"}],"wp:attachment":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/media?parent=6763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/categories?post=6763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/tags?post=6763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}