弹性缓存-启用Redis群集模式无法在两者之间写入数据

时间:2018-12-21 11:15:09

标签: redis redis-cluster elastic-cache

我正在使用节点类型为m5.4x且节点数为1的redis集群,以便缓存一些结果。对该Redis节点的写入非常频繁。而且我可以断断续续地写入集群失败。

下面是我们在日志中看到的有关故障的堆栈跟踪。

  

org.redisson.client.WriteRedisConnectionException:无法发送   命令!节点来源:   NodeSource [slot = null,addr = null,redisClient = null,redirect = null,entry = org.redisson.connection.MasterSlaveEntry @ 6608962a],   连接:[id:0xbad70cba,L:0.0.0.0/0.0.0.0:47904],命令:   (EVAL),参数:[local insertable = false;本地值=   redis.call('hget',KEYS [1],ARGV [5]);局部t,val;如果值...,8,   SEARCH_CACHE,redisson__timeout__set:{SEARCH_CACHE},   redisson__idle__set:{SEARCH_CACHE},   redisson_map_cache_created:{SEARCH_CACHE},   redisson_map_cache_updated:{SEARCH_CACHE},   redisson__map_cache__last_access__set:{SEARCH_CACHE},   redisson_map_cache_removed:{SEARCH_CACHE},   {SEARCH_CACHE}:redisson_options,...]在   org.redisson.command.CommandAsyncService.checkWriteFuture(CommandAsyncService.java:675)   在   org.redisson.command.CommandAsyncService.access $ 100(CommandAsyncService.java:84)   在   org.redisson.command.CommandAsyncService $ 9 $ 1.operationComplete(CommandAsyncService.java:638)   在   org.redisson.command.CommandAsyncService $ 9 $ 1.operationComplete(CommandAsyncService.java:635)   在   io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:511)   在   io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:485)   在   io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:424)   在   io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:121)   在   io.netty.channel.AbstractChannel $ AbstractUnsafe.safeSetFailure(AbstractChannel.java:987)   在   io.netty.channel.AbstractChannel $ AbstractUnsafe.write(AbstractChannel.java:869)   在   io.netty.channel.DefaultChannelPipeline $ HeadContext.write(DefaultChannelPipeline.java:1371)   在   io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738)   在   io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:730)   在   io.netty.channel.AbstractChannelHandlerContext.access $ 1900(AbstractChannelHandlerContext.java:38)   在   io.netty.channel.AbstractChannelHandlerContext $ AbstractWriteTask.write(AbstractChannelHandlerContext.java:1081)   在   io.netty.channel.AbstractChannelHandlerContext $ WriteAndFlushTask.write(AbstractChannelHandlerContext.java:1128)   在   io.netty.channel.AbstractChannelHandlerContext $ AbstractWriteTask.run(AbstractChannelHandlerContext.java:1070)   在   io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)   在   io.netty.util.concurrent.SingleThreadEventExecutor.runAllTask​​s(SingleThreadEventExecutor.java:404)   在io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)处   io.netty.util.concurrent.SingleThreadEventExecutor $ 5.run(SingleThreadEventExecutor.java:886)   在   io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)   在java.lang.Thread.run(Thread.java:745)造成原因:   java.nio.channels.ClosedChannelException在   io.netty.channel.AbstractChannel $ AbstractUnsafe.write(...)(未知   来源)

我正在使用Redisson客户端版本3.6.5。 有人可以帮我找出问题所在吗?

以下是我为Redis群集连接设置的配置

  • idleConnectionTimeout:1000
  • pingTimeout:10000
  • connectTimeout:10000
  • 超时:30000
  • retry尝试:3
  • retryInterval:1500
  • reconnectionTimeout:30000
  • 失败尝试:3
  • subscriptionsPerConnection:5
  • slaveSubscriptionConnectionMinimumIdleSize:1
  • slaveSubscriptionConnectionPoolSize:50
  • slaveConnectionPoolSize:250
  • masterConnectionMinimumIdleSize:5
  • masterConnectionPoolSize:250

0 个答案:

没有答案