当前位置:网站首页>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
useridnamecreate_timeiduseridname边栏推荐
- How notepad++ counts words
- Chain ide -- the infrastructure of the metauniverse
- It's healthy to drink medicinal wine like this. Are you drinking it right
- Selenium driver ie common problem solving message: currently focused window has been closed
- 输入年份、月份,确定天数
- Campus network problems
- Life planning (flag)
- notepad++如何统计单词数量
- [network data transmission] FPGA based development of 100M / Gigabit UDP packet sending and receiving system, PC to FPGA
- Used on windows Bat file startup project
猜你喜欢

Boosting the Performance of Video Compression Artifact Reduction with Reference Frame Proposals and

Zephyr study notes 2, scheduling

Zabbix agent主动模式的实现

Redis - detailed explanation of cache avalanche, cache penetration and cache breakdown

Vulhub vulnerability recurrence 77_ zabbix

The most effective futures trend strategy: futures reverse merchandising
![[Flink] temporal semantics and watermark](/img/4d/cf9c7e80ea416155cee62cdec8a5bb.jpg)
[Flink] temporal semantics and watermark

NLP literature reading summary

Introduction to rce in attack and defense world

The final week, I split
随机推荐
[untitled] notice on holding "2022 traditional fermented food and modern brewing technology"
Node foundation ~ node operation
Recursive Fusion and Deformable Spatiotemporal Attention for Video Compression Artifact Reduction
电脑通过Putty远程连接树莓派
2022-021ARTS:下半年开始
jdbc连接es查询的时候,有遇到下面这种情况的大神嘛?
【森城市】GIS数据漫谈(一)
SQL foundation 9 [grouping data]
Handwritten easy version flexible JS and source code analysis
About how idea sets up shortcut key sets
用于压缩视频感知增强的多目标网络自适应时空融合
Zephyr 學習筆記2,Scheduling
Master-slave replication principle of MySQL database
Knowledge payment applet dream vending machine V2
Cell reports: Wei Fuwen group of the Institute of zoology, Chinese Academy of Sciences analyzes the function of seasonal changes in the intestinal flora of giant pandas
Chain ide -- the infrastructure of the metauniverse
leetcode825. Age appropriate friends
Cochez une colonne d'affichage dans une colonne de tableau connue
Status of the thread
Basic DOS commands