In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain what InkScope is for you in detail. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
InkScope is a visual platform for Ceph management and monitoring. InkScope accesses Ceph clusters based on API provided by Ceph. InkScope also uses mongoDB to store real-time and historical data.
The InkScope architecture diagram is shown in the following figure:
Where:
RestfulAPI interface provided by ceph-rest-api:Ceph. Inkscope accesses and operates Ceph cluster through ceph-rest-api interface.
Cephprobe: used to obtain information about Ceph clusters
Sysprobe: used to obtain information about the physical node on which the Ceph is running, such as CPU, memory, network, disk usage, etc.
MongoDB: used to save the collection of real-time and historical data acquired by cephprobe and sysprobe, which is read and called by the inkscope web interface display part
Inkscope-admviz:inkscope provides web services to the public. The user sends the read and write request in restfulAPI format to inkscope-admviz through the web browser, then inkscope-admviz completes the user's read and write request by accessing the mongoDB database or the ceph-rest-api interface, and then returns the result of the read and write request to the customer browser
InkScope environment is built.
Hardware environment:
The physical equipment uses two Huawei servers, of which the CPU of each server is Intel Xeon E5-2650 v2, memory 128GB, and hard disk 4 600GB (one hard disk is used for the system and the other three hard drives are used for storage)
Software environment:
The operating system adopts ubuntu14.04.3 Server edition.
Ceph cluster uses Infernalis V9.2.0, in which one monitor node and six OSD nodes are used
InkScope uses the latest version of V1.3. Due to the limited hardware environment, the inkscop-admviz/mongoDB/ceph-rest-api/cephprobe/sysprobe of InkScope is installed on the same node as monitor, and only sysprobe is installed on the other node.
The steps to build an InkScope environment are as follows:
Install mongoDB.
Add the Debian software source for InkScope, that is, add the inkscope.list file to the / etc/apt/sources.list.d/ directory, which contains:
Deb https://raw.githubusercontent.com/inkscope/inkscope-packaging/master/DEBS. /
Then update the ubuntu14.04 software source, that is: # apt-get update
Install the InkScope service on the same node as monitor, that is:
# apt-get install inkscope-admviz inkscope-cephrestapi
Configure the InkScope service.
1) Update the InkScope configuration file, that is, update the / opt/inkscope/etc/inkscope.conf file. Fill in the relevant contents of mongoDB/ceph-rest-api/radosgw in this document.
2) configure ceph-rest-api service. The configuration file for ceph-rest-api is located in / etc/apache2/sites-available/inkScope.conf.
3) configure ceph-rest-api for WSGI application.
A) create a ceph user, namely: # ceph auth get-or-create client.restapi mds' allow' osd 'allow *' mon 'allow *' > / etc/ceph/ceph.client.restapi.keyring
B) add the created user to the ceph profile, that is, add the following to the / etc/ceph/ceph.conf file.
[client.restapi]
Log_file = / dev/null
Keyring = / etc/ceph/ceph.client.restapi.keyring
Configure apache.
1) add apache listening port 8080, that is, add the following to the / etc/apache/ports.conf file.
Listen 8080
2) enable apache related modules.
# a2enmod rewrite
3) install flask and json using Python pip, that is:
# pip install flask-login simple-json
4) enable inkscope.
# a2ensite inkScope
5) restart the Apache service.
# service apache2 restart
Install sysprobe.
1) install sysprobe.
# apt-get install inkscope-sysprobe
2) install other tools.
# apt-get install lshw sysstat
3) install the Python module psutil.
# pip install psutil==2.1.3
4) start sysprobe.
# / etc/init.d/sysprobe start
Install cephprobe.
1) install cephprobe.
# apt-get install inkscope-cephprobe
2) install the Python module psutil.
# pip install psutil==2.1.3
3) start cephprobe.
# / etc/init.d/cephprobe start
At this point, you can use a browser to access http://:8080/ to see the home page of inkScope.
The advantages of InkScope.
The architecture is clear and easy to extend and customize
The interface with the Ceph cluster is simple and straightforward, that is, you can access the ceph cluster directly by accessing the ceph-rest-api interface. Convenient interface expansion and customization
The InkScope front end uses Angular JS, and the back end uses Python, which is hierarchical and clear.
InkScope is completely open source and uses the Apache V2 open source license
The current problem with InkScope.
The error message of Internal Error 500appears when InkScope accesses blockdevices, which may be caused by some incorrect configuration when I configure ceph-rest-api.
InkScope cannot properly display disk usage information of OSD nodes. Disk usage information in json format can be obtained through restfulAPI, but it cannot be displayed on web pages. The reason may be that the read data is not correctly written to mongoDB.
This is the end of this article on "what is InkScope?". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.