Cetus is a high performance, protocol aware proxy for MySQL Group Replication.
#Getting started
cmake gcc glib2-devel (version >= 2.6.0) zlib-devel flex mysql-devel 5.6 or mysql-devel 5.7 or mariadb-devel
- Go to the cetus_mgr directory
- 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
make install
- 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
- Modify proxy-backend-addresses to be the primary address of MySQL Group Replication
- Modify proxy-read-only-backend-addresses to be the secondary addresses of MySQL Group Replication
- Modify default-username to be the valid user name that could have the privileges of both manipulating MySQL Group Replication and MySQL.
- Modify log-file to be the valid file path.
- Modify worker-processes to be appropriate number that best suits the workload.
- Modify default-pool-size. The total connections to MySQL is equal to default-pool-size plus worker-processes
Modify password appropriately for both your applications and MySQL.
- Cetus could not be compiled under MySQL 8.0 development.
- Cetus only works for MySQL Group Replication.
- As for MySQL Group Replication, please use the modified version which could be downloaded at https://github.com/session-replay-tools/MySQL.
- Configure MySQL Group Replication before running cetus.
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 Group Replication better.