版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 家長消防安全課件
- 家長安全培訓(xùn)及教育內(nèi)容課件
- 2026年軟件開發(fā)服務(wù)評估合同協(xié)議
- 2026年社交媒體代運(yùn)營合同協(xié)議
- 2026年安防監(jiān)控系統(tǒng)運(yùn)維合同協(xié)議
- 2026年酒店綠化施工合同協(xié)議
- 2026年演出藝人出場費(fèi)合同協(xié)議
- 2026年木材干燥處理合同
- 二手房產(chǎn)交易合同2026年保密條款協(xié)議
- 2026年直播帶貨主播激勵(lì)合同
- 教師三筆字培訓(xùn)課件
- 河南省百師聯(lián)盟2025-2026學(xué)年高一上12月聯(lián)考英語試卷(含解析含聽力原文及音頻)
- 2025廣東深圳市光明區(qū)事業(yè)單位選聘博士20人筆試備考試題及答案解析
- 租戶加裝充電樁免責(zé)補(bǔ)充合同(房東版)
- 甘肅省天水市2024-2025學(xué)年九年級上學(xué)期期末考試物理試題(含答案)
- 2026年海南衛(wèi)生健康職業(yè)學(xué)院單招職業(yè)技能考試題庫參考答案詳解
- 法制副校長課件
- 紅色大氣2026馬年期末匯報(bào)展示
- 2026年及未來5年市場數(shù)據(jù)中國釣具市場競爭策略及行業(yè)投資潛力預(yù)測報(bào)告
- (2025)70周歲以上老年人換長久駕照三力測試題庫(含參考答案)
- 探究4工業(yè)課件2026年中考地理一輪專題復(fù)習(xí)(河北)
評論
0/150
提交評論