springredis缓存:如果我们在azure上重新启动redis,需要一段时间才能重新连接

k4aesqcs  于 2021-06-09  发布在  Redis
关注(0)|答案(0)|浏览(291)

我们正在使用spring boot版本2.3.1-release的recative redis。当我们将应用程序部署到连接到azure上redis缓存的azure上时,我们发现了一个奇怪的问题。如果我们重新启动redis应用程序,则需要15分钟以上才能重新连接。但是,当我们在本地运行相同的应用程序时,请从本地连接到azure redis示例,当重新启动时,重新连接不到5分钟。
我们是否必须更改azure或springboot应用程序上的任何配置,以便在连接可用时立即强制重新连接。以下是我们的日志。

19-10-2020 15:57:33.994 DEBUG r.n.http.server.HttpServerOperations  [id: 0x6ef9d608, L:/10.0.0.111:8080 - R:/10.0.0.6:54100] Increasing pending responses, now 1 
19-10-2020 15:57:33.994 DEBUG reactor.netty.http.server.HttpServer  [id: 0x6ef9d608, L:/10.0.0.111:8080 - R:/10.0.0.6:54100] Handler is being applied: org.springframework.http.server.reactive.ReactorHttpHandlerAdapter@47bcb563 
19-10-2020 15:57:33.999 DEBUG r.n.http.server.HttpServerOperations  [id: 0x6ef9d608, L:/10.0.0.111:8080 - R:/10.0.0.6:54100] Detected non persistent http connection, preparing to close 
19-10-2020 15:57:34.000 DEBUG r.n.http.server.HttpServerOperations  [id: 0x6ef9d608, L:/10.0.0.111:8080 - R:/10.0.0.6:54100] Last HTTP response frame 
19-10-2020 15:57:34.000 DEBUG r.n.http.server.HttpServerOperations  [id: 0x6ef9d608, L:/10.0.0.111:8080 - R:/10.0.0.6:54100] Last HTTP packet was sent, terminating the channel 
19-10-2020 15:58:03.994 DEBUG r.n.http.server.HttpServerOperations  [id: 0xbfe5c284, L:/10.0.0.111:8080 - R:/10.0.0.6:54626] New http connection, requesting read 
19-10-2020 15:58:03.994 DEBUG r.netty.channel.BootstrapHandlers  [id: 0xbfe5c284, L:/10.0.0.111:8080 - R:/10.0.0.6:54626] Initialized pipeline DefaultChannelPipeline{(BootstrapHandlers$BootstrapInitializerHandler#0 = reactor.netty.channel.BootstrapHandlers$BootstrapInitializerHandler), (reactor.left.httpCodec = io.netty.handler.codec.http.HttpServerCodec), (reactor.left.httpTrafficHandler = reactor.netty.http.server.HttpTrafficHandler), (reactor.right.reactiveBridge = reactor.netty.channel.ChannelOperationsHandler)} 
19-10-2020 15:58:03.994 DEBUG r.n.http.server.HttpServerOperations  [id: 0xbfe5c284, L:/10.0.0.111:8080 - R:/10.0.0.6:54626] Increasing pending responses, now 1 
19-10-2020 15:58:03.995 DEBUG reactor.netty.http.server.HttpServer  [id: 0xbfe5c284, L:/10.0.0.111:8080 - R:/10.0.0.6:54626] Handler is being applied: org.springframework.http.server.reactive.ReactorHttpHandlerAdapter@47bcb563 
19-10-2020 15:58:04.003 DEBUG r.n.http.server.HttpServerOperations  [id: 0xbfe5c284, L:/10.0.0.111:8080 - R:/10.0.0.6:54626] Detected non persistent http connection, preparing to close 
19-10-2020 15:58:04.004 DEBUG r.n.http.server.HttpServerOperations  [id: 0xbfe5c284, L:/10.0.0.111:8080 - R:/10.0.0.6:54626] Last HTTP response frame

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题