https://github.com/sjmudd/grchecker
grchecker - a program for monitoring a MySQL Group Replication cluster
https://github.com/sjmudd/grchecker
Last synced: 11 months ago
JSON representation
grchecker - a program for monitoring a MySQL Group Replication cluster
- Host: GitHub
- URL: https://github.com/sjmudd/grchecker
- Owner: sjmudd
- License: bsd-2-clause
- Created: 2023-11-20T07:40:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-12T08:05:48.000Z (about 2 years ago)
- Last Synced: 2025-02-14T06:53:24.639Z (over 1 year ago)
- Language: Go
- Size: 34.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grchecker
`grchecker` - a program for monitoring a MySQL Group Replication cluster
If you want to see how your GR cluster is performing this program
may help. It currently behaves a little like `vmstat` in polling a
single server and then showing the state of the GR cluster.
To get an idea of current output take a look at:
[sample_output.2023-11-19.txt](sample_output.2023-11-19.txt).
I intend to extend this later to poll all members and then check
for cluster inconsistencies, indicating them appropriately.
## Usage
```
Usage: grchecker [] []
```
If no parameters are provided then it will try to read from the
`MYSQL_DSN` environment variable to determine the MySQL host to connect
to. The format to use is the [github.com/go-sql-drivers/mysql](https://github.com/go-sql-driver/mysql)
package's DSN format.
The polling interval is seconds and can be modified. The default
value is 1 second.
```
Options:
--debug enable debug logging
--interval= collection interval in seconds. Default 1.
--dsn= golang MySQL DSN to use to connect to a server.
```
## Notes
This is very much work in progress. Current behaviour works on MySQL
8.0 but can collect MySQL 8.2+ GR table information too.
### Contributing
Please file a PR at https://github.com/sjmudd/grchecker
### Licensing
BSD 2-Clause License
### Feedback
Feedback and patches welcome.
Simon J Mudd