Question: Redis 3.0.0 RC already. Does StackExchange.Redis support for Redis 3.0 cluster? if so? how we can config it?
Redis 3.0.0 RC already. Does StackExchange.Redis support for Redis 3.0 cluster? if so? how we can config it?
It has preliminary support, although I haven't been able to test every scenario, and I haven't updated the "CLUSTER NODES" usage to the new structured alternative - nor have I tested it on the most recent cluster builds. But basically: just give it the address of one or more cluster nodes - it should take it from there. There isn't much to configure from the client side.
@mgravell just to be explicit, does this mean that StackExchange.Redis does fully support Redis 3.0?
Thanks!
In theory: yes. It certainly worked againat the previous builds. However, due to multiple projects and limited time, I have not yet extensively/explicitly tested against the current 3.0 build, and I know there are a few tweaks I want to make (that you shouldn't notice - for example, whether it uses "cluster nodes" vs "cluster slots" to prime the hash cache)
I'd be happy to hear feedback if you're in a position to try it... On 30 Apr 2015 6:35 pm, "Joe-U-Questionmark" [email protected] wrote:
@mgravell https://github.com/mgravell just to be explicit, does this mean that StackExchange.Redis does fully support Redis 3.0?
Thanks!
— Reply to this email directly or view it on GitHub https://github.com/StackExchange/StackExchange.Redis/issues/107#issuecomment-97891715 .
Not sure the current status of this. Although it does imply that "redis cluster" is supported with the current documentation. We are going to be trying this out regardless, but can anyone state clearly whether redis cluster with the latest stable build of redis is supported?
StackExchange.Redis 1.1.603 version throwing MOVED exception when trying to set or get in redis cluster.
i have initialized ConnectionMultiplexer with one random picked cluster node
just wondering if this issue has been fixed? I am facing this issue with v1.2.4 also.
it should work simply by connecting to any cluster node; I will need to investigate against my test cluster. Any specific cluster size and key you are seeing this with?
On 27 Jun 2017 1:11 a.m., "Riky" [email protected] wrote:
just wondering if this issue has been fixed? I am facing this issue with v1.2.4 also.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/StackExchange/StackExchange.Redis/issues/107#issuecomment-311216207, or mute the thread https://github.com/notifications/unsubscribe-auth/AABDsACY5amrZ_u2EumOVjWug1elMVQeks5sIEjDgaJpZM4Cvft9 .
Hi @mgravell It took me some time to test and reproduce the issue. The issue is:
An exception of type 'StackExchange.Redis.RedisConnectionException' occurred in StackExchange.Redis.dll but was not handled in user code
Additional information: No connection is available to service this operation: SADD {user}systemuser; An existing connection was forcibly closed by the remote host; IOCP: (Busy=2,Free=998,Min=4,Max=1000), WORKER: (Busy=8,Free=32759,Min=4,Max=32767), Local-CPU: n/a
I am running a redis cluster on windows machine with 6 nodes from 127.0.0.1:7002 to 7007. This issue encountered while I have given only 1 cluster node 127.0.0.1:7000 (master node) in the Redis connection string. In case any of the other master nodes down, the Redis operation throws socket connection timeout only once but in next try the operation is successful. But if the master node 127.0.0.1:7000 is down, the Redis code never gets healed and throw the error written above. I am running the StackExchange.Redis and StackExchange.Redis.StrongName ( v 1.2.4) and Microsoft.Web.RedisSessionStateProvider ( v2.2.5). The connection code is as following:
`private static bool Connect()
{
if (_db == null)
{
JsonConvert.DefaultSettings = () => new JsonSerializerSettings
{
//ReferenceLoopHandling = ReferenceLoopHandling.Ignore, // will not serialize an object if it is a child object of itself
ReferenceLoopHandling = ReferenceLoopHandling.Serialize, // is useful if objects are nested but not indefinitely
//PreserveReferencesHandling = PreserveReferencesHandling.Objects, // serialize an object that is nested indefinitely
TypeNameHandling = TypeNameHandling.All
};
var configurationOptions = ConfigurationOptions.Parse(REDIS_URL.ToString());
configurationOptions.SyncTimeout = 30000;
if (!string.IsNullOrEmpty(REDIS_PASSWORD))
configurationOptions.Password = REDIS_PASSWORD;
_redis = ConnectionMultiplexer.Connect(configurationOptions);
_db = _redis.GetDatabase();
}
return _db != null;
}`
And the Redis operation throwing the error is:
public bool AddToSet(string redisKey, string value)
{
return _db.SetAdd(redisKey, value);
}
TL;DR: Bug report is if the first node in the endpoint list is down, things won't work. We need to test this, though adding an automated test is possibly problematic in itself (to accurately test the scenario).
This was fixed in 2.0 via snapshot changes to solve several issues in the area - closing out to cleanup!
hi, from what i have read to far we need to configure the redis cluster with another tool - not stackexchange.redis!? couldn't find any info about it other than in the official docs at https://redis.io/topics/cluster-tutorial can you please confirm?
SE.Redis contains the necessary pieces to connect to an established redis cluster (3.0 or above) as a client. It does not include tools for actually creating a redis cluster - that is all part of the redis server itself.
On Tue, 16 Oct 2018, 07:47 toebens, [email protected] wrote:
hi, from what i have read to far we need to configure the redis cluster with another tool - not stackexchange.redis!? couldn't find any info about it other than in the official docs at https://redis.io/topics/cluster-tutorial can you please confirm?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/StackExchange/StackExchange.Redis/issues/107#issuecomment-430120524, or mute the thread https://github.com/notifications/unsubscribe-auth/AABDsGyTqTOCTW9EkG0Dgib5cX-sW6oiks5ulYD2gaJpZM4Cvft9 .