项目作者: armdev

项目描述 :
microservices, network
高级语言: Java
项目地址: git://github.com/armdev/micro-network.git
创建时间: 2017-08-31T20:52:10Z
项目社区:https://github.com/armdev/micro-network

开源协议:

下载


Spring cloud Micro Network

Acknowledgement

Tested on Windows 10 using DockerToolbox

RUN

  1. ./run.sh

Stop all containers:

  1. docker stop $(docker ps -a -q)

Remove all containers :

  1. docker rm $(docker ps -a -q)

Remove all images

  1. docker rmi $(docker images -q)

Remove all images which has name none

  1. docker rmi $(docker images | grep "^<none>" | awk "{print $3}")

Monitoring containers

  1. docker run \
  2. --volume=/:/rootfs:ro \
  3. --volume=/var/run:/var/run:rw \
  4. --volume=/sys:/sys:ro \
  5. --volume=/var/lib/docker/:/var/lib/docker:ro \
  6. --volume=/dev/disk/:/dev/disk:ro \
  7. --publish=9999:9999 \
  8. --detach=true \
  9. --name=cadvisor \
  10. google/cadvisor:latest

Services

Eureka node

http://192.168.99.100:8761/

core-node

http://192.168.99.100:8585/swagger-ui.html

full-node

http://192.168.99.100:8686/swagger-ui.html

airline-node

http://192.168.99.100:9090/swagger-ui.html

frontend-node

http://192.168.99.100:9999/frontendnode/index.jsf

turbine-node

http://192.168.99.100:8082/turbine.stream

hystrix-node

http://192.168.99.100:8081/hystrix/

Hystrix monitor turbine

http://192.168.99.100:8081/hystrix/monitor?stream=http%3A%2F%2F192.168.99.100%3A8082%2Fturbine.stream

For see hystrix monitor please do some clicks in http://192.168.99.100:8686/swagger-ui.html dummy API methods and switch to link

#

http://192.168.99.100:8081/hystrix/monitor?stream=http%3A%2F%2F192.168.99.100%3A8082%2Fturbine.stream

Zipkin node

This node will show logs from other nodes after you click core-node http://192.168.99.100:8585/swagger-ui.html API methods.

http://192.168.99.100:9411/

Admin Node

http://192.168.99.100:1111/login.html

User admin
Password admin123

docker-compose up -d —no-deps —build airline-node

Restart all nodes

./restart.sh

Benchmark

docker-compose -f apache-benchmark/docker-compose.yml up

Scale

  1. docker service create —name frontend frontend-node
  2. docker service scale frontend=2
  3. docker ps -a
  4. not tested fully
    https://docs.docker.com/engine/reference/commandline/service_create/#parent-command

https://docs.docker.com/engine/swarm/swarm-tutorial/scale-service/