postgresql - get the url to connect to marathon app via jdbc -
- i have marathon app running runs postgres. [viz. db-instance]
- i have application running on marathon needs connect first app using database url in jdbc properties file. [viz app-instance]
both of them dockarized. when marathon spins out "db-instance" starts on different slave node in cluster.
so how specify jdbc url in "app-instance" able connect "db-instance"
you use mesos dns this. way able specify not host:port
in app-instance
connect db-instance
via name. each application launched via marathon name db-instance.marathon.mesos
, way won't need bother ip address able specify db connection string db-instance.marathon.mesos:port
.
hope helps.
Comments
Post a Comment