csredis icon indicating copy to clipboard operation
csredis copied to clipboard

高流量下经常连接超时,但redis监控正常

Open ashuai opened this issue 2 years ago • 3 comments

csreids 错误

csreids 错误【xxx.redis.rds.aliyuncs.com:6379/0】:Connect to server timeout at CSRedis.CSRedisClient.GetAndExecute[T](RedisClientPool pool, Func2 handler, Int32 jump, Int32 errtimes) at CSRedis.CSRedisClient.ExecuteScalar[T](String key, Func3 hander) at CSRedis.CSRedisClient.Get(String key)

connectionstring

xxx.redis.rds.aliyuncs.com:6379,password=xxx,abortConnect=false,testcluster=false,idleTimeout=30000,tryit=1,poolsize=30,preheat=10,syncTimeout=3000,connectTimeout=3000,asyncPipeline

实例规格 0.5c 512m, 16并发

redis实例诊断

image


请问这大概可能是哪方面的问题?

ashuai avatar Apr 27 '23 05:04 ashuai

客户端连接超时,说明请求没打到服务器,服务器又怎么会有日志记录?

2881099 avatar Apr 29 '23 14:04 2881099

@ashuai 试试增加这么个环境变量?

    # Important for redis high concurrency. It's a hex, see https://github.com/dotnet/runtime/issues/11774
    COMPlus_ThreadPool_ForceMinWorkerThreads=500

kyleli666 avatar Jun 15 '23 08:06 kyleli666

我也出现了,你解决了吗?

xiaolei000129 avatar Jun 24 '23 03:06 xiaolei000129