Skip to content

Dynamically changing user contextΒ #559

@as51340

Description

@as51340

Hi,

I am using NuRaft within Kubernetes. Each of my servers get ClusterIP DNS entry which I use to start raft servers. Additionally to that, each of my servers need to be accessible from outside K8s cluster. Because of that, I wanted to make use of user_ctx. The hard part is that I will find out external IP of each server when I add it to the cluster. Is this a good use-case for user_ctx? Do you have some other recommendation for what I should use for storing a config related to each server. aux of srv_config seems to be immutable so I cannot use that. I also thought about adding my custom log in which additional information about each server would be written but not sure if this is a good pattern to have in custom logs written something that's very connected to cluster configuration.

Thanks for the help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions