Fork me on GitHub

clustershell

官网
Github Docs Repo
Github Docs

Installation

1
2
3
4
5
# yum install clustershell
clush
cluset
nodeset
clubak

Configuration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ vim /etc/clustershell/groups.d/local.cfg
# nodeset -L
@all
# nodeset -LL
@all 127.0.0.1,172.16.0.2

ssh-copy-id 127.0.0.1
ssh-copy-id 172.16.0.2

# clush -a 'free -g'
127.0.0.1: total used free shared buff/cache available
127.0.0.1: Mem: 0 0 0 0 0 0
127.0.0.1: Swap: 0 0 0
172.16.0.2: total used free shared buff/cache available
172.16.0.2: Mem: 0 0 0 0 0 0
172.16.0.2: Swap: 0 0 0

======================================================
希望各位朋友支持一下

本文作者:dongsheng
本文地址https://mds1455975151.github.io/archives/9357d8a6.html
版权声明:转载请注明出处!

坚持技术分享,您的支持将鼓励我继续创作!