InkScope是什么

這篇文章將為大家詳細(xì)講解有關(guān)InkScope是什么,小編覺得挺實(shí)用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。

創(chuàng)新互聯(lián)主要從事網(wǎng)站設(shè)計制作、成都做網(wǎng)站、網(wǎng)頁設(shè)計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)市中,十多年網(wǎng)站建設(shè)經(jīng)驗(yàn),價格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):18980820575

InkScope是一套Ceph管理和監(jiān)控的可視化平臺,InkScope基于Ceph提供的API來訪問Ceph集群,InkScope還使用MongoDB來保存實(shí)時和歷史數(shù)據(jù)。

InkScope架構(gòu)圖如下圖所示:

InkScope是什么

 其中:

ceph-rest-api:Ceph提供的restfulAPI接口,inkscope通過ceph-rest-api接口訪問和操作Ceph集群;

cephprobe:用于獲取Ceph集群的相關(guān)信息;

sysprobe:用于獲取Ceph運(yùn)行的物理節(jié)點(diǎn)的相關(guān)信息,如:CPU、內(nèi)存、網(wǎng)絡(luò)以及磁盤使用量等相關(guān)信息;

mongoDB:用于保存又cephprobe和sysprobe獲取的實(shí)時和歷史數(shù)據(jù)集合,該數(shù)據(jù)集合由inkscope web界面展示部分讀取調(diào)用;

inkscope-admviz:inkscope對外提供web服務(wù)。用戶通過web瀏覽器向inkscope-admviz發(fā)送restfulAPI格式的讀寫請求,之后inkscope-admviz通過訪問mongoDB數(shù)據(jù)庫或訪問ceph-rest-api接口來完成用戶的讀寫請求,之后將讀寫請求的結(jié)果返回給客戶瀏覽器;

InkScope環(huán)境搭建。

硬件環(huán)境:

     物理設(shè)備采用兩臺華為服務(wù)器,其中每臺服務(wù)器的CPU是Intel Xeon E5-2650 v2,內(nèi)存128GB,硬盤4塊600GB(其中一塊硬盤用于做系統(tǒng),另外三塊硬盤用作存儲);

軟件環(huán)境:

     操作系統(tǒng)采用ubuntu14.04.3 Server edition;

     Ceph集群采用Infernalis V9.2.0,其中采用1個monitor節(jié)點(diǎn)和6個OSD節(jié)點(diǎn);

     InkScope采用最新的V1.3版本。由于硬件環(huán)境有限,因此將InkScope的inkscop-admviz/mongoDB/ceph-rest-api/cephprobe/sysprobe都安裝在monitor所在的節(jié)點(diǎn)上,另外一個節(jié)點(diǎn)只安裝sysprobe;

InkScope環(huán)境搭建步驟如下:

  1. 安裝mongoDB。

  2. 添加InkScope的Debian軟件源,即:在/etc/apt/sources.list.d/目錄中添加inkscope.list文件,該文件的內(nèi)容是:

          deb https://raw.githubusercontent.com/inkscope/inkscope-packaging/master/DEBS ./ 

           之后更新ubuntu14.04軟件源,即:#apt-get update;

  1. 在monitor所在的節(jié)點(diǎn)上安裝InkScope服務(wù),即:

           #apt-get install inkscope-admviz inkscope-cephrestapi

  1. 配置InkScope服務(wù)。

           1)更新InkScope配置文件,即:更新/opt/inkscope/etc/inkscope.conf文件。在該文件中填寫mongoDB/ceph-rest-api/radosgw相關(guān)內(nèi)容;

           2)配置ceph-rest-api服務(wù)。ceph-rest-api的配置文件位于/etc/apache2/sites-available/inkScope.conf。

           3)配置ceph-rest-api為WSGI應(yīng)用。

               A)創(chuàng)建一個ceph用戶,即:#ceph auth get-or-create client.restapi mds 'allow' osd 'allow *' mon 'allow *' > /etc/ceph/ceph.client.restapi.keyring

                B)將創(chuàng)建的用戶添加到ceph配置文件中,即:將如下內(nèi)容添加到/etc/ceph/ceph.conf文件中。

[client.restapi]

    log_file = /dev/null

    keyring = /etc/ceph/ceph.client.restapi.keyring

  1. 配置apache。

          1)增加apache監(jiān)聽端口8080,即:將如下內(nèi)容添加到/etc/apache/ports.conf文件中。

Listen 8080

          2)使能apache相關(guān)模塊。

               #a2enmod rewrite

          3)使用Python pip安裝flask和json,即:

               #pip install flask-login simple-json

          4)使能inkscope。

               #a2ensite inkScope

          5)重新啟動Apache服務(wù)。

               #service apache2 restart

  1. 安裝sysprobe。

          1)安裝sysprobe。

               #apt-get install inkscope-sysprobe

          2)安裝其他工具。

               #apt-get install lshw sysstat

          3)安裝Python模塊psutil。

               #pip install psutil==2.1.3

          4)啟動sysprobe。

               #/etc/init.d/sysprobe start

  1. 安裝cephprobe。

          1)安裝cephprobe。

               #apt-get install inkscope-cephprobe

          2)安裝Python模塊psutil。

               #pip install psutil==2.1.3

          3)啟動cephprobe。

               #/etc/init.d/cephprobe start

     此時使用瀏覽器訪問http://<monitor_ip>:8080/就能看到inkScope的首頁了。

InkScope是什么

InkScope的優(yōu)點(diǎn)。

  1. 架構(gòu)清晰明了,易于擴(kuò)展和定制化;

  2. 與Ceph集群的接口簡單明了,即:直接通過訪問ceph-rest-api接口來訪問ceph集群。方便接口的擴(kuò)展和定制化;

  3. InkScope前端采用Angular JS,后端采用Python,層次化清晰明了;

  4. InkScope完全開源且采用Apache V2開源許可證;

InkScope目前的問題。

  1. InkScope訪問blockdevices時出現(xiàn)Internal Error 500的錯誤信息,原因有可能是我在配置ceph-rest-api時有某些地方配置不正確導(dǎo)致的;

  2. InkScope無法正常顯示OSD節(jié)點(diǎn)磁盤的使用量信息,通過restfulAPI能夠獲取到j(luò)son格式的磁盤使用量信息,但是無法在web頁面上顯示,原因有可能是讀取到的數(shù)據(jù)沒有正確的寫入到mongoDB;

關(guān)于“InkScope是什么”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,使各位可以學(xué)到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。

文章名稱:InkScope是什么
URL網(wǎng)址:http://muchs.cn/article46/pgodeg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作、企業(yè)網(wǎng)站制作、動態(tài)網(wǎng)站、營銷型網(wǎng)站建設(shè)虛擬主機(jī)、云服務(wù)器

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都做網(wǎng)站