Innode引擎監控的開啟的方法

2021-12-29 23:50:12 字數 647 閱讀 2919

innode引擎監控的開啟的方法

檢視當前innodb引擎資訊

mysql> show innodb status\g

開啟innodb監控,有四種:

1. innodb_monitor

mysql> create table innodb_monitor(x int) engine=innodb;

2. innodb_lock_monitor

mysql> create table innodb_lock_monitor(x int) engine=innodb;

3. innodb_table_monitor

mysql> create table innodb_table_monitor(x int) engine=innodb;

4. innodb_tablespace_monitor

mysql> create table innodb_tablespace_monitor(x int) engine=innodb;

開啟監視器以後,

innodb_monitor和innodb_lock_monitor會每隔15秒會向錯誤日誌中記錄innodb監控資訊,

innodb_table_monitor和innodb_tablespace_monitor是每隔64秒

mysql切換引擎 mysql轉換引擎的方法

有很多方法可以將表的儲存引擎轉換成另外一種引擎,每種方法都各有優缺點 a alter table 將表從乙個引擎直接改為另外乙個引擎最簡單的辦法 alter table tb name engine innodb 要注意 這種方法需要執行很長的時間,mysql會按行將資料從原表複製到另外一張新錶中,...

開啟Hadoop Yarn的日誌監控功能

配置 yarn site.xml 開啟日誌聚合 日誌聚集是yarn提供的日誌 化管理功能,它能將執行完成的container 任務日誌上傳到hdfs上,從而減輕nodemanager負載,且提供乙個 化儲存和分析機制。預設情況下,container 任務日誌存在在各個nodemanager上 sit...

SSH臨時開啟埠的日誌監控

前三條日誌的特徵是由su產生,後兩條是正常登陸為sshd服務登陸。前三條是由於以下命令導致 ln sf usr sbin sshd tmp su tmp su oport 9966 該命令會臨時建立乙個可以ssh的埠,最主要的是任意密碼即可登陸,經常拿shell的人可以了解一下,作為日誌審計系統尤其...