postgresql - get the url to connect to marathon app via jdbc -


  1. i have marathon app running runs postgres. [viz. db-instance]
  2. 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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -