当前位置:网站首页>MYCAT middleware installation and use
MYCAT middleware installation and use
2022-07-04 07:24:00 【InfoQ】
tar zxvf Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz -C /usr/local/
vim /usr/local/mycat/conf/server.xml // Add the following
cat schema.xml
- balance="0", Do not turn on the read-write separation mechanism , All read operations are sent to the currently available writeHost On .
- balance="1", All of the readHost And stand by writeHost Participate in select Statement load balancing , To put it simply , When dual master dual slave mode (M1 ->S1 , M2->S2, also M1 And M2 Prepare for each other ), Under normal circumstances , M2,S1,S2 All involved select Statement load balancing .
- balance="2", All the reading operations are random in writeHost、 readhost To distribute .
- balance="3", All read requests are randomly distributed to wiriterHost Corresponding readhost perform ,writerHost No pressure to read , Be careful balance=3 Only in 1.4 And later versions have , 1.3 No, .
- writeType="0", All writes are sent to the first of the configuration writeHost, The first one is cut to the second one that still exists
- writeType="1", All writes are sent randomly to the configured writeHost.
- writeType="2", Not realized .
./mycat start
netstat -tpnl |grep 8066
./mycat status
mysql -u tankzhang -p -P 8066 -h 127.0.0.1 // You have to take it 127.0.0.1
user
id
name
create_time
id
user
id
name
边栏推荐
- MySQL storage engine
- win10微软拼音输入法输入文字时候下方不出现中文提示
- Flink memory model, network buffer, memory tuning, troubleshooting
- Su Weijie, a member of Qingyuan Association and an assistant professor at the University of Pennsylvania, won the first Siam Youth Award for data science, focusing on privacy data protection, etc
- Summary of MySQL common judgment functions!! Have you used it
- [MySQL transaction]
- The crackdown on Huawei prompted made in China to join forces to fight back, and another enterprise announced to invest 100 billion in R & D
- Enter the year, month, and determine the number of days
- Improve the accuracy of 3D reconstruction of complex scenes | segmentation of UAV Remote Sensing Images Based on paddleseg
- Vulhub vulnerability recurrence 77_ zabbix
猜你喜欢
Status of the thread
Flink memory model, network buffer, memory tuning, troubleshooting
[network data transmission] FPGA based development of 100M / Gigabit UDP packet sending and receiving system, PC to FPGA
What is industrial computer encryption and how to do it
Zabbix agent主动模式的实现
Routing decorator of tornado project
The number of patent applications in China has again surpassed that of the United States and Japan, ranking first in the world for 11 consecutive years
Boosting the Performance of Video Compression Artifact Reduction with Reference Frame Proposals and
节点基础~节点操作
Review of enterprise security incidents: how can enterprises do a good job in preventing source code leakage?
随机推荐
[network data transmission] FPGA based development of 100M / Gigabit UDP packet sending and receiving system, PC to FPGA
Design of test cases
Status of the thread
[Mori city] random talk on GIS data (I)
Transition technology from IPv4 to IPv6
How to input single quotation marks and double quotation marks in latex?
节点基础~节点操作
The idea of implementing charts chart view in all swiftui versions (1.0-4.0) was born
CMS source code of multi wechat management system developed based on thinkphp6, with one click curd and other functions
About how idea sets up shortcut key sets
The final week, I split
提升复杂场景三维重建精度 | 基于PaddleSeg分割无人机遥感影像
Bottom problem of figure
2022-021ARTS:下半年開始
Why does the producer / consumer mode wait () use while instead of if (clear and understandable)
window上用.bat文件启动项目
Boosting the Performance of Video Compression Artifact Reduction with Reference Frame Proposals and
flask-sqlalchemy 循环引用
[MySQL transaction]
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool