diff --git a/server/go.mod b/server/go.mod index 397c705f3d..c7d64ce82f 100644 --- a/server/go.mod +++ b/server/go.mod @@ -56,7 +56,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.19.1 github.com/prometheus/client_model v0.6.1 - github.com/redis/rueidis v1.0.45 + github.com/redis/rueidis v1.0.50 github.com/reflog/dateconstraints v0.2.1 github.com/rs/cors v1.11.0 github.com/rudderlabs/analytics-go v3.3.3+incompatible diff --git a/server/go.sum b/server/go.sum index c273c70a84..9df1642727 100644 --- a/server/go.sum +++ b/server/go.sum @@ -497,8 +497,8 @@ github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0leargg github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= github.com/redis/go-redis/v9 v9.6.0 h1:NLck+Rab3AOTHw21CGRpvQpgTrAU4sgdCswqGtlhGRA= github.com/redis/go-redis/v9 v9.6.0/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M= -github.com/redis/rueidis v1.0.45 h1:j7hfcqfLLIqgTK3IkxBhXdeJcP34t3XLXvorDLqXfgM= -github.com/redis/rueidis v1.0.45/go.mod h1:by+34b0cFXndxtYmPAHpoTHO5NkosDlBvhexoTURIxM= +github.com/redis/rueidis v1.0.50 h1:UdsB/2EadJMGFIUuzxqFuWM2BSjXt8jYtml6eXkhJLE= +github.com/redis/rueidis v1.0.50/go.mod h1:by+34b0cFXndxtYmPAHpoTHO5NkosDlBvhexoTURIxM= github.com/reflog/dateconstraints v0.2.1 h1:Hz1n2Q1vEm0Rj5gciDQcCN1iPBwfFjxUJy32NknGP/s= github.com/reflog/dateconstraints v0.2.1/go.mod h1:Ax8AxTBcJc3E/oVS2hd2j7RDM/5MDtuPwuR7lIHtPLo= github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE= diff --git a/server/platform/services/cache/provider.go b/server/platform/services/cache/provider.go index d75c76e536..e187a596c9 100644 --- a/server/platform/services/cache/provider.go +++ b/server/platform/services/cache/provider.go @@ -100,6 +100,9 @@ func NewRedisProvider(opts *RedisOptions) (Provider, error) { // meant to be used at very high scales. The docs suggest 20us, // but going as high as 250us doesn't make any material difference. MaxFlushDelay: 250 * time.Microsecond, + DisableRetry: true, + // The default is 10s, which is a bit too high + ConnWriteTimeout: 5 * time.Second, }) if err != nil { return nil, err