Orleans.Redis icon indicating copy to clipboard operation
Orleans.Redis copied to clipboard

[Question] intention of redis key format (ServiceId/ClusterId)

Open SimTsai opened this issue 2 years ago • 0 comments

when i start a client use redis clustering, i can't got cluster , because no key [ServiceId/ClusterId] found in redis.

e.g.

Service 1

hostBuilder.UseOrleans((context, builder) => {
    builder.Configure<ClusterOptions>(opt=>{
        opt.ClusterId = "dev";
        opt.ServiceId = "service1";
    });
});

Service 2

hostBuilder.UseOrleans((context, builder) => {
    builder.Configure<ClusterOptions>(opt=>{
        opt.ClusterId = "dev";
        opt.ServiceId = "service2";
    });
});

Client

new ClientBuilder()
.Configure<ClusterOptions>(opt=>{
        opt.ClusterId = "dev";
        opt.ServiceId = "client1";
})
.UseRedisClustering(...)
.Build()
.Connect(...)

other cluster implements just use ClusterId AdoNet

Consul

ZooKeeper

SimTsai avatar Jun 29 '22 10:06 SimTsai