-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
scripts: Introduce tablet-mon.py #15512
Conversation
CI state |
cql_update_period = 0.2 | ||
|
||
|
||
class Node(object): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in Python 3, objects are so-called new-style object by default, no need to inherit from object
anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I changed the shebang to python3 and dropped the inheritance.
01e6363
to
0f5813b
Compare
@tgrabiec Do you think it's a good idea to introduce a concept of record and play to the script? So this becomes a tool aid to debug production issues in the load balancer. |
CI state |
that'd be fun at least =) so we just need to dump a time series of the query results of
|
0f5813b
to
57b1b09
Compare
ping @avikivity |
@@ -0,0 +1,615 @@ | |||
#!/bin/env python3 | |||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add copyright/license, plus some blurb that it's not a supported tool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Makes me sad I don't know anything about pygame - I want to learn it too.
In V3:
|
🟢 CI State: SUCCESS✅ - Build Build Details:
|
It is a simple monitoring app which visualizes tablet metadata and changes of that metadata using animations. It allows one to quickly see and evaluate actions of the tablet load balancer.
It connects to the cluster via CQL and periodically scans relevant system tables.
Usage:
./scripts/tablet-mon.py