gary0416 opened a new issue #989: [Feature] support custom host by environment 
variables when running on docker
URL: https://github.com/apache/incubator-dolphinscheduler/issues/989
 
 
   When DolphinScheduler running on docker,it will get a 172.xx.xx.xx IP(docker 
network) and use it to register to zookeeper.It works fine on a single node.But 
in HA environment(docker needs runing on different machines),communicate with 
each other will faild because network is not reachable.
   For example, when viewing task log, api server will query taskInstance from 
MySQL and reading the host field, then making a grpc call to this host to 
fetching logs and displaying on the browser.If host field is a private network 
address(e.g. 172.xx.xx.xx),it must be faild.
   
   **Describe the solution you'd like**
   This can be resolved by setting DS_HOST_IP environment variables.
   If this env exists, just using it, otherwise get a local IP by Java api.
   
   BTW: Only worker-server need this fixup? 
   Api-server HA is by nginx upstream. Master-server HA is by zk. Alert-server 
just query MySQL.Am I right?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to