flightstats / hub

fault tolerant, highly available service for data storage and distribution
http://www.flightstats.com
MIT License
103 stars 35 forks source link

Support setting HUB_RMI_HOST_IP as an environment variable when launc… #1170

Closed dkleckler closed 5 years ago

dkleckler commented 5 years ago

…hing docker to get it to expose its JMX controls at that IP:8888. You must bind 8888 to the same port on the host box. Authentication is NOT enabled, so probably avoid this in prod.

lkemmerer commented 5 years ago

Not 100% sure I follow this. Will it be configured for all hubs that run via docker and the only part that would enable it is exposing/binding the appropriate port on the container? I'm having trouble reasoning through what'll happen if that environment variable isn't set.

dkleckler commented 5 years ago

It will default to a bogus hostname that will prevent the RMI registry from binding in an accessible way. No errors, you just won't be able to hit it from outside of the container. To get this to work, you need to be sure to bind 8888:8888 and also pass the host's IP as that environment variable.