当前位置:网站首页>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边栏推荐
- [FreeRTOS] FreeRTOS learning notes (7) - handwritten FreeRTOS two-way linked list / source code analysis
- Zephyr 学习笔记2,Scheduling
- Responsive - media query
- A new understanding of how to encrypt industrial computers: host reinforcement application
- [thread pool]
- Technical experts from large factories: common thinking models in architecture design
- Electronic Association C language level 1 35, bank interest
- [GF (q) + LDPC] regular LDPC coding and decoding design and MATLAB simulation based on the GF (q) field of binary graph
- 大学阶段总结
- [web security] nodejs prototype chain pollution analysis
猜你喜欢

Routing decorator of tornado project

Implementation of ZABBIX agent active mode

Uniapp applet subcontracting

The idea of implementing charts chart view in all swiftui versions (1.0-4.0) was born
![[network data transmission] FPGA based development of 100M / Gigabit UDP packet sending and receiving system, PC to FPGA](/img/71/1d6179921ae84b1ba61ed094e592ff.png)
[network data transmission] FPGA based development of 100M / Gigabit UDP packet sending and receiving system, PC to FPGA
![[Valentine's day] - you can change your love and write down your lover's name](/img/ab/402872ad39f9dc58fd27dd6fc823ef.jpg)
[Valentine's day] - you can change your love and write down your lover's name

Transition technology from IPv4 to IPv6

Research on an endogenous data security interaction protocol oriented to dual platform and dual chain architecture

flask-sqlalchemy 循环引用

BasicVSR++: Improving Video Super-Resolutionwith Enhanced Propagation and Alignment
随机推荐
Mobile adaptation: vw/vh
云Redis 有什么用? 云redis怎么用?
Status of the thread
Electronic Association C language level 1 34, piecewise function
The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
Node connection MySQL access denied for user 'root' @ 'localhost' (using password: yes
2022-021rts: from the second half of the year
Knowledge payment applet dream vending machine V2
Introduction to deep learning Ann neural network parameter optimization problem (SGD, momentum, adagrad, rmsprop, Adam)
Crawler (III) crawling house prices in Tianjin
the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘
电脑通过Putty远程连接树莓派
[MySQL transaction]
University stage summary
Implementation of ZABBIX agent active mode
Routing decorator of tornado project
Four sets of APIs for queues
[FPGA tutorial case 8] design and implementation of frequency divider based on Verilog
tornado之目录
Zephyr Learning note 2, Scheduling