# Mycat-eye 监控平台
监控平台分为三大功能模块(MyCat监控、MySql监控、可视化配置)。监控数据从MyCat管理端口获取信息:
```sql
mysql> show @@help;
+------------------------------------------+--------------------------------------------+
| STATEMENT | DESCRIPTION |
+------------------------------------------+--------------------------------------------+
| show @@time.current | Report current timestamp |
| show @@time.startup | Report startup timestamp |
| show @@version | Report Mycat Server version |
| show @@server | Report server status |√
| show @@threadpool | Report threadPool status |
| show @@database | Report databases |
| show @@datanode | Report dataNodes |
| show @@datanode where schema = ? | Report dataNodes |
| show @@datasource | Report dataSources |
| show @@datasource where dataNode = ? | Report dataSources |
| show @@datasource.synstatus | Report datasource data synchronous |
| show @@datasource.syndetail where name=? | Report datasource data synchronous detail |
| show @@datasource.cluster | Report datasource galary cluster variables |
| show @@processor | Report processor status |
| show @@command | Report commands status |
| show @@connection | Report connection status |√
| show @@cache | Report system cache usage |.
| show @@backend | Report backend connection status |√
| show @@session | Report front session details |
| show @@connection.sql | Report connection sql |√跟踪当前应用执行sql情况
| show @@sql.execute | Report execute status |√
| show @@sql.detail where id = ? | Report execute detail status |√
| show @@sql | Report SQL list |√
| show @@sql.high | Report Hight Frequency SQL |√
| show @@sql.slow | Report slow SQL |√
| show @@sql.resultset | Report BIG RESULTSET SQL |√
| show @@sql.sum | Report User RW Stat |√
| show @@sql.sum.user | Report User RW Stat |√
| show @@sql.sum.table | Report Table RW Stat |√
| show @@parser | Report parser status |
| show @@router | Report router status |
| show @@heartbeat | Report heartbeat status |
| show @@heartbeat.detail where name=? | Report heartbeat current detail |
| show @@slow where schema = ? | Report schema slow sql |
| show @@slow where datanode = ? | Report datanode slow sql |
| show @@sysparam | Report system param |
| show @@syslog limit=? | Report system mycat.log |
| show @@white | show mycat white host |
| show @@white.set=?,? | set mycat white host,[ip,user] |
| show @@directmemory=1 or 2 | show mycat direct memory usage |
| switch @@datasource name:index | Switch dataSource |
| kill @@connection id1,id2,... | Kill the specified connections |
| stop @@heartbeat name:time | Pause dataNode heartbeat |
| reload @@config | Reload basic config from file |
| reload @@config_all | Reload all config from file |*
| reload @@route | Reload route config from file |
| reload @@user | Reload user config from file |
| reload @@sqlslow= | Set Slow SQL Time(ms) |
| reload @@user_stat | Reset show @@sql @@sql.sum @@sql.slow |
| rollback @@config | Rollback all config from memory |
| rollback @@route | Rollback route config from memory |
| rollback @@user | Rollback user config from memory |
| reload @@sqlstat=open | Open real-time sql stat analyzer |
| reload @@sqlstat=close | Close real-time sql stat analyzer |
| offline | Change MyCat status to OFF |
| online | Change MyCat status to ON |
| clear @@slow where schema = ? | Clear slow sql by schema |
| clear @@slow where datanode = ? | Clear slow sql by datanode |
+------------------------------------------+--------------------------------------------+
```
## Mycat 监控
### Mycat服务
#### Mycat 内存分析 √
```sql
mysql> show @@server;
+--------------+-------------+--------------+------------+---------------+---------------+---------+--------+
| UPTIME | USED_MEMORY | TOTAL_MEMORY | MAX_MEMORY | RELOAD_TIME | ROLLBACK_TIME | CHARSET | STATUS |
+--------------+-------------+--------------+------------+---------------+---------------+---------+--------+
| 16h 32m 55s | 90145912 | 182976512 | 1908932608 | 1524574388986 | -1 | utf8 | ON |
+--------------+-------------+--------------+------------+---------------+---------------+---------+--------+
```
```sql
mysql> show @@directmemory=1 or 2 ;
+----------------------+--------------------+-------------------------+-----------------+------------------------+
| MDIRECT_MEMORY_MAXED | DIRECT_MEMORY_USED | DIRECT_MEMORY_AVAILABLE | SAFETY_FRACTION | DIRECT_MEMORY_RESERVED |
+----------------------+--------------------+-------------------------+-----------------+------------------------+
| 1820MB | 64KB | 1274MB | 0.7 | 450MB |
+----------------------+--------------------+-------------------------+-----------------+------------------------+
```
#### Mycat 连接分析 √
* 前端
```sql
mysql> show @@connection;
+------------+------+-----------+------+------------+------+--------+---------+--------+---------+---------------+-------------+------------+---------+------------+
| PROCESSOR | ID | HOST | PORT | LOCAL_PORT | USER | SCHEMA | CHARSET | NET_IN | NET_OUT | ALIVE_TIME(S) | RECV_BUFFER | SEND_QUEUE | txlevel | autocommit |
+------------+------+-----------+------+------------+------+--------+---------+--------+---------+---------------+-------------+------------+---------+------------+
| Processor1 | 1 | 127.0.0.1 | 9066 | 61721 | root | NULL | utf8:33 | 378 | 5399 | 1298 | 4096 | 0 | | |
+------------+------+-----------+------+------------+------+--------+---------+--------+---------+---------------+-------------+------------+---------+--------
没有合适的资源?快使用搜索试试~ 我知道了~
MySQL数据库监控工具,实现了对MySQL节点的管理和监控
共771个文件
java:277个
js:122个
png:74个
1 下载量 37 浏览量
2023-06-03
17:31:37
上传
评论
收藏 9.29MB ZIP 举报
温馨提示
MySQL数据库监控工具,实现了对MySQL节点的管理和监控,可供开发人员和DBA使用。后续版本将整合MyCAT2.0的管理和配置。
资源推荐
资源详情
资源评论
收起资源包目录
MySQL数据库监控工具,实现了对MySQL节点的管理和监控 (771个子文件)
.babelrc 165B
semantic.min.css 532KB
backend.min.css 321KB
foundation.min.css 155KB
main.css 151KB
bootstrap.css 144KB
bootstrap.css 143KB
bootstrap.min.css 120KB
bootstrap.min.css 118KB
animate.css 71KB
animate.css 71KB
jquery-ui.css 41KB
font-awesome.css 37KB
templatecss.css 35KB
font-awesome.css 34KB
font-awesome.min.css 30KB
font-awesome.min.css 28KB
bootstrap-theme.css 26KB
elegant-icons.css 25KB
vis.min.css 23KB
vis.min.css 23KB
bootstrap-theme.min.css 23KB
dataTables.jqueryui.css 16KB
jquery.dataTables.css 16KB
dataTables.jqueryui.min.css 14KB
vis-network.min.css 14KB
vis-network.min.css 14KB
layer.css 14KB
jquery.dataTables_themeroller.css 14KB
jquery.dataTables_themeroller.css 14KB
jquery.dataTables.min.css 14KB
layer.css 14KB
layer.css 14KB
jquery.dataTables.min.css 13KB
style.css 10KB
dataTables.bootstrap.css 9KB
step.css 8KB
daterangepicker-bs3.css 6KB
daterangepicker-bs3.css 6KB
daterangepicker-bs2.css 5KB
daterangepicker-bs2.css 5KB
dataTables.bootstrap4.css 5KB
layer.css 5KB
dataTables.bootstrap.css 5KB
dataTables.bootstrap4.min.css 5KB
login.css 5KB
login.css 5KB
dataTables.bootstrap.min.css 4KB
login2.css 4KB
dataTables.uikit.css 4KB
dataTables.uikit.min.css 3KB
dataTables.foundation.css 3KB
dataTables.semanticui.css 3KB
loadingbar.css 3KB
dataTables.foundation.min.css 3KB
dataTables.semanticui.min.css 3KB
dataTables.material.css 3KB
dataTables.material.min.css 2KB
dermadefault.css 2KB
jquery.mloading.css 2KB
jquery.mloading.css 2KB
dermaorange.css 2KB
dermagreen.css 2KB
my-custom-styles.css 2KB
jquery.jsonview.css 1KB
ui-layout.css 543B
demo.css 157B
fontawesome-webfont.eot 162KB
fontawesome-webfont.eot 73KB
ElegantIcons.eot 58KB
lato-bold.eot 31KB
lato-regular.eot 30KB
lato-black.eot 30KB
lato-bolditalic.eot 30KB
lato-light.eot 29KB
lato-italic.eot 29KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
iconfont.eot 6KB
loading.gif 33KB
loading.gif 7KB
loading-0.gif 6KB
noavatar_middle.gif 4KB
loading_check.gif 2KB
loading2.gif 2KB
loading-2.gif 2KB
loading-1.gif 701B
top.gif 693B
top.gif 693B
.gitignore 331B
.gitignore 301B
mycat-setting-mycat-schema.html 53KB
mycat-setting-mycat-data-host.html 43KB
mycat-setting-server.html 42KB
mycat-node.html 27KB
mycat-setting-mycat-data-node.html 24KB
mycat-cluster.html 22KB
dashboard.html 17KB
mycat-setting-myid.html 17KB
共 771 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 6649
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- onenet_chongwukanhu_v06.apk
- 2022NOC软件创意编程赛项真题C++初中-决赛(有解析)
- 2022NOC软件创意编程赛项真题python初中-决赛(有解析)
- openLayer-本地数据加载 (day5)
- A题-正弦信号发生器.xdf
- 2022NOC软件创意编程赛项真题python小学高年级-决赛(有解析)
- mathml转换latex需要的xsl文件
- 2022NOC软件创意编程赛项真题图形化小学高年级-决赛(有解析)
- gbase驱动下载gbase-connector-java-8.3.81.53驱动下载
- 2022NOC软件创意编程赛项真题图形化小学低年级-决赛(有解析)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功