I have problem witch start redis server on one IP address in mesos, marathon.
My steps
- create own Dockerfile who include own redis.conf
- I create my own docker image and pull it into docker repo (name arekmax/redis-instancje)
- in Marathon I start my docker images - redis start and work properly. Failover redis server in mesos also work properly - when I shut-down 192.168.18.21 server - Marathon start Redis in second or third instance.
Now I want give my developer one adress IP where they can use redis server (I don't want give them now 192.168.18.21:31822 and after failover for example 192.168.18.22:23124). I need some proxy server how will auto check actual redis IP and port.
I try use bamboo project but it work properly to port 80 - I don't know its possibility to use bamboo with redis server - i can't find information how to redirect 31822 (in my situation redis port in docker container) to for example IP 192.168.18.10:6739 (address IP 192.168.18.10 it's for my developer redis server)
Can anyone help me? what is the best solution of the problem? what kind of proxy server/instance/application I should use ?
You can use marathon-lb for example, which will abstract away the
ip:port
lookup. Also, you could use Mesos DNS to resolve service names toip:port
mappings.There are dozen solutions for performing discovery service in Mesos environment.
We can divide them into 3 groups by the way how client find services:
You can find more details about tools that could be used for creating Discovery Service here
We can divide Discovery Services by the way they are populated with service entries: