<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Redis - 标签 - ZeroCoding</title><link>https://zerocoding.online/tags/redis/</link><description>ZeroCoding</description><generator>Hugo 0.165.0 &amp; FixIt v1.0.0-alpha.2-mtmrzvot</generator><language>zh-CN</language><managingEditor>hi@zerocoding.online (ZeroCoding)</managingEditor><webMaster>hi@zerocoding.online (ZeroCoding)</webMaster><lastBuildDate>Sun, 12 Jul 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://zerocoding.online/tags/redis/index.xml" rel="self" type="application/rss+xml"/><item><title>Redis 高可用选型：哨兵 vs Cluster</title><link>https://zerocoding.online/posts/redis-ha/</link><pubDate>Sun, 12 Jul 2026 00:00:00 +0800</pubDate><author>hi@zerocoding.online (ZeroCoding)</author><guid>https://zerocoding.online/posts/redis-ha/</guid><category domain="https://zerocoding.online/categories/%E5%90%8E%E7%AB%AF/">后端</category><description>&lt;p&gt;Redis 的高可用，最常用的两条路是哨兵（Sentinel）和集群（Cluster）。选型之前，先想清楚自己的真实需求。&lt;/p&gt;&#10;&lt;h2 class="heading-element" id="哨兵sentinel"&gt;&lt;span&gt;哨兵（Sentinel）&lt;/span&gt;&#10; &lt;a href="#%e5%93%a8%e5%85%b5sentinel" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;p&gt;主从 + 哨兵监控，主挂自动切换。&lt;strong&gt;适合数据量不大、但对可用性有要求的场景&lt;/strong&gt;。优点是简单、兼容性好，缺点是数据集中在一台主节点上，受内存上限制约。&lt;/p&gt;</description></item></channel></rss>