DDB-introduce.pptx_第1頁(yè)
DDB-introduce.pptx_第2頁(yè)
DDB-introduce.pptx_第3頁(yè)
DDB-introduce.pptx_第4頁(yè)
DDB-introduce.pptx_第5頁(yè)
已閱讀5頁(yè),還剩12頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、馬進(jìn) 馬進(jìn)app ,DDB introduce,DDB outline,Applicationscenarios Technology decides System architecture System design Applications and Users,applicationscenarios,Applications Netease Blog, yixin, cloud music, cloud reader Database demands Scalability TB,PB level; Cluster database nodes: less than 1000; Avai

2、lability take over in one minute when data nodes failed take over in seconds when sql proxy failed Reliablility Data never lose,applicationscenarios,Operation types OLTP: mainly CRUD Some complex query: join, group, agg etc. Distributed transactions Application demands Usability Drived from java jdb

3、c, easy to use Sql proxy 100% compatible with mysql Fast iteration to meet app needs,Related tech.,Solutions Oracle RAC cost:commercial prods functions:too much for us Middleware No mature solutions NoSQL products Lack availability, reliability. Lack support for join, complex query and transactions,

4、Technology decides,Independent development DDB: Middleware based on MySQL core:data sharding on MySQL for availability. Derived from stardard jdbc for usability. Sql parser and planner in middleware, app has no concern for sharding, just like using MySQL. Optionly, app use connector/J and DDBProxy t

5、o acess DDB,DBI Architecture,DBN1 MySQL,sysdn MySQL,DBI Module(JDBC),DBAdmin,App,isql,DBA,Master,DBN2 MySQL,DBN3 MySQL,Control flow DDL,metadata sync,Data flow DML,metadata flush,Proxy Architecture,DBN1 MySQL,MetaStore MySQL,DBI Module(JDBC),DBAdmin,Decoder,Encoder,DBA,Master,DBN2 MySQL,DBN3 MySQL,C

6、ontrol flow DDL,metadata sync,QueryServer(DDBProxy),App,standard jdbc connector,MySQL Client,App,Data flow DML,metadata flush,Entire Architecture,Entire architecture,DBI(Query Server) Distributed SQL parser, planner. Node connection pool. Distributed transaction manager. Sql, node connection Statist

7、ics collecting. Master & SYSDB Metadata(table, column), Configuration management and notification Data migration, xa, dbn monitoring DBN Master and slave DDB master is response for failing over(notify switching dbn url),System design,Data Sharding Availability and reliability Distributed transaction

8、 processing online scale out and data migration Global incremental ID,Sharding,Two mapping layer: hash, policy Hash is immutable, policy is mutable Change policy to implement data migration,Availability and reliability,Atomic fail over Master keep heartbeat from each dbn Pick a slave to switch on db

9、n failing No data loss VSR from innosql Mater high availability Use zookeeper to pick one leader and auto take over,Distributed transaction,Distributed transaction processing core: 2-Phase-Commit implemention DBI or QS as transaction coordinator; Sql parser and planner, dectect if trasaction cross m

10、ultiple dbns Use mysql xa interfaces Dbi and qs have xa logs (mainly prepare events) What if : dbi or qs crashed or restarted ? Transaction recovery based on local xa logs What if : dbi or qs is removed ? Master asked about all suspended xa transactions from each DBN at a interval For those suspende

11、d time xx min, auto commit and report to DBA,online scale out and data migration,online scale out and data migration Core one:full copy and incremental replication Core two : incremental replication based on binlog (tungsten and ddb filter) full copy and incremental rep both depend on policy changin

12、g We develop a single tool “hamal” to implement full copy and incremental rep,Global incremental ID,Support global auto_increment id MSB: master allocate batch ids, default:1000 easy to implement and comprehend Master dependent, insert could be blocked. Bad incremental quality, Most apps use this implemention TSB:based on local and master timestamp Complex to implement, take care when changing master clock No master dependent, support multiple masters (versions) in one cluster For those need higher availability or incremental quality (NOS),Apps and Users,Appications

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論