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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -