当前位置:网站首页>MySQL proxy middleware atlas installation and configuration
MySQL proxy middleware atlas installation and configuration
2022-06-30 15:49:00 【Bug trendsetter】
The premise is to configure master-slave reference :http://www.cnblogs.com/super-d2/p/4802990.html
First , Go ahead and download Altas Of rpm package , Download address :https://github.com/Qihoo360/Atlas/releases
To see the version clearly ,centos 5.x:Atlas-1.0.3.el5.x86_64.rpm centos 6.x:
My system is centos 6.4 , So download Atlas-1.0.3.el6.x86_64.rpm
Don't get it wrong , Otherwise, an error will occur in the final startup . You can also adopt source code compilation and installation , however rpm Installation is time-saving and labor-saving , And it's simple .
download rpm
wget https://github.com/Qihoo360/Atlas/releases/download/1.0.3/Atlas-1.0.3.el6.x86_64.rpminstall
rpm -i Atlas-1.0.3.el6.x86_64.rpmThe installation directory is /usr/local/mysql-proxy
conf There is a configuration file under the folder test.cnf, We can modify it directly , Here is what I modified
Master database server :192.168.83.11
From the database server :192.168.83.12
proxy The server :192.168.83.13
[mysql-proxy]
#Atlas Name of the loaded module , There is no need to change
plugins = admin, proxy
# User name of the management interface
admin-username = root
# Password for management interface
admin-password = 123456
# Implementation of management interface Lua Script path
admin-lua-script = /usr/local/mysql-proxy/lib/mysql-proxy/lua/admin.lua
#Atlas Back end connected MySQL The main library IP And port , Multiple items can be set , Separate with commas
proxy-backend-addresses = 192.168.83.11:3306
#Atlas Back end connected MySQL From library IP And port ,@ The numbers that follow represent weights , Used for load balancing , If omitted, it defaults to 1, Multiple items can be set , Separate with commas
proxy-read-only-backend-addresses = 192.168.83.12:[email protected]
# Set up Atlas Mode of operation , Set to true Time is the way of daemons , Set to false It's the front desk way , Generally, it is set as false, The online runtime is set to true
daemon = false# Set up Atlas Mode of operation , Set to true when Atlas Will start two processes , One for monitor, One for worker,monitor stay worker It will restart automatically after an unexpected exit , Set to false It's just worker, No, monitor, Generally, it is set as false, The online runtime is set to true
keepalive = false
# Number of worker threads , Recommended settings and system CPU Auditing is equal event-threads = 4
# The level of logging , It is divided into message、warning、critical、error、debug The five level
log-level = message
# Log storage path
log-path = /usr/local/mysql-proxy/log
# Instance name , For more than one... On the same machine Atlas The distinction between examples
instance = test
#Atlas Working interface for monitoring IP And port
proxy-address = 0.0.0.0:1234
#Atlas Monitoring management interface IP And port
admin-address = 0.0.0.0:2345# The minimum number of free connections in the connection pool , It should be set to event-threads Integer multiple , It can be appropriately increased or decreased according to the size of business requests
min-idle-connections = 8
# Sub table settings , In this case person For the name of the library ,mt Is the name of the watch ,id For the sub table fields ,3 Is the number of sub tables , Multiple items can be set , Separated by commas , If you do not divide the table, you do not need to set this item
#tables = person.mt.id.3
# The user name and its corresponding encrypted MySQL password , Password usage PREFIX/bin The encryption program in the directory encrypt encryption , This setting item is used for multiple user names to access the same Atlas Examples , If there is only one user name > You do not need to set this item
#pwds = user1:+jKsgB3YAG8=, user2:GS+tr4TPgqc=
# Default character set , If it is not set , The default character set is latin1
charset = utf8
# Allow connections Atlas Client side IP, It can be precise IP, It can also be IP paragraph , Separated by commas , If this item is not set, all IP Connect , Otherwise, only... In the list is allowed IP Connect
#client-ips = 127.0.0.1, 192.168.1
#Atlas It's on the front LVS Of the physical network card IP( Notice that it's not empty IP), If you have any LVS And set up client-ips Then this item must be set , Otherwise, you can not set
#lvs-ips = 192.168.1.1 Last , Enter into bin Under the folder , start-up Altas./mysql-proxy --defaults-file=../conf/test.cnfIt is best to configure the daemon Set to true, Run for background daemon .
Using the official website
./mysql-proxydteststart
see Altas Operation of the
./mysql-proxyd test status
There are two processes .
I later used NaviCat Connect work port , The user name and password are the administrative user and password of the above configuration file , succeed .
After testing ,Altas The read-write separation and transaction support are very good , Release tomorrow 2.0 edition , Add to JDBC Support for .
Reference resources :
https://github.com/Qihoo360/Atlas
边栏推荐
- Imeta | Ye Mao / Shi Yu reviewed the dynamic shuttle and ecological function of intracellular and extracellular genes in the environmental microbiome
- Log4j2 进阶使用
- Management joint examination - mathematical formula
- My own opinion on lisp
- BYD is more and more like Huawei?
- Specific steps for installing mysql8.0 on Windows system
- 互联网研发效能之去哪儿网(Qunar)核心领域DevOps落地实践
- String common API
- 【Leetcode】链表排序(逐步提高时空复杂度)
- Cesium-1.72 learning (deploy offline resources)
猜你喜欢

Model system: Sword (1)

'<', hexadecimal value 0x3C, is an invalid 问题解决

Policy Center-User Data

How to browse mobile web pages on your computer

智慧风电:数字孪生 3D 风机智能设备运维

C language foundation - pointer array - initialization method & constant pointer array, pointer constant array

Kubernetes: a comprehensive analysis of container choreography
![Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead.](/img/c1/99ad29789a669c4498fb93ce1fb009.png)
Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead.

Policy Center-User Data

Review 2021, embrace change and live up to Shaohua
随机推荐
Parameter optimization - bias and variance
技不压身,快速入门ETH智能合约开发,带你进入ETH世界
数数据可视化实战案例(timeline轮播图,streamlit 控件年份 metabase可视化使用教程)2.0
4.6 floating point number
渲染引擎的资源加载优化
消息队列十连问
Unsupported major.minor version 52.0
Policy Center > Google Play‘s Target API Level Policy
How should we understand the variability of architecture design?
Compare whether the two arrays are the same
云化XR,如何助力产业升级
Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead.
Summary of system stability construction practice
Kubernetes: a comprehensive analysis of container choreography
How does sd-rtn ensure the high availability of RTE services after infrastructure failure
Policy Center > Deceptive Behavior
CVPR 2022丨特斯联AI提出:基于图采样深度度量学习的可泛化行人重识别
Policy Center > Google Play‘s Target API Level Policy
Anyrtc implements application scenarios based on webrtc
《网络是怎么样连接的》读书笔记 - 汇总篇