Skip to content

Commit

Permalink
Update sentinel.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Aug 22, 2023
1 parent 406b5fb commit 428c080
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions MyApp/_pages/redis/sentinel.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,23 @@ var sentinel = new RedisSentinel("sentinel1");
Scanning and auto discovering of other Sentinels can be disabled with `ScanForOtherSentinels=false`
:::

### Advanced Configuration

More advanced configuration of the internal RedisManager used by `RedisSentinel` can be done by overriding
the `RedisManagerFactory` where you can specify the RedisManager it should use along with fine-grained configuration
such as configuring individual **master** and **replica** pool sizes, e.g:

```csharp
var sentinel = new RedisSentinel(sentinelHost, masterName)
{
RedisManagerFactory = (masters, replicas) => new PooledRedisClientManager(masters, replicas,
new RedisClientManagerConfig {
MaxWritePoolSize = 100,
MaxReadPoolSize = 200,
})
};
```

## Start monitoring Sentinels

Once configured, you can start monitoring the Redis Sentinel servers and access the pre-configured
Expand Down

0 comments on commit 428c080

Please sign in to comment.