版權(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024-2025學(xué)年徐州市邳州市三上數(shù)學(xué)期末調(diào)研模擬試題含解析
- 2024-2025學(xué)年新疆維吾爾巴音郭楞蒙古自治州尉犁縣數(shù)學(xué)三年級(jí)第一學(xué)期期末達(dá)標(biāo)測(cè)試試題含解析
- 2025年氫能源項(xiàng)目申請(qǐng)報(bào)告模板
- 2025年水處理阻垢分散劑系列項(xiàng)目規(guī)劃申請(qǐng)報(bào)告模范
- 2021教師辭職報(bào)告(15篇)
- 《烏鴉喝水》教案范文匯編5篇
- 高中語(yǔ)文教研工作計(jì)劃錦集5篇
- 員工年終總結(jié)體會(huì)10篇
- 有關(guān)高中語(yǔ)文周記四篇
- 少年宮活動(dòng)計(jì)劃集錦9篇
- 2024年秋七年級(jí)生物上冊(cè) 2.1.2 植物細(xì)胞教案 (新版)新人教版
- 全國(guó)閩教版初中信息技術(shù)七年級(jí)上冊(cè)第一單元第3課《網(wǎng)絡(luò)信息的交互和安全》教學(xué)設(shè)計(jì)
- 高二數(shù)學(xué)數(shù)列小結(jié)省公開(kāi)課金獎(jiǎng)全國(guó)賽課一等獎(jiǎng)微課獲獎(jiǎng)?wù)n件
- 食品安全處理事故制度
- DB3301-T 0461-2024 電動(dòng)自行車(chē)停放充電場(chǎng)所消防安全管理規(guī)
- 德語(yǔ)語(yǔ)言學(xué)導(dǎo)論智慧樹(shù)知到期末考試答案章節(jié)答案2024年中國(guó)海洋大學(xué)
- JT-T-1078-2016道路運(yùn)輸車(chē)輛衛(wèi)星定位系統(tǒng)視頻通信協(xié)議
- 扭虧增盈提質(zhì)增效方案
- 侵權(quán)法智慧樹(shù)知到期末考試答案章節(jié)答案2024年四川大學(xué)
- 期末考試卷2《心理健康與職業(yè)生涯》(解析卷)高一思想政治課(高教版2023基礎(chǔ)模塊)
- 中醫(yī)病歷書(shū)寫(xiě)基本規(guī)范本
評(píng)論
0/150
提交評(píng)論