Linux system If you want to understand the load between multiple database servers, then you will use the ClusterShell tool as a Linux operation and maintenance tool, its installation and configuration is also a Learn, how do you install and configure ClusterShell on Linux?
ClusterShell installation and configuration
ClusterShell installation is very Easy, if you are using APT or YUM package management, it is a basic command of thing, I will not say, Here to talk about how to install from the source code, you need to execute the following command in the source code directory:
shell" python setup.py install
In order to facilitate the use, you also need to copy the configuration file to the specified directory. :
shell mkdir /etc/clustershell
shell cp conf/* /etc/clustershell
Then configure the nodes we want to manage, assuming we have configured a db Group, containing db_[1-3] three nodes:
shell" cat /etc/clustershell/groups
db: db_1 db_2 db_3
Ready, query all The current load situation of the database server:
shell" clush -b -g db “uptime”
Note: The premise is that you need to set password-free login on the operated server, if not clear, Please see below.
How to configure server password-free login?
If you do not generate the ssh key in advance, you need to be a member:
shell ssh-keygen
Optional operation: For convenience, we can give the server that needs to log in. A more readable alias, if you do a similar operation, then the later "USER" @ "SERVER" can be replaced with the corresponding "HOST":
shell" cat ~/. Ssh/config
Host db_1
Hostname SERVER
User USER
Port PORT
Host db_2< Br>
Hostname "SERVER"
User "USER"
Port "PORT"
Host db_3
Hostname "SERVER"
User "USER"
Port "PORT"
Then add the generated public key to the server specified location:
shell " cat ~/. Ssh/id_rsa.pub |
Ssh "USER"@"SERVER" “cat - 》》~/.ssh/authorized_keys”
If you can't remember how to correctly spell authorized_keys, you can learn the usage of ssh-copy-id. This command makes the operation simpler:
shell ssh-copy-id -i ~/.ssh/id_rsa.pub “"USER"@"SERVER"”
Note : Every time you configure a password-free login server, it is best to manually operate it, because the first connection will require manual confirmation whether to save the information to the ~/.ssh/known_hosts file.
The above is the Linux installation and configuration of ClusterShell method, because the installation and configuration of ClusterShell requires a password-free login server, so this article also explained.
In the Ubuntu system operation, sometimes the default startup program changes due t
Users in the Linux system found that the iptables could not be started in the linode, and the follow
Lubuntu is a Ubuntu lightweight desktop environment with small size, fast running,
There are many commands under Linux system. These commands can be divided into several types accordi
How to sniff HTTP traffic under Linux
Linux uses the sftp command to transfer files. Step
Linux system expect command operation example
How to modify the color of the Linux system shell script output text
What if the CentOS version is too low to install Chrome?
Red flag system redflag6.0 how to install QQ
How to solve the problem of cant find libjava.so under Ubuntu?
How does Ubuntu replace the login window background
Linux SVN tool command summary
How to configure Nginx under Linux to restrict website users to use proxy IP access
How to use Linux to clear Bash environment variables with commands
DNF86 red eye without contract violence brush map to share
Enjoy the speed of madness Win XP startup speed optimization
Win7 screen protection settings graphic tutorial
How to create a new disk partition Win7 New disk partition graphic tutorial
Windows8 start interface has nothing to do
Use laptop Windows7 system energy saving to set battery power distribution scheme
Safety hazards don't bother to see how win2003 responds smartly to
Win10 can not access the Internet how to use the reset Winsock network command?