Home > Database > Mysql Tutorial > MySQL Cluster验证管理节点配置中内存是否超标的脚本_MySQL

MySQL Cluster验证管理节点配置中内存是否超标的脚本_MySQL

WBOY
Release: 2016-06-01 13:30:23
Original
939 people have browsed it

bitsCN.com MySQL Cluster验证管理节点配置中内存是否超标的脚本

 

验证管理节点config.ini参数配置的shell脚本,看memory是否超标,运行的时候需要附带上面data node id,

而且cluster要处于工作状态,最起码manage node和data node要处于启动状态

 

run check_memery.sh

脚本内容下:

#!/bin/bashusage(){   echo "-----------------------------"   echo "Usage:$(basename $0) NodeId"  #数据节点的ID   echo "-----------------------------"   echo   exit 1}print_size (){string1=$(echo $1|sed -e :a -e 's/^./{1,40
    
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template