Dubbox监控在服务器中的安装

  1. Jdk-1.6.30以上版本
  2. Tomcat-7.0.42
  3. Duboo-2.5.3
  4. Zookeeper-3.4.5

端口分配

系统/端口

http

https

shutdown

ajp

调度JMX

Dubbo

备注

1

Tomcat

8080

8443

8005

8009

 

 

原端口保留

2

dubbo console

4000

4003

4005

4009

 

 

zookeeper注册端口:2181 本地dubbo端口通常是:2088x

3

dubbo monitor

4010

4013

4015

4019

 

 

 

 

 

 

 

 

 

 

 

 

 

Dubbo监控中心安装

1. 说明

Simple Monitor挂掉不会影响到Consumer和Provider之间的调用,所以用于生产环境不会有风险。

Simple Monitor采用磁盘存储统计信息,请注意安装机器的磁盘限制,如果要集群,建议用mount共享磁盘。

charts目录必须放在jetty.directory下,否则页面上访问不了。

2. 安装

wget http://code.alibabatech.com/mvn/releases/com/alibaba/dubbo-monitor-simple/2.5.3/dubbo-monitor-simple-2.5.3-assembly.tar.gz
tar zxvf dubbo-monitor-simple-2.5.3-assembly.tar.gz
mv dubbo-monitor-simple-2.5.3 /usr/local/dubbo-monitor-simple-4010

3. 配置

cd /usr/local/dubbo-monitor-simple-4010
vi conf/dubbo.properties

dubbo.container=log4j,spring,registry,jetty
dubbo.application.name=simple-monitor
dubbo.application.owner=
#dubbo.registry.address=multicast://224.5.6.7:1234
#dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.registry.address=zookeeper://172.20.32.211:2181?backup=172.20.32.143:2181,172.20.32.143:2182
#dubbo.registry.address=redis://127.0.0.1:6379
#dubbo.registry.address=dubbo://127.0.0.1:9090
dubbo.protocol.port=7070
dubbo.jetty.port=4010
dubbo.jetty.directory=${user.home}/monitor
dubbo.charts.directory=${dubbo.jetty.directory}/charts
dubbo.statistics.directory=${user.home}/monitor/statistics
dubbo.log4j.file=logs/dubbo-monitor-simple.log
dubbo.log4j.level=WARN

4. 启动

./bin/start.sh

5. 停止

./bin/stop.sh

6. 重启:

./bin/restart.sh

7. 调试:

./bin/start.sh debug

8. 系统状态

./bin/dump.sh

 

9. 总控入口:

./bin/server.sh start
./bin/server.sh stop
./bin/server.sh restart
./bin/server.sh debug
./bin/server.sh dump

 

10.    标准输出

tail -f logs/stdout.log

 

命令行: (See: Telnet Command Reference)

11.    验证启动状态

echo status | nc -i 1 127.0.0.1 7070

 

12.    访问:

http://10.0.30.138:4010/

 

 

Dubbo管理控制台安装

管理控制台为内部裁剪版本,开源部分主要包含:路由规则,动态配置,服务降级,访问控制,权重调整,负载均衡,等管理功能。

1. 安装

unzip apache-tomcat-7.0.42.zip -d /usr/local/
mv apache-tomcat-7.0.42 apache-tomcat-7.0.42-4000
cd /usr/local/apache-tomcat-7.0.42-4000
chmod -R +x *

wget http://code.alibabatech.com/mvn/releases/com/alibaba/dubbo-admin/2.5.3/dubbo-admin-2.5.3.war
unzip dubbo-admin-2.5.3.war -d /usr/local/zhanglin/logistics/dubbo-admin

 

2. 配置

修改tomcat的端口,修改host节点

server.xml





dubbo.properties

#vi /usr/local/zhanglin/logistics/dubbo-admin/webapps/ROOT/WEB-INF/dubbo.properties
vi /usr/local/zhanglin/logistics/dubbo-admin/WEB-INF/dubbo.properties
#dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.registry.address=zookeeper://172.20.32.211:2181?backup=172.20.32.143:2181,172.20.32.143:2182
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest

 

3. 启动

./bin/startup.sh

 

4. 停止

./bin/shutdown.sh

5. 访问:

(用户:root,密码:root 或 用户:guest,密码:guest)

http://10.0.30.138:4000/

 

 

<!-- Memcache -->
<dubbo:reference id="cache" interface="JAVA.util.Map" url="memcached://10.20.153.10:11211" />

<!-- Redis -->
<dubbo:reference id="store" interface="java.util.Map" url="redis://10.20.153.10:6379" />

posted on 2016-05-22 20:04  舒润  阅读(2641)  评论(0编辑  收藏  举报

导航