Giter Club home page Giter Club logo

micro-network's Introduction

Spring cloud Micro Network

Acknowledgement

Tested on Windows 10 using DockerToolbox

RUN

./run.sh

Stop all containers:

docker stop $(docker ps -a -q)

Remove all containers :

docker rm $(docker ps -a -q)

Remove all images

docker rmi $(docker images -q)

Remove all images which has name none

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

Monitoring containers

docker run \
  --volume=/:/rootfs:ro \
  --volume=/var/run:/var/run:rw \
  --volume=/sys:/sys:ro \
  --volume=/var/lib/docker/:/var/lib/docker:ro \
  --volume=/dev/disk/:/dev/disk:ro \
  --publish=9999:9999 \
  --detach=true \
  --name=cadvisor \
  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/

micro-network's People

Contributors

armdev avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.