performance-analyzer icon indicating copy to clipboard operation
performance-analyzer copied to clipboard

Feature request - allow listening port to be changed using environment

Open MattCarothers opened this issue 5 years ago • 2 comments

We run multiple ES nodes on a single physical machine using --network host. Only one of the nodes can bind to port 9600 at a time, so we need an easy way to change the listening port in our docker-compose file. It would be nice if we could do something like this:

services:
  es00:
    image: amazon/opendistro-for-elasticsearch:0.8.0
    container_name: es00
    environment:
      - http.port=9200
      - node.data=true
      - node.master=false
      - plugin.performance-analyzer.webservice-listener-port=9600
    network_mode: host
  es01:
    image: amazon/opendistro-for-elasticsearch:0.8.0
    container_name: es01
    environment:
      - http.port=9201
      - node.data=true
      - node.master=false
      - plugin.performance-analyzer.webservice-listener-port=9601
    network_mode: host

MattCarothers avatar May 16 '19 19:05 MattCarothers

Hi @MattCarothers,

Can you elaborate on your specific use case? Specifically, what's your use case for host network and ports?

Thanks

allenyin96 avatar May 17 '19 16:05 allenyin96

We run multiple ES nodes on multiple physical machines. It's difficult to get ES nodes to communicate with each other through docker NAT, so we use --network host instead. That means only one of the nodes can bind to port 9600.

MattCarothers avatar May 22 '19 13:05 MattCarothers