Middleware-for-High-Availability-and-Scalability-in-Multi-Tier-and-Service-Oriented-Architectures.ppt
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Middleware for High Availability and Scalability in Multi Tier Service Oriented Architectures
- 资源描述:
-
Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,May 13th 2009,Ph.D.Thesis Francisco Prez-Sorrosal,*,Middleware for,High Availability and Scalability,in Multi-Tier and Service-OrientedArchitectures,Francisco P,rez-,Sorrosal,Advisor:Marta,Patio-Martnez,Distributed Systems Laboratory(DSL/LSD),Universidad,Politcnica,de Madrid,Madrid,Spain,Motivation,Ph.D.Thesis Francisco Prez-Sorrosal,2,Data,Services,Company A,Apps.,Stateful Data&,Transactions,EXPENSIVE,May 13th 2009,Motivation,Ph.D.Thesis Francisco Prez-Sorrosal,3,Data,Services,Company B,Services,Data,Services,Apps.,Apps.,Apps,.,Data,State,Consistency,Cluster,Replica,May 13th 2009,Motivation,Ph.D.Thesis Francisco Prez-Sorrosal,4,Service A,Company A,Company B,Service B,Service C,Critical Service,Composite,Application,May 13th 2009,Outline,High Availability(HA)and Scalability in Multi-Tier Architectures,Protocols for High Availability in MTAs,A Protocol for HA and Scalability in MTAs,High Availability in Service-Oriented Architectures,WS-Replication Framework,Conclusion,Publications,Ph.D.Thesis Francisco Prez-Sorrosal,5,May 13th 2009,Multi-tier Architectures:Motivation,Great success of MTAs,CORBA,.NET&J(2)EE,Cache requires,concurrency control,Serializability,Synchronization with the underlying database,Many databases provide,Classical isolation levels+,Snapshot Isolation,Ph.D.Thesis Francisco Prez-Sorrosal,6,Cache,Application,Server,May 13th 2009,HA and Scalability in MTAs:Context,J2EE application servers,Transactional Services,:,ACID Transactions(,JTA,),Advanced Transactions(,Activity Service,),Our implementation available at,http:,jass.objectweb.org,Component Model,:Enterprise Java Beans(,EJBs,),Stateless(SLSB)and,Stateful,(SFSB)Session Beans,Entity Beans(EB)&Message-Driven(MDB),When replicating EJBs:,SLSBs&MDBs,don,t keep state=,NOT Replicated,SFSB,beans,keep client-related state,across requests,EBs,represent persistent data,in a,datasource,Ph.D.Thesis Francisco Prez-Sorrosal,7,May 13th 2009,Horizontal Replication(DB Replication),Ph.D.Thesis Francisco Prez-Sorrosal,8,BOTTLENECK,&SINGLE POINT,OF FAILURE,X,X,(X),X,Replication,Protocol,May 13th 2009,Horizontal Replication(App.Server Replication),Ph.D.Thesis Francisco Prez-Sorrosal,9,BOTTLENECK,&SINGLE POINT,OF FAILURE,(X),X,(X),(X),Replication,Protocol,May 13th 2009,Horizontal Replication(AS and DB Replication),Ph.D.Thesis Francisco Prez-Sorrosal,10,COMPLEX,(X),(X),(X),X,X,X,Replication,Protocols,May 13th 2009,Our Solution:Vertical Replication,No single,bottleneck,No single,point of failure,Only one,replication protocol,Ph.D.Thesis Francisco Prez-,Sorrosal,11,Unit of,Replication,Replication,Protocol,May 13th 2009,Outline,High Availability(HA)and Scalability in Multi-Tier Architectures,Protocols for High Availability in MTAs,A Protocol for HA and Scalability in MTAs,High Availability in Service-Oriented Architectures,WS-Replication Framework,Conclusions,Publications,Ph.D.Thesis Francisco Prez-Sorrosal,12,May 13th 2009,Protocols for HA in MTAs,Consider,session data,(,SFSBs,),and,persistent data(,EBs,),Are,transaction,aware,&,mask failures transparently,Approach:,Vertical Replication,+,Primary-Backup,Ph.D.Thesis Francisco Prez-Sorrosal,13,App.,Server,DB,Primary,App.,Server,DB,Backup,Client,Cluster,Primary,GCS,May 13th 2009,Our protocols offer.,Data consistency,in all the re,plicas,Vertical replication+transaction management,1-copy correctness,Exactly-once execution,The client performs a,request only once,and,gets the results also only once,High available transactions,The replication protocols are,transaction-aware,Transactions are,not aborted if the primary fails,Different interaction patterns,1 Req/1 Tx,N Req/1 Tx,1 Req/N Txs and N Req/M Txs,Ph.D.Thesis Francisco Prez-Sorrosal,14,May 13th 2009,N,requests/1,transaction:Goals,Support,transactional conversations,Several client requests inside a single transaction,Upon failover,resume the conversation from the last interaction,Do not abort ongoing transactions,Ph.D.Thesis Francisco Prez-Sorrosal,15,May 13th 2009,N,requests,/1,transaction,Ph.D.Thesis Francisco Prez-Sorrosal,16,T1,Client invocations inside T1,T2,Client invocation that requires a new TX T2,May 13th 2009,N,Req,/1 TX Replication Protocol:Primary(Begin),Ph.D.Thesis Francisco Prez-Sorrosal,17,TM,Backup,Interceptors,Primary,beginTx,Backup,beginTx+TxId,Client,TxId,TxId,May 13th 2009,Replication Protocol:Backup(Begin),Ph.D.Thesis Francisco Prez-Sorrosal,18,TxTable,Interceptors,Backup,beginTx+TxId,Store TxId,May 13th 2009,Replication Protocol:Primary(Invocation),Ph.D.Thesis Francisco Prez-Sorrosal,19,Backup,Interceptors,Primary,EJB,EJB,EJB,EJB,Backup,TxId+Bean changes+Response,Client,TxId,Response,May 13th 2009,Replication Protocol:Backup(Invocation),Ph.D.Thesis Francisco Prez-Sorrosal,20,Uncommitted Table,Interceptors,Backup,Response Table,Apply,Save,SFSB,TxId+Bean changes+Response,EB,May 13th 2009,Replication Protocol:Primary(Commit/Abort),Ph.D.Thesis Francisco Prez-Sorrosal,21,TM,Backup,Interceptors,Primary,commit/abort Tx,Backup,Commit/abort Tx+TxId,Client,EB,DB,EB,EB,May 13th 2009,Replication Protocol:Backup(Commit/Abort),Ph.D.Thesis Francisco Prez-Sorrosal,22,Uncommitted Table,Interceptors,Backup,Apply,SFSB,commitTx,+TxId,EB,EB,DB,EB,EB,May 13th 2009,Replication Protocol:Failover,Ph.D.Thesis Francisco Prez-Sorrosal,23,Interceptors,Backup,Primary,TxTable,Uncommitted Table,Apply,SFSB,EB,TM,For each,non-completed,Tx,.,Create,Response Table,Client,TxId,Response,NOT FOUND,RE-EXECUTE REQUEST,May 13th 2009,Evaluation:,ECPerf,Benchmark to,evaluate,the throughput and scalability of,J2EE Application Servers,Emulates,the processes involved in,a supply-chain management scenario,The load,is measured as the Injection Rate(,IR,),#of clients=IR*5,Throughput,is given in Benchmark Business Operations per Minute(,BBOps/Min,),Ph.D.Thesis Francisco Prez-Sorrosal,24,May 13th 2009,Experiment Setup,JBoss,Non-replicated,JBoss Primary-Backup,Only SFSB replication,Shared DB,Our replication protocol,Primary-Backup+Vertical replication,SFSB&EB replication,Transaction aware,Ph.D.Thesis Francisco Prez-Sorrosal,25,J2EE App.,Server,Host 2,Client,DB,Host 3,Host 1,J2EE App.,Server,Host 2,Client,Cluster,DB,Host 3,Host 1,J2EE App.,Server,Backup,Host 4,Cluster,J2EE App.,Server,Host 2,Client,DB,Host 3,Host 1,J2EE App.,Server,Backup,Host 4,DB,Backup,Host 5,May 13th 2009,ECPerf:Throughput,Ph.D.Thesis Francisco Prez-Sorrosal,26,17,20%,21,May 13th 2009,ECPerf,:Response Time,Ph.D.Thesis Francisco Prez-Sorrosal,27,ECPerf Limit,May 13th 2009,Outline,High Availability(HA)and Scalability in Multi-Tier Architectures,Protocols for High Availability in MTAs,A Protocol for HA and Scalability in MTAs,High Availability in Service-Oriented Architectures,WS-Replication Framework,Conclusions,Publications,Ph.D.Thesis Francisco Prez-Sorrosal,28,May 13th 2009,Limitations of Current Middleware for HA in MTAs,Mismatch,between isolation at Application Server and DBMS,Current application servers do not work correctly with SI databases,Snapshot Isolation,(,SI,)has become,the,“,de-facto,”,standard,isolation level,Current middleware,does not scale-out stateful applications consistently,Ph.D.Thesis Francisco Prez-Sorrosal,29,May 13th 2009,Our Protocol for HA and Scalability in MTAs,Is,consistent,high,available,and,scalable,Includes a,SI cache,at the middleware level for correctness and performance in a single replica,SI cache is,combined with replication,for scalability and fault-tolerance in a cluster,Vertical replication,Only-one replication protocol coordinates the execution,of transactions and the propagation of changes in a cluster,Ph.D.Thesis Francisco Prez-Sorrosal,30,May 13th 2009,Snapshot Isolation,Ph.D.Thesis Francisco Prez-Sorrosal,31,Start Timestamp=10,Reads the version of T,Reads the version of T,Previous TX T,has written X,so C=10,Start Timestamp=11,Reads X written by T2,Validation succeeds,Increment C and set new version for X,New private version of X,Counter of Committed TXs,Conflict with T2,Read-only Tx-No validation,May 13th 2009,A Protocol for HA and Scalability in MTAs,Ph.D.Thesis Francisco Prez-Sorrosal,32,App.,Server,DB,Replica 1,App.,Server,DB,Replica 2,Client,Cluster,Client,May 13th 2009,Protocol Features,Transactions,:,Started,at the same time in AS and DBS,SI Cache,:Maintains a certain number of,versions to,Avoid accesses to the DB,Guarantee,conflict detection,Conflicts,:,Locally,:,Detected,on,-the-fly,(Pessimistic),Remotely,:Detected on,a,validation phase,Other Issues,:,Creation and Deletion of,Components(,CRUD Ops.,),Garbage Collection,Session Replication,Failure Handling(,Transparent failover,of clients),Replica,Recovery,Ph.D.Thesis Francisco Prez-Sorrosal,33,May 13th 2009,How the Multi-version Cache Works,Ph.D.Thesis Francisco Prez-Sorrosal,34,Y:b,X:a,Update x,x=e,T1,Update y,Read x,T2,Read y,Commit,y=f,x=a,X:e,Y:f,y=b,T1:STS=10,T2:STS=10,CTS=11,Ver=11,Ver=11,Ver=-1,Ver=-1,Ccounter=10,Ccounter=11,Start T1,Start T2,Update y,conflict,Abort,abort,commit,Cache,Read x,May 13th 2009,Cache Replication,Ph.D.Thesis Francisco Prez-Sorrosal,35,Replica 2,Replica 1,X:a,Cache,Update x,x=e,T1,T2,Commit,x=f,x=a,X:e,x=a,T1:STS=10,T2:STS=10,CTS=11,Ver=11,Ver=11,Ver=-1,Ver=-1,Ccounter=10,Ccounter=11,Start T1,Update x,Ccounter=10,Commit,Ccounter=11,X:a,X:e,Cache,x=e,T1:STS=10,CTS=11,GCS,T1:STS=10,X=e,T2:STS=10,x=f,T2:STS=10,x=f,T1:STS=10,x=e,Conflict,Abort T2,Abort,Conflict,Commit,Commit,Read x,May 13th 2009,Throughput(,SPECjAppServer,),Ph.D.Thesis Francisco Prez-Sorrosal,36,Baselines,Our Protocol,May 13th 2009,Response Time:Read-only,Txn,Ph.D.Thesis Francisco Prez-Sorrosal,37,May 13th 2009,Response Time:Update,Txn,Ph.D.Thesis Francisco Prez-Sorrosal,38,May 13th 2009,Outline,High Availability(HA)and Scalability in Multi-Tier Architectures,Protocols for High Availability in MTAs,A Protocol for HA and Scalability in MTAs,High Availability in Service-Oriented Architectures,WS-Replication Framework,Conclusions,Publications,Ph.D.Thesis Francisco Prez-Sorrosal,39,May 13th 2009,HA in SOA:Motivation,Some,Web Services are critical,for the interaction among organizations and,should remain available despite failures,WS-Replication,Framework,helps on replicating,these,critical Web Services,Ph.D.Thesis Francisco Prez-Sorrosal,40,May 13th 2009,HA in SOA:The WS-Replication Framework,WS-Replication,is a,framework that eases the replication of WSs,SOAP-based web services,Properties,:,Respects,WS autonomy,Provides,transparent fault-tolerance,Components,:,Deployer tool,WS-Multicast service,WS-Dispatcher,Ph.D.Thesis Francisco Prez-Sorrosal,41,May 13th 2009,Background:Active Replication,Ph.D.Thesis Francisco Prez-Sorrosal,42,Service,Replica 1,Service,Replica 2,Service,Replica 3,m2,m2,m2,m1,m1,m1,Client,Client,m1,m2,May 13th 2009,WS-Replication:Invoking a Replicated Service I,Ph.D.Thesis Francisco Prez-Sorrosal,43,Replica 1,WS-Proxy,transport,WS,WS-Dispatcher,WS,Replica 2,WS-Proxy,transport,WS-Dispatcher,WS-Multicast,WS,WS-Multicast,WS,Client,May 13th 2009,WS-Replication:Invoking a Replicated Service II,Ph.D.Thesis Francisco Prez-Sorrosal,44,Replica 1,WS-Proxy,transport,WS,WS-Dispatcher,WS,Replica 2,WS-Proxy,transport,WS-Dispatcher,WS-Multicast,WS,WS-Multicast,WS,Client,May 13th 2009,WS-Replication Evaluation:Setup,Ph.D.Thesis Francisco Prez-Sorrosal,45,Zurich,Bologna,Montreal,Madrid,Critical Service,Load Generator,May 13th 2009,WS-I&WS-CAF Integration,Ph.D.Thesis Francisco Prez-Sorrosal,46,WS-CAF,WS-Rep.,Zurich,WS-CAF,WS-Rep.,Bologna,WS-CAF,WS-Rep.,Montreal,DB,Madrid Host 1,Madrid Host 2,WS-I,Applic.,Client,Emulator,May 13th 2009,WS-CAF Replication,Ph.D.Thesis Francisco Prez-Sorrosal,47,10%,May 13th 2009,WS-CAF Replication,Ph.D.Thesis Francisco Prez-Sorrosal,48,May 13th 2009,Outline,High Availability(HA)and Scalability in Multi-Tier Architectures,Protocols for High Availability in MTAs,A Protocol for HA and Scalability in MTAs,High Availability in Service-Oriented Architectures,WS-Replication Framework,Conclusions,Publications,Ph.D.Thesis Francisco Prez-Sorrosal,49,May 13th 2009,Conclusions,We have developed,a,set of replication and recovery protocols for,providing consistent,high availability and scalability,to multi-tier applications,Main contributions:,Transaction-aware,replication,Exactly-once execution,of client requests,Deal with,several interaction patterns,Scalability through a replicated SI cache,in the app.server,Online recovery,(Not presented because the lack of time),Results show,that the proposed,protocols are affordable,Ph.D.Thesis Francisco Prez-Sorrosal,50,May 13th 2009,Conclusions,We have also developed,a,framework to provide high availability to SOAs,WS-Replication provides,seamless replication,to critical WSs,Adequate engineering,proved to provide,affordable performance,Evaluation,of a realistic application in WANs,has shown,a quite,reasonable overhead,Ph.D.Thesis Francisco Prez-Sorrosal,51,May 13th 2009,Outline,High Availability(HA)and Scalability in Multi-Tier Architectures,Protocols for High Availability in MTAs,A Protocol for HA and Scalability in MTAs,High Availability in Service-Oriented Architectures,WS-Replication Framework,Conclusions,Publications,Ph.D.Thesis Francisco Prez-Sorrosal,52,May 13th 2009,Publications,Jorge Salas,Francisco P,rez-Sorrosal,Marta Patio-Mart,ne,z and Ricardo Jim,nez-Peris.,WS-Replication:a Framework for Highly Available Web Services,.WWW,2006.,Acceptance rate:,11%,Percentile top,0%,in Microsoft,s Libra(WWW category),Francisco P,rez-Sorrosal,Marta Patio-Mart,n,ez,Ricardo Jim,nez-Peris and Bettina Kemme.,Consistent and Scalable Cache Replication for Multi-tier J2EE Applications,.Middleware,2007.,Acceptance rate:,20%,Percentile top,12%,in Microsoft,s Libra(Dist.And Parall.Computing category),Francisco P,rez-Sorrosal,Marta Patio-Mart,ne,z,Ricardo Jim,nez-Peris and Jaksa Vuckovic.,Highly Available Long Running Transactions and Activities for J2EE Applications,.ICDCS,2006.,Acceptance rate:,13%,Percentile top,3%,in Microsoft,s Libra(Dist.And Parall.Computing category),Ph.D.Thesis Francisco Prez-Sorrosal,53,May 13th 2009,Thank You!,QUESTIONS?,Ph.D.Thesis Francisco Prez-Sorrosal,54,May 13th 2009,展开阅读全文

咨信网声明:本文档由用户上传并分享,仅供学习交流、研究之用,未经授权,严禁复制、发行、汇编、翻译或网络传播等,侵权必究。
咨信网小贴示:
1、浏览或下载可查看了解,请点击【咨信网告知】。
2、下载文件中如有侵权或不适当内容,将立即纠正。
3、如果因为网速或其他原因下载失败请重新下载,重复下载[60天内]不扣币。
4、开具发票登录电脑端申请,请点击【索取发票】。
咨信网客服组:【微信客服】
1、浏览或下载可查看了解,请点击【咨信网告知】。
2、下载文件中如有侵权或不适当内容,将立即纠正。
3、如果因为网速或其他原因下载失败请重新下载,重复下载[60天内]不扣币。
4、开具发票登录电脑端申请,请点击【索取发票】。
咨信网客服组:【微信客服】


Middleware-for-High-Availability-and-Scalability-in-Multi-Tier-and-Service-Oriented-Architectures.ppt
















自信AI助手














微信客服
客服QQ
发送邮件
意见反馈



链接地址:https://www.zixin.com.cn/doc/14754632.html