基于內(nèi)存的分布式緩存系統(tǒng)設(shè)計
發(fā)布時間:2018-04-27 20:40
本文選題:分布式 + 內(nèi)存。 參考:《華中師范大學(xué)》2012年碩士論文
【摘要】:隨著互聯(lián)網(wǎng)WEB2.0時代的到來,信息傳播的廣度和深度都達(dá)到了一個新的高度。傳統(tǒng)的網(wǎng)站都是用數(shù)據(jù)庫來進(jìn)行數(shù)據(jù)的存儲、檢索和更新,但隨著訪問量的增加,將導(dǎo)致數(shù)據(jù)庫服務(wù)器系統(tǒng)資源緊缺,查詢操作響應(yīng)變慢,網(wǎng)站用戶體驗變差。因此,開發(fā)緩存系統(tǒng)具有廣泛的應(yīng)用前景。 本文根據(jù)應(yīng)用中一部分檢索數(shù)據(jù)庫的操作具有邏輯相同,請求頻繁的特點,結(jié)合內(nèi)存讀寫速率快的特點,提出并設(shè)計了一款分布式內(nèi)存緩存系統(tǒng)。該系統(tǒng)采用物理內(nèi)存作為數(shù)據(jù)存儲介質(zhì),使用客戶端/服務(wù)器的軟件結(jié)構(gòu),通過在客戶端應(yīng)用分布式哈希算法實現(xiàn)了分布式存儲的功能,并開發(fā)了PHP及Python的編程接口,給應(yīng)用開發(fā)提供了一套可供簡單調(diào)用的高性能存儲服務(wù)。 本文主要介紹了分布式內(nèi)存緩存系統(tǒng)的體系結(jié)構(gòu)以及各個層次的具體實現(xiàn)。本設(shè)計主要分為以下四個方面的內(nèi)容:在數(shù)據(jù)庫檢索方案性能有限,迫切需要提高網(wǎng)站瀏覽體驗的前提下,調(diào)研并提出了分布式內(nèi)存緩存系統(tǒng)的完整設(shè)計方案;介紹了作為系統(tǒng)存儲單元的內(nèi)存緩存系統(tǒng)的設(shè)計及主要功能模塊;通過采用哈希算法的客戶端來將請求分散到不同的內(nèi)存緩存節(jié)點上,達(dá)到分布式的效果;最后根據(jù)前臺開發(fā)的特點,實現(xiàn)了PHP及Python的調(diào)用接口。 通過將緩存系統(tǒng)讀性能和數(shù)據(jù)庫檢索的壓力測試結(jié)果進(jìn)行對比,表明該系統(tǒng)具有較好的讀性能和實用性。
[Abstract]:With the advent of Internet WEB2.0 era, the breadth and depth of information dissemination has reached a new height. Traditional websites use databases to store, retrieve and update data, but with the increase of visits, the database server system resources will be scarce, the response of query operations will become slow, and the site user experience will become worse. Therefore, the development of cache system has a wide range of application prospects. In this paper, a distributed memory cache system is proposed and designed according to the characteristics of the same logic and frequent requests in part of the retrieval database in the application, combined with the characteristics of fast memory reading and writing rate. The system adopts physical memory as data storage medium, uses the software structure of client / server, realizes the function of distributed storage by applying distributed hash algorithm in client, and develops the programming interfaces of PHP and Python. It provides a set of high performance storage service for application development. This paper mainly introduces the architecture of distributed memory cache system and the implementation of each level. This design is mainly divided into the following four aspects: under the premise of limited performance of database retrieval scheme and urgent need to improve website browsing experience, a complete design scheme of distributed memory cache system is proposed; This paper introduces the design and main function modules of the memory cache system as the storage unit of the system, distributes the request to different memory cache nodes by using the client of the hash algorithm, and achieves the distributed effect. Finally, according to the characteristics of foreground development, the calling interface of PHP and Python is realized. By comparing the read performance of the cache system with the stress test results of database retrieval, it is shown that the system has good reading performance and practicability.
【學(xué)位授予單位】:華中師范大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2012
【分類號】:TP333;TP311.13
【參考文獻(xiàn)】
相關(guān)期刊論文 前5條
1 張飛,姜進(jìn)磊,李慶虎;利用MySQL構(gòu)建分布式應(yīng)用[J];計算機(jī)工程與應(yīng)用;2001年18期
2 胡志華;王玨明;;動態(tài)Web Cache系統(tǒng)研究與探討[J];計算機(jī)應(yīng)用與軟件;2006年09期
3 許艷美,肖宗水,梁f;Web緩存服務(wù)器技術(shù)研究與應(yīng)用[J];計算機(jī)工程與設(shè)計;2005年01期
4 趙慶敏,李偉平;多處理機(jī)系統(tǒng)分析[J];微計算機(jī)應(yīng)用;2005年01期
5 周淦淼;譚石強(qiáng);;基于Memcached的MySQL查詢優(yōu)化[J];現(xiàn)代計算機(jī)(專業(yè)版);2009年05期
,本文編號:1812254
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1812254.html
最近更新
教材專著