Cetus
Cetus, derived from MySQL Proxy, is a high-performance, stable, and protocol-aware proxy for MySQL Group Replication.
Install / Use
/learn @enhancedformysql/CetusREADME
Introduction
Cetus, originally developed from MySQL Proxy, is a high-performance, stable, and protocol-aware proxy for MySQL Group Replication.
Getting Started
1. Prerequisites for Setup
- cmake
- gcc
- glib2-devel (version >= 2.6.0)
- zlib-devel
- flex
- mysql-devel 5.6 or mysql-devel 5.7 or mariadb-devel
- jemalloc
2. Compiling Cetus: A Step-by-Step Guid
- Go to the
cetus_mgrdirectory mkdir build/cd build/CFLAGS='-O2 -w' cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="-ljemalloc" -DCMAKE_INSTALL_PREFIX=/home/user/cetus_mgr_install
3. Installation Guide
make install
4. How to Run
- Go to /home/user/cetus_mgr_install/conf
- cp proxy.conf.example proxy.conf
- Modify proxy.conf
- cp users.json.example users.json
- Modify users.json
- cd ..
- chmod 660 conf/proxy.conf
- ./bin/cetus --defaults-file=conf/proxy.conf
5. How to Modify proxy.conf
- Set
proxy-backend-addressesto the primary address of MySQL Group Replication. - Set
proxy-read-only-backend-addressesto the secondary addresses of MySQL Group Replication. - Set
default-usernameto a valid user with privileges for managing both MySQL Group Replication and MySQL. - Set
log-fileto a valid file path. - Adjust
worker-processesto an appropriate number based on the workload. - Configure
default-pool-sizeappropriately. - Add
group_replication_group_namewith the correct value. - Add
session-causal-read=truefor session causal reading withsession_track_gtids=OWN_GTIDin MySQL configuration.
6. How to Modify user.conf
Modify passwords as needed for both your applications and MySQL.
Note
- Cetus runs exclusively on Linux.
- Cetus cannot be compiled with MySQL 8.0 development.
- Cetus is compatible only with MySQL Group Replication.
- Cetus supports only
mysql_native_password. - The total number of connections to each MySQL instance is the sum of
default-pool-sizeandworker-processes. - Use
SELECT helpin the admin interface to view relevant SQL commands.
Bugs and Feature Requests:
If you encounter any issues with the release, I would encourage you to file a bug report. Your feedback is really critical to myself and the rest of the team as we want to make cetus better.
Copyright and License
Copyright 2024 under GPLv2.
Related Skills
feishu-drive
351.2k|
things-mac
351.2kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
351.2kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
codebase-memory-mcp
1.3kHigh-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 66 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
