Timeout performing SCAN
getting "Timeout executing SCAN, inst: 0, mgr: ExecuteSelect, queue: 1, qu = 1, qs = 0, qc = 0, wr = 0/1, in = 0/0" when requesting keys on Redis
Don't know why this is happening?
public void DeleteKeys(string pattern)
{
try
{
EndPoint[] endPoints = m_connectionMultiplexer.GetEndPoints();
foreach (EndPoint endPoint in endPoints)
{
IServer server = m_connectionMultiplexer.GetServer(endPoint);
RedisValue redisValue = pattern;
IEnumerable<RedisKey> redisKeys = server.Keys(0, redisValue);
foreach (RedisKey redisKey in redisKeys)
{
m_connectionMultiplexer.GetDatabase().KeyDelete(redisKey);
}
}
}
catch (Exception ex)
{
m_logger.Exception(ex);
}
}
+3
source to share