predixy icon indicating copy to clipboard operation
predixy copied to clipboard

Add clusters nodes without restart

Open Aditya-Sh opened this issue 6 years ago • 2 comments

Can predixy dynamically add new nodes without restart? For example this is the initial configuration

ClusterServerPool  {
    MasterReadPriority 60
    StaticSlaveReadPriority 50
    DynamicSlaveReadPriority 50
    RefreshInterval 1
    ServerTimeout 1
    ServerFailureLimit 10
    ServerRetryTimeout 1
    KeepAlive 120
    Servers {
        + 127.0.0.1:30001
        + 127.0.0.1:30002
        + 127.0.0.1:30003
        + 127.0.0.1:30004
        + 127.0.0.1:30005
        + 127.0.0.1:30006
    }
}

I would like to add more nodes to this cluster depending on traffic. New conf being

ClusterServerPool  {
    MasterReadPriority 60
    StaticSlaveReadPriority 50
    DynamicSlaveReadPriority 50
    RefreshInterval 1
    ServerTimeout 1
    ServerFailureLimit 10
    ServerRetryTimeout 1
    KeepAlive 120
    Servers {
        + 127.0.0.1:30001
        + 127.0.0.1:30002
        + 127.0.0.1:30003
        + 127.0.0.1:30004
        + 127.0.0.1:30005
        + 127.0.0.1:30006

        + 127.0.0.1:30007
        + 127.0.0.1:30008
        + 127.0.0.1:30009
    }
}

And I would like predixy to load this new conf without restarting. Is that possible?

Aditya-Sh avatar Mar 01 '19 05:03 Aditya-Sh

Yes,Predixy can auto discovery new redis cluster nodes. You can update the config file, but don't restart predixy

fortrue avatar Mar 02 '19 04:03 fortrue

So I have tried it. And it's not showing up in logs. I am using predixy.conf, and have Included the cluster.conf file. Now when I update the cluster.conf file with new redis nodes, they don't show in in logs. Is there a way to debug?

Aditya-Sh avatar Mar 04 '19 05:03 Aditya-Sh