基于NDB引擎的MySQL Cluster的部署規(guī)則及測試
本文選題:MySQL數據庫 + Cluster。 參考:《山東大學》2015年碩士論文
【摘要】:隨著計算機技術和網絡的發(fā)展,數據庫集群技術的應用越來越普遍。這是因為集群在高可用性、高吞吐率、數據一致性和容錯性等方面的表現突出。數據庫作為企業(yè)應用系統中的核心,有著舉足輕重的作用。因此我們根據企業(yè)的生產需求對高性能的數據庫集群系統進行研究是十分必要的。構建數據庫集群能夠大大提高數據庫的吞吐率,還能有效減少數據庫請求的響應時間。避免網絡服務中高數據訪問時產生的單點瓶頸問題。在數據庫集群系統的構建與應用中,負載均衡技術是決定集群性能優(yōu)劣的關鍵因素,好的負載均衡方案可以高效地將負載分發(fā)至集群的各個節(jié)點,能大大降低集群因節(jié)點故障造成的影響。如今,數據庫集群技術在互聯網上已經有了較為廣泛的應用,F在也有一些應用價值很高的產品和開源軟件供我們選擇使用。但是由于國外公司的技術封鎖,企業(yè)購買和維護設備的成本都比較高,而且國內在集群技術的研究和應用方面還處在起步階段。我們選用MySQL數據庫來搭建集群系統,主要是考慮到MySQL數據庫以其開源免費的特點受到企業(yè)的歡迎。搭建MySQL數據庫集群的重難點在于解決系統的負載均衡、數據同步和故障切換上,這些是實現高性能和高可用數據庫集群面臨的關鍵問題。本文根據山東省信息化人社建設的規(guī)劃方案和數據中心總體建設方案的整體需求,通過分析當前社保系統使用的數據庫集群技術的特點,結合幾種商業(yè)數據庫集群系統的架構設計,針對用戶對社保的具體應用需求,我們設計并實現了一種采用非共享存儲架構的基于NDB引擎的MySQL數據庫集群系統。該系統是可以構建在廉價設備之上的具有高可用性、良好擴展性和高性能的數據庫集群。它的主要特點是支持多客戶端的并發(fā)訪問,向客戶端應用提供一個統一的虛擬IP地址,來連接MySQL集群中分布式部署的多個MySQL服務器;通過負載均衡技術實現了系統的高可用性和擴展性,并將集群節(jié)點故障的影響大大減小,同時集群的負載調度節(jié)點采取主從互備的工作模式,可以保證系統的可持續(xù)應用;在數據的更新上,每個節(jié)點上的數據會做到同步更新,從而保證了各個數據庫中數據的一致性。目前,系統已經部署和測試完成,服務性能穩(wěn)定,初步達到預期效果?梢杂行У倪M行故障切換,負載均衡和數據同步,但是系統的穩(wě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.
【學位授予單位】:山東大學
【學位級別】:碩士
【學位授予年份】:2015
【分類號】:TP311.13
【相似文獻】
相關期刊論文 前10條
1 呂律明;;PHP+MySQL環(huán)境下論壇的搭建[J];廣東交通職業(yè)技術學院學報;2007年01期
2 袁萌;;MySQL讓自由力量放光彩[J];信息系統工程;2007年05期
3 ;怎樣使MySQL安全以對抗解密高手[J];計算機與網絡;2012年23期
4 范新民;;高并發(fā)環(huán)境下MySQL軟硬件配置優(yōu)化[J];福建師范大學學報(自然科學版);2013年06期
5 何世明;利用MySQL C接口實現多用戶通信[J];計算機時代;2003年05期
6 郭小雪;楊洪升;;基于PHP/MySQL的古漢語語料庫系統的設計與實現[J];茂名學院學報;2005年06期
7 ;如何保護MySQL重要數據[J];每周電腦報;2006年33期
8 彭敏;;MySQL進軍企業(yè)級[J];軟件世界;2006年21期
9 ;MySQL CEO首次訪華 力推企業(yè)級應用[J];中國政府采購;2007年04期
10 陳巧;吳峻;;基于Mysql的各高校醫(yī)學視頻資源跨庫的共享[J];電腦與電信;2007年10期
相關會議論文 前10條
1 趙志敏;;MySQL查詢高速緩沖關鍵技術研究[A];2009年研究生學術交流會通信與信息技術論文集[C];2009年
2 梁勇;陽國貴;;MySQL數據庫的事務一致性研究[A];2009通信理論與技術新發(fā)展——第十四屆全國青年通信學術會議論文集[C];2009年
3 王靈;;MySQL數據庫在氣象網站中的應用[A];數據庫技術在氣象領域的應用學術會議論文集[C];2001年
4 秦金;徐國勝;;基于DHT的分布式MySQL復制方案設計[A];第九屆中國通信學會學術年會論文集[C];2012年
5 Miki Shimizu;;在NetBeans中構建一個簡單的MySQL客戶端[A];促進企業(yè)信息化進程——第九屆中國Java技術及應用交流大會文集[C];2006年
6 陳海陽;劉秀軍;黃江華;;基于JSP與MySQL巡更巡檢信息系統的開發(fā)與應用[A];山東省測繪學術年會論文集[C];2006年
7 羅凡;彭秀增;申春;李肅義;;MySQL中InnoDB引擎索引樹的搜索策略[A];2006年全國理論計算機科學學術年會論文集[C];2006年
8 殷麗;徐海華;吳海濤;;MySQL查詢優(yōu)化技術——索引[A];第八屆工業(yè)儀表與自動化學術會議論文集[C];2007年
9 徐海華;殷麗;吳海濤;;MySQL觸發(fā)器在生產安全檢查系統中的應用[A];上海市化學化工學會2006年度學術年會論文摘要集[C];2006年
10 丁悅;吳海濤;;MySQL存儲過程在生產安全檢查系統中的應用[A];第八屆工業(yè)儀表與自動化學術會議論文集[C];2007年
相關重要報紙文章 前10條
1 鄒大斌;MySQL走向高端應用[N];計算機世界;2007年
2 邊歆;MySQL:成長的煩惱[N];網絡世界;2008年
3 四木;MySQL挺進中端市場[N];計算機世界;2003年
4 本報記者 于翔;MySQL前景依然迷茫[N];網絡世界;2010年
5 清水 編譯 鄒大斌;擔憂MySQL的未來[N];計算機世界;2010年
6 于辰濤;MySQL以速度為目標[N];計算機世界;2002年
7 江蘇省揚州市邗江區(qū)泰安學校 高超;PHP+MySQL論壇簡易通[N];中國電腦教育報;2006年
8 張振;攜手萬里開源 MySQL設立中國研發(fā)中心[N];電腦商報;2006年
9 本報記者 于翔;甲骨文的MySQL承諾能否穩(wěn)定民心?[N];網絡世界;2010年
10 王翔;MySQL前路多艱[N];網絡世界;2010年
相關碩士學位論文 前10條
1 李紅艷;基于NDB引擎的MySQL Cluster的部署規(guī)則及測試[D];山東大學;2015年
2 丁相民;多租戶SaaS應用中的MySQL集群性能研究[D];山東大學;2015年
3 劉姍;一種改進的MySQL數據庫訪問控制的設計與實現[D];華中科技大學;2011年
4 陳錦偉;基于MySQL的空間數據庫關鍵技術研究[D];南京郵電大學;2013年
5 秦金;分布式MySQL副本控制的研究與實現[D];北京郵電大學;2013年
6 孫輝;MySQL查詢優(yōu)化的研究和改進[D];華中科技大學;2007年
7 王威;MySQL數據庫源代碼分析及存儲引擎的設計[D];南京郵電大學;2012年
8 劉騰;MySQL復制技術的研究與改進[D];浙江大學;2011年
9 穆微微;基于PHP+MySQL的數字化出版系統的設計與實現[D];吉林大學;2011年
10 韋一鳴;基于MySQL復制技術的數據庫集群研究[D];杭州電子科技大學;2014年
,本文編號:1881485
本文鏈接:http://sikaile.net/shekelunwen/shehuibaozhanglunwen/1881485.html