Alice52 / project

This repository is muti language and tech integration project.
MIT License
0 stars 0 forks source link

[es] deploy multi instances #100

Open Alice52 opened 3 years ago

Alice52 commented 3 years ago

1. multi instances in different server

  1. if I have a jar, plan to run as multi instances

    • 101.132.45.28:8080: nacos: 172.17.0.8
    • 101.37.197.32:8080: nacos: 192.168.1.5
  2. the gateway is run in 101.132.45.29:8060

  3. client code will call api according to gateway

  4. flow is below

    • client --> gateway [unique only one]--> 172.17.0.8:8080/192.168.1.5:8080
    • gateway can pasrse and get data from this ip?
Alice52 commented 3 years ago

gateway can pasrse and get data from this ip?

It cannot do this thing. gateway can only visit the service in one server

Alice52 commented 3 years ago

2. gateway and service not in same server

issue discription

  1. if this way, it will timeout
Alice52 commented 3 years ago

3. multi instance in one server

issue description

  1. if I have deployed two instances, it will register the same port and due to bootstrap.yml, but which may not be correct.

    • 172.17.0.8:9000
    • 172.17.0.9:9000: but this mounted port is 9001