当前位置:网站首页>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
边栏推荐
- 《剑指Offer》第2版——力扣刷题
- Introduction to deep learning Ann neural network parameter optimization problem (SGD, momentum, adagrad, rmsprop, Adam)
- 用于压缩视频感知增强的多目标网络自适应时空融合
- [MySQL transaction]
- tornado项目之路由装饰器
- 2022 - 021arts: début du deuxième semestre
- kubernetes集群之Label管理
- Recursive Fusion and Deformable Spatiotemporal Attention for Video Compression Artifact Reduction
- 在所有SwiftUI版本(1.0-4.0)中原生实现Charts图表视图之思路
- Chain ide -- the infrastructure of the metauniverse
猜你喜欢
[Mori city] random talk on GIS data (I)
Set JTAG fuc invalid to normal IO port
Zephyr Learning note 2, Scheduling
大厂技术专家:架构设计中常用的思维模型
leetcode825. Age appropriate friends
Selenium ide plug-in download, installation and use tutorial
Guoguo took you to write a linked list, and the primary school students said it was good after reading it
Experience installing VMware esxi 6.7 under VMware Workstation 16
The final week, I split
Campus network problems
随机推荐
Recursive Fusion and Deformable Spatiotemporal Attention for Video Compression Artifact Reduction
【Kubernetes系列】Kubernetes 上安装 KubeSphere
Two years ago, the United States was reluctant to sell chips, but now there are mountains of chips begging China for help
2022 - 021arts: début du deuxième semestre
[untitled] notice on holding "2022 traditional fermented food and modern brewing technology"
Zephyr learning notes 1, threads
[thread pool]
Technical experts from large factories: common thinking models in architecture design
Introduction to rce in attack and defense world
Amd RX 7000 Series graphics card product line exposure: two generations of core and process mix and match
If there are two sources in the same job, it will be reported that one of the databases cannot be found. Is there a boss to answer
博客停更声明
Transition technology from IPv4 to IPv6
Used on windows Bat file startup project
《剑指Offer》第2版——力扣刷题
The most effective futures trend strategy: futures reverse merchandising
Uniapp applet subcontracting
手写简易版flexible.js以及源码分析
A real penetration test
【森城市】GIS数据漫谈(一)