Hello. We are using azure app services and when moving to Azure moved from inproc session state to using the asp.net Redis session state provider. It was working fine, but traffic on the site is going up and now getting more frequent errors like the one below. Have had a couple hundred of these errors in the last 24 hours. The article linked in the error doesnt help much as we are using this for session state only.
I have increased the Redis SKU a couple of times. From a basic, to C1 then C2. There are no memory/cpu pressures even on basic, but did this to rule out lack of network bandwidth on the cache. But still only looking at around 100kb/sec network on redis so i see no value in increasing the SKU anymore.
It is really interesting that memory usage has been 100MB for the last 30 days. That amount has not deviated at all, so i dont know if there is something that caps memory usage of redis?
I have also tried increasing the timeout values to larger amounts. the current settings are listed below.
App services and redis cache are all in the Central US region.
ERROR
Timeout performing EVAL (1000ms), inst: 56, qs: 21, in: 0, serverEndpoint: Unspecified/REDACTED.redis.cache.windows.net:6380, mgr: 10 of 10 available, clientName: RD0003FF6492FE, IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=12,Free=32755,Min=4,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)
WEB.CONFIG setup
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="REDACTED.redis.cache.windows.net" port="6380" databaseId="0" accessKey="REDACTED" throwOnError="true" applicationName="REDACTED" connectionTimeoutInMilliseconds="15000" operationTimeoutInMilliseconds="1000" retrytimeoutInMilliseconds="5000" ssl="true" />
</providers>
</sessionState>
</system.web>
<system.webServer>
<modules>
<remove name="Session" />
<add name="Session" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=REDACTED" preCondition="integratedMode" />
</modules>