Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SimTsai opened this issue Jun 29, 2022 · 0 comments
Open

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

SimTsai opened this issue Jun 29, 2022 · 0 comments

Comments

@SimTsai
Copy link

SimTsai commented Jun 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant