A Metaq Installation Deployment:
Place |
Ip |
Broker ID |
Master/slave |
Slave Id:group |
Hefei |
192.168.52.23 |
1 |
Slave |
1:meta-slave-group-hf |
Beijing |
192.168.51.33 |
1 |
Master |
/ |
Guangzhou |
192.168.70.157 |
1 |
Slave |
2:meta-slave-group-gz |
Two Metaq Installation
1. Premises
There are already zookeeper machines installed, and all three Metaq can be accessed, that is, three IP can ping the installed zookeeper machine. Zookeeper is used to register Metaq broker, topic, Pub, sub information, to do load balancing, play a coordinating role.
I have installed zookeeper in all three of the above, currently using Beijing 192.168.51.33:2181 as zookeeper server.
Zookeeper is installed using the Dpkg method of the Ubuntu Deb package.
Start Zookeeper:
Service Zookeeper Start
2. Download Metaqserver 1.4.6.2
Download link: https://meta-queue.googlecode.com/files/metaq-server-1.4.6.2.tar.gz, download metaq-server-1.4.6.2.tar.gz copied to the third place The Usr/lib directory.
3. Deployment
Unzip the tar zxvfmetaq-server-1.4.6.2.tar.gz, move the extracted Taobao/metamorphosis-server-wrapper folder under/usr/lib and rename it to Metaq.
METAQ File Structure:
L Bin:metaq Command folder./meteserver.sh Execute Metaq command
L Conf:metaq Configuration folder, async_slave.properties asynchronous replication configuration, Server.ini configuration broker,samsa_master.properties Synchronous replication configuration.
L Lib:metaq-dependent jar pack
L Provided: Developers ' own programs
This column more highlights: http://www.bianceng.cn/webkf/tools/