规划:manager192.168.1.72/73/74consul192.168.1.72/73/74leader192.168.1.74node192.168.1.70/711、安装discovery使用consul第一台(74)dockerrun--net=host--name=consulprogrium/consul-server-bootstrap-ui-dir=/ui-advertise192.168.1.74端口说明:http8500rpc8400wan8302..
分类:
其他好文 时间:
2016-06-14 19:50:36
阅读次数:
237
准备工作:10.173.16.83 master10.172.178.76 node110.171.19.139 node210.162.204.252 node3 一、安装consul-clustermaster:docker run -d -h master -v /mnt:/data \-p ...
分类:
其他好文 时间:
2016-06-07 08:49:01
阅读次数:
1598
docker深入2-熟悉v1.11和找不同2016/5/24
一、基础环境
1、系统版本
[root@n36~]#cat/etc/redhat-release
CentOSLinuxrelease7.1.1503(Core)
[root@n36~]#uname-a
Linuxn363.10.0-229.el7.x86_64#1SMPFriMar611:36:42UTC2015x86_64x86_64x86_64GNU/Linux
2、安装服务
[root@n3..
分类:
其他好文 时间:
2016-06-01 21:35:06
阅读次数:
368
docker深入2-使用registrator和consul-template自动注册和变更服务2016/6/1
一、示例
测试环境基于文档:docker深入2-熟悉和找不同.txt
host-n35host-n36
-----------------------------------------------------
conf
consul-tempalte
-------------------------------------..
分类:
其他好文 时间:
2016-06-01 18:19:50
阅读次数:
1412
一、首先编写微服务基础项目framework 1、pom.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w ...
分类:
其他好文 时间:
2016-05-29 00:49:36
阅读次数:
801
等写完所有的代码后,会在这里给出整个项目的一个总览图。 技术介绍: 服务注册和服务发现:consul 配置管理:consul 集群容错:hystrix 计数监控:metrics 服务路由: 负载均衡: 服务通信:retrofit、okhttp ...... ...
分类:
其他好文 时间:
2016-05-28 20:43:44
阅读次数:
226
consul的具体安装与操作查看博客的consul系列。 一、启动consul (1个server+1个client,方便起见,client使用本机):查看:http://www.cnblogs.com/java-zhao/p/5375132.html 1、开启虚拟机-->切换到vagrantFil ...
分类:
编程语言 时间:
2016-05-25 18:15:43
阅读次数:
270
1.Start a container running Consul
2.Start a container running Registrator
3. Start a web service and let Registrator automatically register it on Consul
4. Find the IP address and port of the service from Consul UI, and start using the service...
分类:
其他好文 时间:
2016-04-29 19:44:16
阅读次数:
263
实现需求用nginx做负载均衡,手动的方式是在upstream中添加或删除后端服务器,比较麻烦.通过Registrator收集需要注册到Consul作为Nginx后端服务器信息然后注册到Consulkey/value.Consul-template去Consulkey/value中读取信息,然后自动修改Nginx配置文件并平滑重启Nginx.不需要修..
分类:
其他好文 时间:
2016-04-27 18:59:27
阅读次数:
572
1.Start a container running Consul
2.Start a container running Registrator
3. Start a web service and let Registrator automatically register it on Consul
4. Find the IP address and port of the service from Consul UI, and start using the service...
分类:
其他好文 时间:
2016-04-26 21:45:09
阅读次数:
190