-
Notifications
You must be signed in to change notification settings - Fork 558
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
Expose gateway topology #4554
Comments
For exposing topology through MBean I would recommend using:
(Note that the info endpoint currently is deactivated) Happy to help out if you have questions about the actuators. Not sure how to expose topology as a metric. |
@pihme thanks 👍 |
Hi! I would like to start working on this. I can start implementing an MBean part, after that we can discuss metrics :) |
Hey @aivinog1, we haven't really done MBean right now. I think @pihme looked into it, and it wasn't all that great? Correct me here if I'm wrong, I only vaguely remember. My first suggestion would be to implement the metrics in the Topology manager, then add a simple actuator which just returns the topology as JSON, but I'm open to suggestions. |
@npepinpe Hi! I have a question about how metrics should look like? Should it be the same as the topology response command? For example, the gateway knows about 2 brokers (the first metric), the first broker knows about 2 partitions(so, there must be a second metric), they are both healthy and it is a leader for partition 2 (third metric). |
@npepinpe I don't understand why we need to expose the topology via actuators. The topology is already exposed via zbctl. For the metrics: |
I agree with @deepthidevaki I would do it similar to the metrics we have in raft |
Since we already expose the topology as part of our client, you're right, no point making it an actuator. As for the metrics, definitely the leader is usually the important part, but it can still be useful to know the followers to ensure that we have a consistent view of the cluster. Are we sure that knowing the wrong followers could never lead to an issue or help us diagnose one? |
Couldn't it be useful to know the complete topology from the gateway point of view at times? As in, what if I have no leader? Is the gateway unaware of one, or is it a follower according to it, or...? Couldn't it also allow us to track bugs related to how the topology is built over time by checking the transitions from follower to leader and back according to the gateway? |
Ya. Makes sense. |
… be reverted later) (#4554)
Description
It's particularly useful to know what the gateway thinks the topology of the cluster is at a given point in time when debugging, especially when doing post-mortem investigations.
The gateway topology should be exposed as:
The text was updated successfully, but these errors were encountered: