exosphere icon indicating copy to clipboard operation
exosphere copied to clipboard

configuration for host port assignment

Open charlierudolph opened this issue 8 years ago • 2 comments

Ability to specify what port to start counting from, and ability to specify a host port for a given service. I think the service override should be in the application.yml in order to support reusable services.

services:
  service1:
    location:
    host_port: # specify dedicated host port for this service

initial_host_port: # specify what port to start counting from

@hugobho @alexdavid @Bowbaq @dminnear @bishtawi @allensallinger thoughts?

charlierudolph avatar Jan 09 '18 22:01 charlierudolph

This would only pertain to public services right? I'm not sure a public service would ever need to be reusable, one because I can't see any use case for that, but also because there's some configuration (mainly url), that I can't see being reused - so I don't think it'd be a bad idea to list these ports in service.yml. At the same time, it does make sense to list host ports in the app.yml as that gives you a high level view of which services are assigned which ports

hugoesthere avatar Jan 10 '18 00:01 hugoesthere

What's a reusable service? Is the intended behavior here the following:

  • if you specify nothing, it starts numbering ports from a random value by increments of 1
  • if you specify initial_host_port, it starts numbering ports from that value by increments of 1 (in which order? alphabetical on the service name?)
  • if you specify host_port, the service uses that, regardless of the automatic numbering scheme

Bowbaq avatar Jan 10 '18 16:01 Bowbaq