Hello Azure Team,
We have recently implemented Azure Redis Session state provider on DotNet 4.8 framework MVC application. It was working fine for up to 300 logged-in users on the Load test. When we are to step up the load test upto 10k users suddenly we keep getting the timeout exceptions.
Details:
Resource tier: Premium P3 (26 GB)
Region: Central US (Both Redis and Web Instance)
Web config setting :
\
Error :
Method WriteLine -[2022-05-09 11:47:10.107][Error]SetAndReleaseItemExclusive => StackExchange.Redis.RedisTimeoutException: The timeout was reached before the message could be written to the output buffer, and it was not sent (5000ms, inst=611, qs=8, in=0, active=EVAL), inst: 611, qs: 8, in: 0, serverEndpoint: Unspecified/amlaspponeredispremium.redis.cache.windows.net:6380, mgr: 10 of 10 available, clientName: NPR-WEB-02-STAP, IOCP: (Busy=0,Free=1000,Min=32,Max=1000), WORKER: (Busy=715,Free=32052,Min=32,Max=32767), v: 2.0.519.65453 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts) at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl[T](Message message, ResultProcessor1 processor, ServerEndPoint server) in C:\projects\stackexchange-redis\src\StackExchange.Redis\ConnectionMultiplexer.cs:line 2175 at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor
1 processor, ServerEndPoint server) in C:\projects\stackexchange-redis\src\StackExchange.Redis\RedisBase.cs:line 54 at StackExchange.Redis.RedisDatabase.ScriptEvaluate(String script, RedisKey[] keys, RedisValue[] values, CommandFlags flags) in C:\projects\stackexchange-redis\src\StackExchange.Redis\RedisDatabase.cs:line 1134 at Microsoft.Web.Redis.StackExchangeClientConnection.<>c__DisplayClass7_0.b__0() at Microsoft.Web.Redis.StackExchangeClientConnection.OperationExecutor(Func1 redisOperation) at Microsoft.Web.Redis.StackExchangeClientConnection.RetryLogic(Func
1 redisOperation) at Microsoft.Web.Redis.StackExchangeClientConnection.Eval(String script, String[] keyArgs, Object[] valueArgs) at Microsoft.Web.Redis.RedisConnectionWrapper.TryUpdateAndReleaseLock(Object lockId, ISessionStateItemCollection data, Int32 sessionTimeout) at Microsoft.Web.Redis.RedisSessionStateProvider.d__25.MoveNext() User Referrer: npr-web-spp-lol.amla.io Browser Name: Firefox UserId: File Path: D:\SPP\znode-pro-staples\Projects\Libraries\Znode.Libraries.ECommerce.Utilities\Helper\RedisLogger\RedisLogWriter.cs Method Name: WriteLine Line Number: 126 Logger: RedisLogWriter.cs