GithubHelp home page GithubHelp logo

Comments (2)

NangiDev avatar NangiDev commented on June 12, 2024

If I kill the node the silo is on it will automatically spawn a new silo on another node. What happens in the membership table is that the old silo will still be in status 3 and the new silo will try to connect but never go past status 2. Until I manually delete the old silo from the membership table and lets the new reboot.

I'm suspecting it's the communication between silos that doesn't work and that's why a second silo will never be "healthy" will the old one that got spun up alone will just assume its the new that is wrong.

What can I do to debug whats wrong with the communication between silos? I have exec into the containers and ping'ed their ips shown in the membership table. It seems fine.

from orleans.redis.

NangiDev avatar NangiDev commented on June 12, 2024

I think I've solved it. I changed to define AdvertisedIp instead of hostname when configure endpoint,
Seems to have done the trick.

This
ConfigureEndpoints(advertisedIP: IPAddress.Parse(EnvVar.LocalAddress), siloPort: EnvVar.siloPort, gatewayPor t: EnvVar.gatewayPort, listenOnAnyHostAddress: true)

Instead of this
.ConfigureEndpoints(hostname: EnvVar.Hostname, siloPort: EnvVar.siloPort, gatewayPort: EnvVar.gatewayPort, listenOnAnyHostAddress: true)

EDIT:

I recommend setting siloname aswell otherwise you will get wierd behaviour with dead silos still having status 3 in Redis membership table.

This works for me:


            builder
            .Configure<SiloOptions>(options =>
            {
                options.SiloName = EnvVar.Hostname;
            })
            .ConfigureEndpoints(advertisedIP: IPAddress.Parse(EnvVar.LocalAddress), siloPort: EnvVar.siloPort, gatewayPort: EnvVar.gatewayPort, listenOnAnyHostAddress: true)
            .AddRedisGrainStorageAsDefault(optionsBuilder => optionsBuilder.Configure(options =>
            {
                options.ConnectionString = "storage:6379";
                options.UseJson = true;
                options.DatabaseNumber = 1;
            }))
            .AddRedisGrainDirectory(
                "redis-directory-1",
                options => options.ConfigurationOptions = new ConfigurationOptions
                {
                    EndPoints = { { "storage:6379" } },
                    DefaultDatabase = 2
                })
            .UseRedisClustering(options =>
            {
                options.ConnectionString = "storage:6379";
                options.Database = 0;
            });

from orleans.redis.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.