Atlas & mysql-proxy

來源:互聯網
上載者:User

標籤:sql   ase   自動   eve   mysq   struct   proxy   sch   不用   

Atlas

https://github.com/Qihoo360/Atlas

https://github.com/Qihoo360/Atlas/wiki/Installing-Atlas

Atlas is a MySQL protocol-based database middleware project developed and maintained by infrastructure team of the Web platform Department in QIHU 360 SOFTWARE CO. LIMITED(NYSE:QIHU). It fixed lots of bugs and added lot of new functions on the basis of MySQL-Proxy 0.8.2. Currently the project has been widely applied in QIHU, many MySQL business has connected to the Atlas platform. The number of read and write requests forwarded by Atlas has reached billions.

Atlas的分表功能簡介

2.tables參數設定格式:資料庫名.表名.分表欄位.子表數量,比如你的資料庫名叫school,表名叫stu,分表欄位叫id,總共分為100張表,那麼就寫為school.stu.id.100,如果還有其他的分表,以逗號分隔即可。使用者需要手動建立100張子表(stu_0,stu_1,…stu_99,注意子表序號是從0開始的)。且所有的子表必須在DB的同一個database裡。

點評:模數方法簡單好理解,而再擴充子表就麻煩了,不如一致性雜湊演算法靈活,不用大量遷移資料。

4.Atlas暫不支援自動建表和跨庫分表的功能。

 

 

架構圖

https://github.com/Qihoo360/Atlas/wiki/The-Architecture-Of-Atlas

 

Mysql-proxy

https://downloads.mysql.com/archives/proxy

https://github.com/mysql/mysql-proxy

 

Atlas & mysql-proxy

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.