版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年版鐵路物流合作合同書版B版
- 2024年紅磚購銷合同模板
- 2024年股權(quán)轉(zhuǎn)讓合同書(含稀釋條款)
- 2024年飼料原料采購合同
- 2024木材期貨交易合同范本及風(fēng)險(xiǎn)管理協(xié)議2篇
- 2024年貨車租賃及運(yùn)輸協(xié)議
- 2024年舞臺布景制作與供應(yīng)合同3篇
- 2024年電子產(chǎn)品研發(fā)與市場推廣合作合同3篇
- 2024年度環(huán)保大門購銷推廣合同3篇
- 2024年生物制藥研發(fā)合作互助合同
- SAP WM模塊前臺操作詳解(S4版本)
- (正式版)HGT 22820-2024 化工安全儀表系統(tǒng)工程設(shè)計(jì)規(guī)范
- 《中華民族共同體概論》考試復(fù)習(xí)題庫(含答案)
- 【綠色評價(jià)】發(fā)展綠色指標(biāo)評價(jià)測試五年級《英語》第一學(xué)期上冊期末試卷及答案解析
- 中石油度員工HSE培訓(xùn)計(jì)劃
- (完整版)Adams課程設(shè)計(jì)
- 30課時(shí)羽毛球教案
- 全踝關(guān)節(jié)置換術(shù)ppt課件
- 學(xué)術(shù)英語寫作范文17篇
- 任發(fā)改委副主任掛職鍛煉工作總結(jié)范文
- 中華任姓字輩源流
評論
0/150
提交評論