We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d8431 commit cd35e99Copy full SHA for cd35e99
apollo-router/src/cache/redis.rs
@@ -377,7 +377,12 @@ impl RedisCacheStorage {
377
};
378
379
// PR-8405: must not use lazy connections or else commands will queue rather than being sent
380
- config.replica.lazy_connections = false;
+ // PR-8671: must only disable lazy connections in cluster mode. otherwise, fred will
381
+ // try to connect to unreachable replicas and fall over.
382
+ // https://github.com/aembke/fred.rs/blob/f222ad7bfba844dbdc57e93da61b0a5483858df9/src/router/replicas.rs#L34
383
+ if is_cluster {
384
+ config.replica.lazy_connections = false;
385
+ }
386
})
387
.with_performance_config(|config| {
388
config.default_command_timeout = timeout;
0 commit comments