Openstack搭建過程中配置的小技巧有哪些

這篇文章將為大家詳細講解有關(guān)Openstack搭建過程中配置的小技巧有哪些,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。

創(chuàng)新互聯(lián)長期為千余家客戶提供的網(wǎng)站建設(shè)服務(wù),團隊從業(yè)經(jīng)驗10年,關(guān)注不同地域、不同群體,并針對不同對象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺,與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為東蘭企業(yè)提供專業(yè)的網(wǎng)站設(shè)計、成都網(wǎng)站制作,東蘭網(wǎng)站改版等技術(shù)服務(wù)。擁有10年豐富建站經(jīng)驗和眾多成功案例,為您定制開發(fā)。

在搭建過程中,每個組件都涉及到很多配置項的改動,組件的原配置文件中含有大量的注釋,對我們改動配置項或多或少存在一定影響。

因此,個人在安裝過程中先將原配置文件備份,然后提取一份沒有任何注釋的新配置文件,方便配置修改和查看,降低安裝過程中配置項出現(xiàn)問題的概率。

注:原配置文件盡量不要刪除,后續(xù)可以查看每個配置項的說明。

以ceilometer為例:

1、備份原配置文件

mv ceilometer.conf ceilometer.conf.bak


2、重新生成沒有注釋的配置文件

grep -vE "^#|^$" ceilometer.conf.bak >> ceilometer.conf


此時,我們查看ceilometer.conf就會發(fā)現(xiàn)內(nèi)容非常簡單,修改起來也比較不容易出錯。

[DEFAULT]
[api]
[collector]
[compute]
[coordination]
[cors]
[cors.subdomain]
[database]
[dispatcher_file]
[dispatcher_gnocchi]
[event]
[exchange_control]
[hardware]
[ipmi]
[keystone_authtoken]
[matchmaker_redis]
[meter]
[notification]
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_policy]
[polling]
[publisher]
[publisher_notifier]
[rgw_admin_credentials]
[service_credentials]
[service_types]
[storage]
[vmware]
[xenapi]

3、根據(jù)官方安裝教程修改配置,修改完成后的內(nèi)容如下:

[DEFAULT]
meter_dispatchers=gnocchi
event_dispatchers=gnocchi
transport_url = rabbit://openstack:openstack@controller
[api]
[collector]
[compute]
[coordination]
[cors]
[cors.subdomain]
[database]
[dispatcher_file]
[dispatcher_gnocchi]
filter_service_activity = False
archive_policy = low
[event]
[exchange_control]
[hardware]
[ipmi]
[keystone_authtoken]
[matchmaker_redis]
[meter]
[notification]
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_policy]
[polling]
[publisher]
[publisher_notifier]
[rgw_admin_credentials]
[service_credentials]
auth_type = password
auth_url = http://controller:5000/v3 
project_domain_name = default 
user_domain_name = default 
project_name = service 
username = ceilometer 
password = ceilometer 
interface = internalURL 
region_name = RegionOne
[service_types]
[storage]
[vmware]
[xenapi]

關(guān)于“Openstack搭建過程中配置的小技巧有哪些”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。

分享文章:Openstack搭建過程中配置的小技巧有哪些
文章鏈接:http://muchs.cn/article0/ipgjoo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供用戶體驗、標簽優(yōu)化網(wǎng)站改版、App設(shè)計品牌網(wǎng)站制作、Google

廣告

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

小程序開發(fā)