M!RFAN
M!RFAN
CC#
Created by M!RFAN on 1/13/2025 in #help
Publish Profile Error
I have three appsettings.json - appsettings.json, appsettings.Development.json and appsettings.Production.json
7 replies
CC#
Created by M!RFAN on 1/13/2025 in #help
Publish Profile Error
First of all thanks and sorry for crossposting I want to check which environment it loads and it doesn't log in IIS so manually checking on local. Console.WriteLine($"{builder.Environment.EnvironmentName} - {Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT")} - {JsonSerializer.Serialize(redisOptions)}"); for builder.Environment.EnvironmentName it returns Production and for ASPNETCORE_ENVIRONMENT its empty and I set the env value in iis configuration editor for application pool and the for system.webserver for aspnet its already set to Development but not working
7 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
I don't really have knowledge about MessagePack contractless or ProtoBuff will study and let you know after implementing with that
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
Absolutely right. But as per your last advice I compressed using GZIP and it takes additional couple of seconds to decompress to work on it but no issues on redis as far as now
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
will check and update
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
For debugging as I can't currently access the redis directly, it'll be temporarily nice to increase timeout as soon as I compressed data and I can revert back to investigate the issue in this new state and will further deduct more
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
You have no idea how much of embrassment you saved me from
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
This is a valid point to help my argument with senior
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
So will increase the timeout. Until fix, delay won't be a problem.
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
sure Replica access failed, trying primary node: Timeout performing GET (5000ms), next: GET MNDAPIRECORDSAffliate, inst: 0, qu: 0, qs: 0, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, last-in: 50441, cur-in: 647420, sync-ops: 4, async-ops: 1, serverEndpoint: dev-demo-0001-002.dev-demo.lketx2.euw2.cache.amazonaws.com:6379, conn-sec: 17.42, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: 169(SE.Redis-v2.6.111.64013), PerfCounterHelperkeyHashSlot: 1992, IOCP: (Busy=0,Free=1000,Min=2,Max=1000), WORKER: (Busy=1,Free=32766,Min=2,Max=32767), POOL: (Threads=6,QueuedItems=0,CompletedItems=3022), v: 2.6.111.64013 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts) This is our error
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
so for now our API is currently delivering at 3secs so increasing this will result in delay but that will fix the problem temporarily until we compress the data ?
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
so in ELI5 terms, If the connection can't be made within 3000ms, it'll throw an error
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
will study on that
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
var options = new ConfigurationOptions { EndPoints = { endpoint }, ConnectRetry = 1, // Retry connection only once in case of failure ConnectTimeout = 3000, // Set connection timeout to 3000ms Ssl = true, // Enable SSL if required IncludeDetailInExceptions = true, }; // Establish the connection using the configured options ConnectionMultiplexer connection = ConnectionMultiplexer.Connect(options); var cache = ReadRedisConnectorHelper.Connection.GetDatabase(); try { // Try to read from the replica data = cache.StringGet(ParamName, CommandFlags.PreferReplica); } catch (Exception ex) { Console.WriteLine("Replica access failed, trying primary node: " + ex.Message); // Fallback to primary node if the replica fails data = cache.StringGet(ParamName, CommandFlags.DemandMaster); }
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
Also can you kindly look at our redis connection class, cause we had doubts on configuration issue as well
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
Thats the minimum of ours
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
BTW Thanks you really gave me the validation I needed
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
Sure will compress and update incase the error occurs again
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
I can't access the redis for now currently because its behind weird security group in aws
55 replies
CC#
Created by M!RFAN on 12/4/2024 in #help
Redis Timeout
How to find the real error?
55 replies