You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a general question because I can't seem to find an obvious answer.
Is it possible to list the members of an olric cluster from an Olric embedded member instance? I'm trying to use olric not only for caching but also as a cluster implementation while running an embedded member in each instance of the app. I can't seem to find a way to get the members of the cluster (or even access the memberlist implementation's list of nodes.)
I expected Stats() to offer this information but it seems to not offer a list of members, but instead returns important members in the cluster, such as the coordinator or owners and previous owners of particular partitions.
If it's not possible to do this currently would it be feasible to export this information for use when running as an embedded member? I'm not needing to subscribe to member join/leave, only list the members at any given time. For reference, my use case is to return the list of members via the application's API so that a glance at the web app can show the names of all members.
The text was updated successfully, but these errors were encountered:
You should know that internal/discovery provides low-level functionalities. So a member in the members slice may not be an effective cluster member. If you need a list of properly bootstrapped members, we may extract this data from the routing table.
I definitely think listing bootstrapped cluster members is the answer, not necessarily listing members that may not be bootstrapped. Ideally, if it's easier to list all members of a cluster (even those not yet bootstrapped), I think it would be beneficial to also include the ability to see the state of those members (bootstrapped, not bootstrapped, unresponsive, etc.)
This is more of a general question because I can't seem to find an obvious answer.
Is it possible to list the members of an olric cluster from an Olric embedded member instance? I'm trying to use olric not only for caching but also as a cluster implementation while running an embedded member in each instance of the app. I can't seem to find a way to get the members of the cluster (or even access the memberlist implementation's list of nodes.)
I expected Stats() to offer this information but it seems to not offer a list of members, but instead returns important members in the cluster, such as the coordinator or owners and previous owners of particular partitions.
If it's not possible to do this currently would it be feasible to export this information for use when running as an embedded member? I'm not needing to subscribe to member join/leave, only list the members at any given time. For reference, my use case is to return the list of members via the application's API so that a glance at the web app can show the names of all members.
The text was updated successfully, but these errors were encountered: