gpt4 book ai didi

redis - AWS RedisConnectionException : No connection is available to service this operation. SocketClosed 异常

转载 作者:行者123 更新时间:2023-12-03 06:35:56 25 4
gpt4 key购买 nike

当点击 Redis Cache (AWS) 时,我们突然开始遇到下面提到的异常。 .
过去它运行良好。
我们已经看到当前连接数 for Redis 节点不断增加。

No Connection available" exception while accessing redis. Following is the exception - "No connection is available to service this operation: GET xxxxx; SocketClosed on xxxxx/Interactive, origin: ProcessReadBytes, input-buffer: 0, outstanding: 0, last-read: 69s ago, last-write: 69s ago, unanswered-write: 2630s ago, keep-alive: 60s, pending: 0, state: ConnectedEstablished, in: 0, ar: 0, last-heartbeat: 0s ago, last-mbeat: 0s ago, global: 0s ago: RedisConnectionException at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl[T](Message message, ResultProcessor1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\ConnectionMultiplexer.cs:line 2027 at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor1 processor, ServerEndPoint server) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisBase.cs:line 81 at StackExchange.Redis.RedisDatabase.StringGet(RedisKey key, CommandFlags flags) in c:\code\StackExchange.Redis\StackExchange.Redis\StackExchange\Redis\RedisDatabase.cs:line 1647 at CachingFramework.Redis.Providers.RedisCacheProvider.GetObject[T](String key) at NetCoreUtilities.CachedUserObjectRedis.Get() in /codebuild/output/src803013914/src/NetCoreUtilities/CachedObjects/CachedUserObject.cs:line 63 at NetCoreUtilities.CachedUserObject.GetCachedUserObject(ElasticacheHelper elasticacheHelper, Int64 userID) in /codebuild/output/src803013914/src/NetCoreUtilities/CachedObjects/CachedUserObject.cs:line 82 at GetChildCategoriesAndAssets.Function.FunctionHandler(JObject input, ILambdaContext context) in /codebuild/output/src803013914/src/DIT Framework/users/GetChildCategoriesAndAssets.cs:line 54 at lambda_method(Closure , Stream , Stream , LambdaContextInternal )"



我们正在使用 .Net framework 4.5StackExchange.Redis 1.2.1 ,我们尝试使用最新版本的 StackExchange.Redis ,但它似乎不支持 .Net framework 4.5 .

在不改变应用程序当前的 .Net 框架的情况下,我们应该怎么做?谢谢。

最佳答案

是的,问题暂时已经解决。

旧版本的 Redis 存在一些问题,尽管设置了超时,但并未关闭连接。

  • 在 AWS 控制台中升级了 Redis 版本。 ( Redis5.0 )
  • 更新 CachingFramework.Redis版本到 11.1.0
  • 更新 StackExchange.Redis图书馆到 2.0.601
  • 将参数组的超时值设置回 0(默认)。

  • 注意:为此,我们也更新了 .Net Framework。

    关于redis - AWS RedisConnectionException : No connection is available to service this operation. SocketClosed 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58934099/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com