面向有狀態(tài)服務(wù)的服務(wù)永續(xù)問(wèn)題研究
本文關(guān)鍵詞:面向有狀態(tài)服務(wù)的服務(wù)永續(xù)問(wèn)題研究 出處:《四川師范大學(xué)》2013年碩士論文 論文類(lèi)型:學(xué)位論文
更多相關(guān)文章: 有狀態(tài)服務(wù) 分布式 Paxos 算法 服務(wù)永續(xù) 模型
【摘要】:諸如銀行業(yè)務(wù)、航空預(yù)定、通信、網(wǎng)絡(luò)支付、在線文件傳輸、在線視頻會(huì)議等諸多行業(yè)對(duì)服務(wù)器要求甚高,幾分鐘的服務(wù)中斷可能對(duì)這些行業(yè)造成數(shù)以萬(wàn)計(jì)美元的損失。服務(wù)器全天候24小時(shí)不間斷的工作是這些行業(yè)追求的理想目標(biāo),服務(wù)宕機(jī)會(huì)給企業(yè)帶來(lái)直接的巨額經(jīng)濟(jì)損失,甚至影響企業(yè)在公眾中的形象。因此,這些企業(yè)不惜花費(fèi)巨資來(lái)提高服務(wù)器的穩(wěn)定性。如何提高系統(tǒng)穩(wěn)定性,確保服務(wù)永續(xù),成為迫切需要解決的問(wèn)題。服務(wù)分為有狀態(tài)服務(wù)和無(wú)狀態(tài)服務(wù),本文主要針對(duì)有狀態(tài)服務(wù)的服務(wù)永續(xù)問(wèn)題展開(kāi)研究,對(duì)有狀態(tài)服務(wù)和無(wú)狀態(tài)服務(wù)進(jìn)行了區(qū)分,建立了服務(wù)永續(xù)模型,對(duì)服務(wù)狀態(tài)客戶(hù)端存儲(chǔ)、服務(wù)狀態(tài)共享存儲(chǔ)以及基于改進(jìn)的Paxos算法的業(yè)務(wù)同步3種策略進(jìn)行了設(shè)計(jì)與實(shí)現(xiàn),設(shè)計(jì)基于分布式的文件傳輸系統(tǒng),通過(guò)這三種策略有效解決了服務(wù)的永續(xù)問(wèn)題,保證服務(wù)不中斷。論文的主要工作及創(chuàng)新點(diǎn)有以下幾點(diǎn): (1)針對(duì)服務(wù)的狀態(tài),詳盡討論了有狀態(tài)服務(wù)和無(wú)狀態(tài)服務(wù),建立了有狀態(tài)服務(wù)的永續(xù)模型。該模型采用分布式架構(gòu)體系,通過(guò)數(shù)學(xué)推導(dǎo),能有效解決服務(wù)的可續(xù)問(wèn)題。 (2)對(duì)目前解決服務(wù)永續(xù)模型的技術(shù)進(jìn)行了分類(lèi)歸納,總結(jié)出了三種解決服務(wù)永續(xù)問(wèn)題的方案,,即服務(wù)狀態(tài)客戶(hù)端存儲(chǔ)技術(shù)、基于服務(wù)狀態(tài)共享存儲(chǔ)技術(shù)以及基于Paxos算法的業(yè)務(wù)同步。 (3)深入了解分析Paxos算法,通過(guò)圖形化的方式對(duì)其過(guò)程進(jìn)行闡述,在此基礎(chǔ)之上,對(duì)Paxos算法進(jìn)行了改進(jìn),通過(guò)引入leader角色增強(qiáng)了程序的可執(zhí)行性,避免了proposer角色不停請(qǐng)求prepare服務(wù)而導(dǎo)致死鎖情況的發(fā)生。結(jié)合消息傳遞和共享內(nèi)存技術(shù),將Paxos算法由單純的消息傳遞變?yōu)榭墒褂貌糠止蚕泶鎯?chǔ)技術(shù)的結(jié)合體,該改進(jìn)對(duì)利用Paxos算法解決分布式下服務(wù)永續(xù)問(wèn)題具有較強(qiáng)的價(jià)值,從理論和實(shí)踐意義上保證了分布式服務(wù)的永續(xù)。 (4)結(jié)合總結(jié)出的三種解決服務(wù)永續(xù)問(wèn)題的技術(shù),通過(guò)設(shè)計(jì)分布式文件傳輸系統(tǒng)分別對(duì)服務(wù)狀態(tài)客戶(hù)端存儲(chǔ)、服務(wù)狀態(tài)共享存儲(chǔ)以及改進(jìn)的Paxos算法進(jìn)行實(shí)驗(yàn)驗(yàn)證,尤其對(duì)改進(jìn)的基于Paxos算法業(yè)務(wù)同步解決服務(wù)永續(xù)問(wèn)題的方案進(jìn)行了驗(yàn)證,并與客戶(hù)端存儲(chǔ)技術(shù)、服務(wù)端服務(wù)狀態(tài)共享存儲(chǔ)進(jìn)行比較,得出改進(jìn)的Paxos算法解決服務(wù)永續(xù)問(wèn)題更具穩(wěn)定性,執(zhí)行效率更高的結(jié)論。
[Abstract]:Many industries, such as banking, aviation reservation, communications, network payment, online file transmission, online video conferencing and so on, have high requirements for servers. A few minutes of service outages could cost these industries tens of thousands of dollars. Working 24 hours a day on servers is an ideal goal for these industries. Service downtime will bring direct huge economic losses to enterprises, even affect the image of enterprises in the public. Therefore, these enterprises do not hesitate to spend a lot of money to improve the stability of the server. How to improve the stability of the system. To ensure service sustainability is an urgent problem. Services are divided into stateful services and stateless services. This paper mainly focuses on the service sustainability of stateful services. The paper distinguishes stateful service from stateless service, establishes service persistence model and stores service state client. Service state sharing storage and service synchronization based on improved Paxos algorithm are designed and implemented. A distributed file transfer system is designed. Through these three strategies, we can effectively solve the problem of service sustainability and ensure that the service will not be interrupted. The main work and innovation of this paper are as follows: 1) according to the state of the service, the paper discusses the stateful service and stateless service in detail, and establishes the sustainable model of the stateful service, which adopts the distributed architecture system and is deduced by mathematics. Can effectively solve the problem of service continuity. In this paper, the current technology of service sustainability model is classified and summarized, and three solutions to service sustainability are summarized, that is, service state client storage technology. Service state sharing storage technology and service synchronization based on Paxos algorithm. 3) deeply understand and analyze the Paxos algorithm, explain its process through graphic way, and improve the Paxos algorithm on this basis. The program's executable is enhanced by introducing the leader role. Avoid deadlock caused by the proposer role constantly requesting prepare service. Combine message passing and shared memory technology. The Paxos algorithm is changed from simple message passing to a combination of partially shared storage technology. This improvement has a strong value to solve the problem of service sustainability in distributed environment by using Paxos algorithm. In the sense of theory and practice, the sustainability of distributed services is guaranteed. Combined with the three technologies to solve the service sustainability problem, the distributed file transfer system is designed to store the service state client. The service state sharing storage and the improved Paxos algorithm are tested, especially the improved service synchronization solution based on the Paxos algorithm is verified. Compared with client storage technology and server service state shared storage, the improved Paxos algorithm is more stable and more efficient to solve the service sustainability problem.
【學(xué)位授予單位】:四川師范大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類(lèi)號(hào)】:TP368.5;TP301.6
【參考文獻(xiàn)】
相關(guān)期刊論文 前7條
1 殷昱煜;李瑩;鄧水光;尹建偉;;Web服務(wù)行為一致性與相容性判定[J];電子學(xué)報(bào);2009年03期
2 王明;張春熹;伊小素;;基于自適應(yīng)心跳算法的分布式系統(tǒng)故障檢測(cè)器[J];北京航空航天大學(xué)學(xué)報(bào);2013年07期
3 ;中國(guó)萬(wàn)網(wǎng)推出不中斷服務(wù)的新技術(shù)[J];電腦編程技巧與維護(hù);2001年04期
4 許子燦;吳榮泉;;基于消息傳遞的Paxos算法研究[J];計(jì)算機(jī)工程;2011年21期
5 張文濤;彭泳;陳俊亮;;會(huì)話類(lèi)E-Service的接口兼容和服務(wù)組合分析[J];計(jì)算機(jī)學(xué)報(bào);2006年07期
6 胡昊;殷琴;呂建;;虛擬計(jì)算環(huán)境中服務(wù)行為與質(zhì)量的一致性[J];軟件學(xué)報(bào);2007年08期
7 許平;;Turbo Linux Cluster集群技術(shù)研究及在ISP/ICP上的應(yīng)用[J];江漢大學(xué)學(xué)報(bào)(自然科學(xué)版);2007年02期
本文編號(hào):1438566
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1438566.html