標籤: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