Feature Request: Add Automatic ForceReconnect Recovery for Persistent ConnectionMultiplexer Connection Failures
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 38/100
Direção de pesquisa
Start by reading ConfigurationOptions and the ConnectionMultiplexer reconnection and retry behavior, then review the six issue comments for implementation guidance or unresolved concerns. The issue proposes configurable automatic ForceReconnect recovery after persistent connection failures, with thresholds and limits; done means the recovery behavior and configuration are defined and work as described without forcing reconnects for transient errors.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
StackExchange.Redis normally handles connection recovery automatically through ConnectionMultiplexer. However, there are scenarios where an application may continue experiencing connection failures after a connectivity disruption, and normal reconnection and recovery mechanisms may not restore healthy connectivity.
Microsoft documents the ForceReconnect pattern as an additional recovery mechanism for these scenarios.
https://learn.microsoft.com/en-us/azure/redis/best-practices-connection#using-forcereconnect-with-stackexchangeredis
Today application using Stackexchange.Redis directly must implement this additional ForceReconnect recovery logic themselves.
Proposal
Consider adding a guarded automatic recovery mechanism to StackExchange.Redis for persistent connection-level failures.
The intent is not to force reconnection for every RedisTimeoutException or transient connection error. The existing ConnectionMultiplexer reconnection and retry mechanisms should remain the first line of recovery.
Only when connection failures persist beyond a configurable threshold should the library consider triggering stronger ForceReconnect recovery.
Suggested API Changes
Consider extending ConfigurationOptions with the following properties to configure automatic recovery from persistent connection failures.
bool AutoForceReconnect // default True
public TimeSpan AutoForceReconnectErrorThreshold { get; set; } // default 30s
public TimeSpan AutoForceReconnectMinInterval //default 60s
public TimeSpan AutoForceReconnectMaxDuration //default 5 mins
example Usage
`var options = ConfigurationOptions.Parse(
"localhost:6379");
options.AutoForceReconnect = true;
options.AutoForceReconnectErrorThreshold = TimeSpan.FromSeconds(30);
options.AutoForceReconnectMinInterval = TimeSpan.FromSeconds(60);
options.AutoForceReconnectMaxDuration = TimeSpan.FromMinutes(5);
var redis = await ConnectionMultiplexer.ConnectAsync(options);`
Configuration
AutoForceReconnect: Enables or disables automatic forced recovery. Defaults to true
AutoForceReconnectErrorThreshold: The duration of persistent connection-level failures required before forced recovery is considered.
AutoForceReconnectMinInterval: The minimum interval between forced recovery attempts to prevent excessive connection recycling.
AutoForceReconnectMaxDuration: The maximum duration for which automatic recovery attempts may continue during a persistent connectivity issue.
- Linguagem predominante
- C#
- Estrelas
- 6.2k
- Forks
- 1.6k
- Merge médio
- 9h 42min
- PRs com merge (30d)
- 51
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de StackExchange/StackExchange.Redis
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
StackExchange/StackExchange.Redis#3249 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
HotKeysClusterTests.CanUseClusterFilter skips intermittently, hiding the assertions it exists forAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
StackExchange/StackExchange.Redis#3239 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 8/100
StackExchange/StackExchange.Redis#3326 · 4 comentários · 39 reações ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
StackExchange/StackExchange.Redis#3240 ·
Mantenedores costumam responder em até 1 dia
-
RedisValue equality treats "1,000", "(5)" and " 5 " as numbers, via NumberStyles.AnyTalvez já em andamento @banlor assumiu há 43 dias. Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
StackExchange/StackExchange.Redis#3233 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de StackExchange/StackExchange.Redis
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 80/100
Unity-Technologies/unity-agent-plugin#118 ·
Mantenedores costumam responder em até 1 dia
-
The Recommended preset turns on Import Uno DSP, which only works with the Material themeTalvez já em andamento @agneszitte assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
unoplatform/uno.templates#2388 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
eyalgolan/statecraft-israel#2732 ·
Mantenedores costumam responder em até 1 dia
-
変換の候補のどれが Zenzai の答えか分からないAberta要トリアージ
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
Mantenedores costumam responder em até 1 dia
-
kind/chore status/draft
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Altinn/altinn-events#1158 ·
Mantenedores costumam responder em até 1 dia