「Atlas」- 数据库中间件

认识

官网:https://github.com/Qihoo360/Atlas
文档:https://github.com/Qihoo360/Atlas
仓库:https://github.com/Qihoo360/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 功能类似于 MySQL Proxy 组件,目的是为了实现高可用、大规模的数据库集群,其具有很多功能,例如,读写分离、负载均衡、故障转移、数据分片、……

# 05/24/2025 GitHub 最终提交为 5082aa0 · 7 years ago

构建

关于日志轮转

在 GitHub/Wiki、test.cnf 中都没有对日志轮转的描述,因此可能无法通过 reload、signal 等等方式进行日志轮转。

但是还有其他方式进行日志轮转:

  • 支持前台方式运行(daemon = false),可以配合 systemd 使用;
  • Atlas 源自 MySQL Proxy,虽然 Atlas 文档没有叙述,但是 MySQL Proxy 支持 –log-use-syslog 选项;

应用

采用奇虎360的atlas+keepalived实现数据库读写分离代码如何实现
简书/Atlas
Qihoo360/Atlas