From: Bartlomiej N. <ba...@ya...> - 2007-12-11 21:58:08
|
Hi All, =20 On Ben's request, I'm forwarding a message that has been sent to our internal discussion list. =20 Today, I came across a situation that I wanted to find out who created a particular ephemeral node and trace the IP address of the client. As of now, it is quite complicated as one has to extract session ID, then search for session ID in all ZK logs, on all servers, and finally figure out the IP. =20 I was wondering if adding a simple administration JMX bean to the server would be a big deal. For instance, we might have an MBean for session management where we could ask for all sessions and enlists connected clients. A session would also provide information about the client being connected. JMX architecture is very versatile and it's easy to monitor it using JConsole, for instance.=20 =20 Here is a brief proposal of JMX beans functionality: * Session management * Retrieve all sessions * Display session information (start time, IP address of connected client, ephemeral nodes, etc.) * Terminate a session=20 * Display sessions established from a given IP * Node management * All operations that are in API on any node * ZK Server management * Display various statistics (including leader) * Force reelection of a leader etc. =20 It's just a proposal; feel free to come up with any other metrics/operations. =20 Bart =20 =20 =20 |