基于NDB引擎的MySQL Cluster的部署規(guī)則及測試
本文選題:MySQL數(shù)據(jù)庫 + Cluster ; 參考:《山東大學(xué)》2015年碩士論文
【摘要】:隨著計(jì)算機(jī)技術(shù)和網(wǎng)絡(luò)的發(fā)展,數(shù)據(jù)庫集群技術(shù)的應(yīng)用越來越普遍。這是因?yàn)榧涸诟呖捎眯浴⒏咄掏侣、?shù)據(jù)一致性和容錯性等方面的表現(xiàn)突出。數(shù)據(jù)庫作為企業(yè)應(yīng)用系統(tǒng)中的核心,有著舉足輕重的作用。因此我們根據(jù)企業(yè)的生產(chǎn)需求對高性能的數(shù)據(jù)庫集群系統(tǒng)進(jìn)行研究是十分必要的。構(gòu)建數(shù)據(jù)庫集群能夠大大提高數(shù)據(jù)庫的吞吐率,還能有效減少數(shù)據(jù)庫請求的響應(yīng)時間。避免網(wǎng)絡(luò)服務(wù)中高數(shù)據(jù)訪問時產(chǎn)生的單點(diǎn)瓶頸問題。在數(shù)據(jù)庫集群系統(tǒng)的構(gòu)建與應(yīng)用中,負(fù)載均衡技術(shù)是決定集群性能優(yōu)劣的關(guān)鍵因素,好的負(fù)載均衡方案可以高效地將負(fù)載分發(fā)至集群的各個節(jié)點(diǎn),能大大降低集群因節(jié)點(diǎn)故障造成的影響。如今,數(shù)據(jù)庫集群技術(shù)在互聯(lián)網(wǎng)上已經(jīng)有了較為廣泛的應(yīng)用,F(xiàn)在也有一些應(yīng)用價值很高的產(chǎn)品和開源軟件供我們選擇使用。但是由于國外公司的技術(shù)封鎖,企業(yè)購買和維護(hù)設(shè)備的成本都比較高,而且國內(nèi)在集群技術(shù)的研究和應(yīng)用方面還處在起步階段。我們選用MySQL數(shù)據(jù)庫來搭建集群系統(tǒng),主要是考慮到MySQL數(shù)據(jù)庫以其開源免費(fèi)的特點(diǎn)受到企業(yè)的歡迎。搭建MySQL數(shù)據(jù)庫集群的重難點(diǎn)在于解決系統(tǒng)的負(fù)載均衡、數(shù)據(jù)同步和故障切換上,這些是實(shí)現(xiàn)高性能和高可用數(shù)據(jù)庫集群面臨的關(guān)鍵問題。本文根據(jù)山東省信息化人社建設(shè)的規(guī)劃方案和數(shù)據(jù)中心總體建設(shè)方案的整體需求,通過分析當(dāng)前社保系統(tǒng)使用的數(shù)據(jù)庫集群技術(shù)的特點(diǎn),結(jié)合幾種商業(yè)數(shù)據(jù)庫集群系統(tǒng)的架構(gòu)設(shè)計(jì),針對用戶對社保的具體應(yīng)用需求,我們設(shè)計(jì)并實(shí)現(xiàn)了一種采用非共享存儲架構(gòu)的基于NDB引擎的MySQL數(shù)據(jù)庫集群系統(tǒng)。該系統(tǒng)是可以構(gòu)建在廉價設(shè)備之上的具有高可用性、良好擴(kuò)展性和高性能的數(shù)據(jù)庫集群。它的主要特點(diǎn)是支持多客戶端的并發(fā)訪問,向客戶端應(yīng)用提供一個統(tǒng)一的虛擬IP地址,來連接MySQL集群中分布式部署的多個MySQL服務(wù)器;通過負(fù)載均衡技術(shù)實(shí)現(xiàn)了系統(tǒng)的高可用性和擴(kuò)展性,并將集群節(jié)點(diǎn)故障的影響大大減小,同時集群的負(fù)載調(diào)度節(jié)點(diǎn)采取主從互備的工作模式,可以保證系統(tǒng)的可持續(xù)應(yīng)用;在數(shù)據(jù)的更新上,每個節(jié)點(diǎn)上的數(shù)據(jù)會做到同步更新,從而保證了各個數(shù)據(jù)庫中數(shù)據(jù)的一致性。目前,系統(tǒng)已經(jīng)部署和測試完成,服務(wù)性能穩(wěn)定,初步達(dá)到預(yù)期效果。可以有效的進(jìn)行故障切換,負(fù)載均衡和數(shù)據(jù)同步,但是系統(tǒng)的穩(wěn)定性還有待提高。如果想在社保系統(tǒng)中使用我們還需要對系統(tǒng)進(jìn)一步的優(yōu)化處理。
[Abstract]:With the development of computer technology and network, the application of database cluster technology is becoming more and more common. This is due to cluster performance in high availability, high throughput, data consistency and fault tolerance. As the core of enterprise application system, database plays an important role. Therefore, it is necessary for us to study the high performance database cluster system according to the production demand of the enterprise. Constructing database cluster can greatly improve the throughput of database and reduce the response time of database request. To avoid the single point bottleneck problem caused by high data access in network service. In the construction and application of database cluster system, load balancing technology is the key factor to determine the performance of the cluster. A good load balancing scheme can distribute the load to each node of the cluster efficiently. It can greatly reduce the impact caused by node failure in the cluster. Nowadays, database cluster technology has been widely used on the Internet. There are also high-value products and open-source software that we can choose to use. However, due to the technology blockade of foreign companies, the cost of purchasing and maintaining equipment is relatively high, and the research and application of cluster technology in China is still in its infancy. We choose MySQL database to build cluster system, mainly considering that MySQL database is welcomed by enterprises because of its open source and free. The most difficult problem in building MySQL database cluster is to solve the problem of load balancing, data synchronization and failover. These are the key problems to realize high performance and high availability database cluster. According to the overall demand of the planning scheme of the construction of the information society of Shandong Province and the overall construction plan of the data center, this paper analyzes the characteristics of the database cluster technology used in the current social security system. Combined with the architecture design of several kinds of commercial database cluster system, we design and implement a kind of MySQL database cluster system based on NDB engine, which is based on the non-shared storage architecture, according to the specific application demand of users to social security. The system is a database cluster with high availability, good scalability and high performance. Its main feature is to support multi-client concurrent access, to provide a unified virtual IP address to client applications, to connect the distributed deployment of multiple MySQL servers in the MySQL cluster; The high availability and expansibility of the system are realized by load balancing technology, and the influence of the cluster node failure is greatly reduced. At the same time, the load scheduling node of the cluster adopts the mode of master-slave mutual backup, which can ensure the sustainable application of the system. In the updating of data, the data on each node will be updated synchronously, thus ensuring the consistency of the data in each database. At present, the system has been deployed and tested, the service performance is stable, and initially achieve the desired results. Fault switching, load balancing and data synchronization can be performed effectively, but the stability of the system needs to be improved. If we want to use the social security system, we need to further optimize the system.
【學(xué)位授予單位】:山東大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2015
【分類號】:TP311.13
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 呂律明;;PHP+MySQL環(huán)境下論壇的搭建[J];廣東交通職業(yè)技術(shù)學(xué)院學(xué)報(bào);2007年01期
2 袁萌;;MySQL讓自由力量放光彩[J];信息系統(tǒng)工程;2007年05期
3 ;怎樣使MySQL安全以對抗解密高手[J];計(jì)算機(jī)與網(wǎng)絡(luò);2012年23期
4 范新民;;高并發(fā)環(huán)境下MySQL軟硬件配置優(yōu)化[J];福建師范大學(xué)學(xué)報(bào)(自然科學(xué)版);2013年06期
5 何世明;利用MySQL C接口實(shí)現(xiàn)多用戶通信[J];計(jì)算機(jī)時代;2003年05期
6 郭小雪;楊洪升;;基于PHP/MySQL的古漢語語料庫系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[J];茂名學(xué)院學(xué)報(bào);2005年06期
7 ;如何保護(hù)MySQL重要數(shù)據(jù)[J];每周電腦報(bào);2006年33期
8 彭敏;;MySQL進(jìn)軍企業(yè)級[J];軟件世界;2006年21期
9 ;MySQL CEO首次訪華 力推企業(yè)級應(yīng)用[J];中國政府采購;2007年04期
10 陳巧;吳峻;;基于Mysql的各高校醫(yī)學(xué)視頻資源跨庫的共享[J];電腦與電信;2007年10期
相關(guān)會議論文 前10條
1 趙志敏;;MySQL查詢高速緩沖關(guān)鍵技術(shù)研究[A];2009年研究生學(xué)術(shù)交流會通信與信息技術(shù)論文集[C];2009年
2 梁勇;陽國貴;;MySQL數(shù)據(jù)庫的事務(wù)一致性研究[A];2009通信理論與技術(shù)新發(fā)展——第十四屆全國青年通信學(xué)術(shù)會議論文集[C];2009年
3 王靈;;MySQL數(shù)據(jù)庫在氣象網(wǎng)站中的應(yīng)用[A];數(shù)據(jù)庫技術(shù)在氣象領(lǐng)域的應(yīng)用學(xué)術(shù)會議論文集[C];2001年
4 秦金;徐國勝;;基于DHT的分布式MySQL復(fù)制方案設(shè)計(jì)[A];第九屆中國通信學(xué)會學(xué)術(shù)年會論文集[C];2012年
5 Miki Shimizu;;在NetBeans中構(gòu)建一個簡單的MySQL客戶端[A];促進(jìn)企業(yè)信息化進(jìn)程——第九屆中國Java技術(shù)及應(yīng)用交流大會文集[C];2006年
6 陳海陽;劉秀軍;黃江華;;基于JSP與MySQL巡更巡檢信息系統(tǒng)的開發(fā)與應(yīng)用[A];山東省測繪學(xué)術(shù)年會論文集[C];2006年
7 羅凡;彭秀增;申春;李肅義;;MySQL中InnoDB引擎索引樹的搜索策略[A];2006年全國理論計(jì)算機(jī)科學(xué)學(xué)術(shù)年會論文集[C];2006年
8 殷麗;徐海華;吳海濤;;MySQL查詢優(yōu)化技術(shù)——索引[A];第八屆工業(yè)儀表與自動化學(xué)術(shù)會議論文集[C];2007年
9 徐海華;殷麗;吳海濤;;MySQL觸發(fā)器在生產(chǎn)安全檢查系統(tǒng)中的應(yīng)用[A];上海市化學(xué)化工學(xué)會2006年度學(xué)術(shù)年會論文摘要集[C];2006年
10 丁悅;吳海濤;;MySQL存儲過程在生產(chǎn)安全檢查系統(tǒng)中的應(yīng)用[A];第八屆工業(yè)儀表與自動化學(xué)術(shù)會議論文集[C];2007年
相關(guān)重要報(bào)紙文章 前10條
1 鄒大斌;MySQL走向高端應(yīng)用[N];計(jì)算機(jī)世界;2007年
2 邊歆;MySQL:成長的煩惱[N];網(wǎng)絡(luò)世界;2008年
3 四木;MySQL挺進(jìn)中端市場[N];計(jì)算機(jī)世界;2003年
4 本報(bào)記者 于翔;MySQL前景依然迷茫[N];網(wǎng)絡(luò)世界;2010年
5 清水 編譯 鄒大斌;擔(dān)憂MySQL的未來[N];計(jì)算機(jī)世界;2010年
6 于辰濤;MySQL以速度為目標(biāo)[N];計(jì)算機(jī)世界;2002年
7 江蘇省揚(yáng)州市邗江區(qū)泰安學(xué)校 高超;PHP+MySQL論壇簡易通[N];中國電腦教育報(bào);2006年
8 張振;攜手萬里開源 MySQL設(shè)立中國研發(fā)中心[N];電腦商報(bào);2006年
9 本報(bào)記者 于翔;甲骨文的MySQL承諾能否穩(wěn)定民心?[N];網(wǎng)絡(luò)世界;2010年
10 王翔;MySQL前路多艱[N];網(wǎng)絡(luò)世界;2010年
相關(guān)碩士學(xué)位論文 前10條
1 李紅艷;基于NDB引擎的MySQL Cluster的部署規(guī)則及測試[D];山東大學(xué);2015年
2 丁相民;多租戶SaaS應(yīng)用中的MySQL集群性能研究[D];山東大學(xué);2015年
3 劉姍;一種改進(jìn)的MySQL數(shù)據(jù)庫訪問控制的設(shè)計(jì)與實(shí)現(xiàn)[D];華中科技大學(xué);2011年
4 陳錦偉;基于MySQL的空間數(shù)據(jù)庫關(guān)鍵技術(shù)研究[D];南京郵電大學(xué);2013年
5 秦金;分布式MySQL副本控制的研究與實(shí)現(xiàn)[D];北京郵電大學(xué);2013年
6 孫輝;MySQL查詢優(yōu)化的研究和改進(jìn)[D];華中科技大學(xué);2007年
7 王威;MySQL數(shù)據(jù)庫源代碼分析及存儲引擎的設(shè)計(jì)[D];南京郵電大學(xué);2012年
8 劉騰;MySQL復(fù)制技術(shù)的研究與改進(jìn)[D];浙江大學(xué);2011年
9 穆微微;基于PHP+MySQL的數(shù)字化出版系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[D];吉林大學(xué);2011年
10 韋一鳴;基于MySQL復(fù)制技術(shù)的數(shù)據(jù)庫集群研究[D];杭州電子科技大學(xué);2014年
,本文編號:1881485
本文鏈接:http://sikaile.net/shekelunwen/shehuibaozhanglunwen/1881485.html