Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of calamari installation for distributed Storage ceph Monitoring in linux

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you the linux distributed storage ceph monitoring calamari installation example analysis, I hope you will learn something after reading this article, let's discuss it!

Environment

Linux:centos7,Ceph:Jewel

Calamari module

The main components included in Calamari are calamari-server,romana,salt,salt-minion,salt-master,diamond.

Calamari-server provides a place to interact with the cluster and encapsulates its own API for centralized management. This only needs to be installed on a machine in the cluster, or it can be installed independently.

Romana is the original calamari-client, and this is called client, which is actually a web interface. This is better called calamari-web, but now it has been renamed romana. This only needs to be installed on a certain machine in the cluster, or it can be installed independently. This needs to be installed on the same machine as calamari-server.

Salt-master is a management tool that can manage other machines in batches and manage machines with salt-minion installed. In the cluster, this is also installed with calamari-server.

Salt-minion and salt are installed on all nodes in the cluster. This receives instructions from salt-master to operate on the machines in the cluster and feeds back some information to the salt-master.

Diamond is the collection control of the monitoring information of the system, which provides the monitoring of the hardware information of the cluster and the monitoring of the information of the cluster. The data is sent to the romana machine, and the data is collected by the carbon on the romana and stored in the database in the machine.

Installation

Node situation

Software needs to be installed

Calamari server

Calamri-server romana salt-master

Cluster node

Salt salt-minion diamond

1. Download and decompress from the network disk

Link: http://pan.baidu.com/s/1jId15cy password: wwgu

two。 Add a repo file for saltstack

# mv saltstack-rhel7.repo / etc/yum.repos.d/

# yum clean all;yum repolist

3. Install calamari romana locally

# yum localinstall calamari-server-1.3.3-jewel.el7.centos.x86_64.rpm romana-1.2.2-36_gc62bb5b.el7.centos.x86_64.rpm-y

4. Adjust directory permissions

# chmod 777-R / var/log/calamari/

# chmod 777-R / opt/calamari/

Uninstall and install 5.salt (the repo file of August 1, 2015 has been updated, so don't bother)

Uninstall the salt version where bug exists and install the appropriate salt version (calamari dependency)

# rpm-e-nodeps salt-minion salt-master salt

# yum localinstall salt-2015.8.1-1.el7.noarch.rpm

# yum localinstall salt-master-2015.8.1-1.el7.noarch.rpm

# yum localinstall salt-minion-2015.8.1-1.el7.noarch.rp

You need to configure the monitored end before continuing calamari-related operations!

= monitored end (cluster node) = 1. Install salt-minion diamond

1.1.Add the repo file of saltstack

# mv saltstack-rhel7.repo / etc/yum.repos.d/

# yum clean all; yum repolist

1.2. Installation

# yum localinstall salt salt-minion

2. Configure salt-minion

2.1.Modification of minion files (all admin are hostname of calamari)

# sed-I 's/#master: salt/master: admin/' / etc/salt/minion

2.2. add minion.d additional directory and calamari.conf file

# mkdir / etc/salt/minion.d/

# echo 'master: admin' > / etc/salt/minion.d/calamari.conf

# systemctl restart salt-minion

# systemctl enable salt-minion

3. Configure diamond

Point the host to the calamari server hostname

# cd / etc/diamond/ & & cp diamond.conf.example diamond.conf

# sed-I'/ ^ host/s/graphite/admin/' / etc/diamond/diamond.conf

# systemctl restart diamond

# systemctl enable diamond

Note: systemctl does not recognize the diamond service on some machines. You can add it after ensuring that it has been installed.

Chkconfig-add diamond

= Calamari side (continued) =

Salt-master related 6.1 restart

# systemctl restart salt-master

6.2Managing salt-minion nodes

# salt-key-L lists discovered nodes

# salt-key-An allows all nodes to join

6.3 Detection node

# salt'* 'test.ping to detect linkability

If any node reports an error: Minion did not return. [No response]

Check whether the master entry in the node etc/salt/minion.d/calamari.conf is the hostname on the Calamari side.

Initialize calamari configuration

# calamari-ctl initialize

Prompt for user name and password

Web access and problems

After all the above steps are successful, enter the calamari server IP login (default port 80) in the browser address bar.

After reading this article, I believe you have some understanding of "sample Analysis of distributed Storage ceph Monitoring calamari installation in linux". If you want to know more about it, please follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report