<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cluster on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/cluster/</link><description>Recent content in Cluster on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 07 Nov 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/cluster/index.xml" rel="self" type="application/rss+xml"/><item><title>Advanced Topics: High Availability and Clustering</title><link>https://ai-blog.noorshomelab.dev/redis-guide/high-availability-and-clustering/</link><pubDate>Fri, 07 Nov 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/redis-guide/high-availability-and-clustering/</guid><description>&lt;p&gt;In production environments, simply running a single Redis instance is often not enough. You need to ensure your Redis service is &lt;strong&gt;highly available&lt;/strong&gt; (it remains operational even if a server fails) and &lt;strong&gt;scalable&lt;/strong&gt; (it can handle increased load and data volume). Redis offers two primary solutions for these challenges: &lt;strong&gt;Redis Sentinel&lt;/strong&gt; for high availability and &lt;strong&gt;Redis Cluster&lt;/strong&gt; for horizontal scaling.&lt;/p&gt;
&lt;p&gt;This chapter will guide you through:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The concepts of High Availability (HA) and how Redis achieves it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Redis Sentinel&lt;/strong&gt;: For automatic failover and monitoring of master-replica setups.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Redis Cluster&lt;/strong&gt;: For sharding data across multiple nodes and providing both HA and linear scalability.&lt;/li&gt;
&lt;li&gt;Understanding the trade-offs and when to use each.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="1-high-availability-with-redis-sentinel"&gt;1. High Availability with Redis Sentinel&lt;/h3&gt;
&lt;p&gt;Redis Sentinel is a distributed system that provides high availability for Redis. It continuously monitors your Redis instances (masters and replicas), and if a master goes down, it automatically promotes a replica to become the new master. Sentinel also reconfigures the other replicas to follow the new master and informs client applications about the change.&lt;/p&gt;</description></item></channel></rss>