title: How to use redis cluster with StackExchange.Redis?
body: <p>I'm looking for High Availability using <a href="https://github.com/StackExchange/StackExchange.Redis" rel="nofollow noreferrer">StackExchange.Redis</a>.
  My first approach was attempting to use Redis Sentinel with no success due to the package's capabilities.</p>
  
  <p>I have a 6-noded cluster (3 masters &amp; 3 slaves) in Docker. My app is able to connect to these 3 masters BUT when I turn off or pause a master container, my application throws a <strong>RedisTimeoutException</strong> because it is not able to reach the node it was connected before.</p>
  
  <p>This is the output of running <code>cluster nodes</code> command <code>before</code> pausing a master
  <a href="https://i.stack.imgur.com/Bf5oK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bf5oK.png" alt="enter image description here"></a></p>
  
  <p>This is the output of running <code>cluster nodes</code> command <code>after</code> pausing a master
  <a href="https://i.stack.imgur.com/iLbnE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iLbnE.png" alt="enter image description here"></a></p>
  
  <p>This is the exception my app throws
  <a href="https://i.stack.imgur.com/eVNif.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eVNif.png" alt="enter image description here"></a></p>
  
  <p>Currently, I'm connecting to the 3 masters</p>
  
  <pre><code>private const string Host = "10.0.0.2:7000, 10.0.0.3:7001, 10.0.0.4:7002";
  
  private static readonly ConnectionMultiplexer Connection = ConnectionMultiplexer.Connect(Host);
  </code></pre>