【Cetus】Cetus-讀寫分離版
1.廢話不多說。詳細使用請檢視官方文件,本文主要記錄的是cetus的安裝心得
1.user.json需要注意的地方
2.proy.conf需要注意的地方
測試應用端
讀寫分離測試透過,過程懶得寫了!
後臺管理
1.user.json需要注意的地方
-
[root@iZ2ze66bhrbxkc31nljgjnZ cetus_rw]# more conf/users.json
-
{
-
"users": [{
-
"user": "appuser1", ----應用使用者
-
"client_pwd": "123", ----client使用者
-
"server_pwd": "ESBecs00" ----連結mysql資料庫的使用者
-
}, {
-
"user": "devuser",
-
"client_pwd": "123",
-
"server_pwd": "ESBecs00"
-
}]
- }
2.proy.conf需要注意的地方
-
[root@iZ2ze66bhrbxkc31nljgjnZ cetus_rw]# more conf/proxy.conf
-
[cetus]
-
daemon = true
-
-
# Loaded Plugins
-
plugins=proxy,admin
-
-
# Proxy Configuration
-
proxy-address=127.0.0.1:1234 ----proxy埠,
-
proxy-backend-addresses=47.93.243.162:3306
-
proxy-read-only-backend-addresses=47.93.243.162:3308 ---mysql後端
-
-
# Admin Configuration
-
admin-address=127.0.0.1:5678 -----管理埠
-
admin-username=admin
-
admin-password=admin
-
-
# Backend Configuration
-
default-db=test
-
default-username=appuser1 -----預設使用者(必須是user裡面的)
-
-
# File and Log Configuration
-
log-file=cetus.log
- log-level=debug
測試應用端
-
[root@iZ2ze66bhrbxkc31nljgjnZ ~]# mysql -uappuser1 -p123 -P1234 -h127.0.0.1 devops
-
Warning: Using a password on the command line interface can be insecure.
-
-
-
mysql> select database();
-
+------------+
-
| database() |
-
+------------+
-
| devops |
-
+------------+
-
1 row in set (0.01 sec)
-
-
mysql> quit
-
Bye
-
[root@iZ2ze66bhrbxkc31nljgjnZ ~]# mysql -udevuser -p123 -P1234 -h127.0.0.1 devops
-
Warning: Using a password on the command line
-
- mysql>
讀寫分離測試透過,過程懶得寫了!
-
[root@iZ2ze66bhrbxkc31nljgjnZ ~]# mysql -uadmin -padmin -P5678 -h127.0.0.1
-
Warning: Using a password on the command line interface can be insecure.
-
Welcome to the MySQL monitor. Commands end with ; or \g.
-
Your MySQL connection id is 1
-
Server version: cetus 0.8.8 admin
-
-
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
-
-
Oracle is a registered trademark of Oracle Corporation and/or its
-
affiliates. Other names may be trademarks of their respective
-
owners.
-
-
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
-
-
mysql> SELECT * FROM backends;
-
+-------------+--------------------+-------+------+-------------+------+------------+------------+-------------+
-
| backend_ndx | address | state | type | slave delay | uuid | idle_conns | used_conns | total_conns |
-
+-------------+--------------------+-------+------+-------------+------+------------+------------+-------------+
-
| 1 | 47.93.243.162:3306 | up | rw | NULL | NULL | 2 | 0 | 2 |
-
| 2 | 47.93.243.162:3308 | up | ro | 0 | NULL | 2 | 0 | 2 |
-
+-------------+--------------------+-------+------+-------------+------+------------+------------+-------------+
- 2 rows in set (0.00 sec)
連線cetus中介軟體Hang住怎麼辦
https://mp.weixin.qq.com/s/KC0ucH-w5kr3tR5IgUiOAw來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29096438/viewspace-2152221/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL cetus 中介軟體 讀寫分離MySql
- KunlunBase 讀寫分離方案
- Redis的讀寫分離Redis
- Laravel讀寫分離原理Laravel
- discuz 配置讀寫分離(主寫從讀)
- MyCat分庫分表、讀寫分離
- 資料讀寫壓力大,讀寫分離
- ShardingSphere(七) 讀寫分離配置,實現分庫讀寫操作
- 資料庫讀寫分離資料庫
- 讀寫分離 & 分庫分表 & 深度分頁
- StoneDB 讀寫分離實踐方案
- MySQL 讀寫分離的好處MySql
- mysql優化之讀寫分離MySql優化
- ProxySQL實現MySQL讀寫分離MySql
- 探究MySQL MGR的讀寫分離MySql
- 位元組面試:什麼是讀寫分離?讀寫分離的底層如何實現?面試
- Docker實現Mariadb分庫分表、讀寫分離Docker
- mysql讀寫分離的最佳實踐MySql
- MySQL 官宣:支援讀寫分離了!!MySql
- DBPack 讀寫分離功能釋出公告
- MYSQL 主從 + ATLAS 讀寫分離 搭建MySql
- 配置\清除 MySQL 主從 讀寫分離MySql
- Mysql 高可用(MHA)-讀寫分離(Atlas)MySql
- Mysql之讀寫分離架構-AtlasMySql架構
- MySQL主從複製讀寫分離MySql
- SpringBoot使用Sharding-JDBC讀寫分離Spring BootJDBC
- 【Mongo】Mongo讀寫分離的實現Go
- 搭建基於springmvc,ibatis的工程實現讀寫分離,配置分離SpringMVCBAT
- Kubernetes 中實現 MySQL 的讀寫分離MySql
- [Mysql]主從複製和讀寫分離MySql
- MySQL 中讀寫分離資料延遲MySql
- Oceanbase讀寫分離方案探索與優化優化
- PostgreSQL+Pgpool實現HA讀寫分離SQL
- DM7搭建讀寫分離叢集
- akka-typed(8) - CQRS讀寫分離模式模式
- DM8配置讀寫分離叢集
- docker+atlas+mysql實現讀寫分離DockerMySql
- Mariadb之主從複製的讀寫分離