{"id":11961,"date":"2018-11-13T07:32:14","date_gmt":"2018-11-13T06:32:14","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/"},"modified":"2018-11-13T07:32:14","modified_gmt":"2018-11-13T06:32:14","slug":"dcos-install-marathon-lb-with-keepalived","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/","title":{"rendered":"DC\/OS: Install Marathon-LB with keepalived"},"content":{"rendered":"<p>After the minimal setup of the DC\/OS in my further articles, I wanted to extend my DC\/OS and add a loadbalancer.<br \/>\nThere are two options for loadbalancing in DC\/OS<br \/>\n1. Marathon-LB (a layer 7 load balancer, used for external requests, based on HAProxy)<br \/>\n2. Named VIPs (a layer 4 load balancer used for internal TCP traffic)<\/p>\n<p>In this article we will use Marathon-LB. In case you want to read more about the VIP solution, just visit the <a href=\"https:\/\/docs.mesosphere.com\/1.11\/networking\/load-balancing-vips\/\" target=\"_blank\" rel=\"noopener noreferrer\">DC\/OS Documentation<\/a>.<\/p>\n<p>I also want to configure keepalived, which will automatically generate a unicast based failover for high-availabilty.<\/p>\n<h3>Preparation<\/h3>\n<p>To use a loadbalancer, I had to extend the DC\/OS I build before <a href=\"https:\/\/www.dbi-services.com\/blog\/deploy-dcos-using-ansible-part-1-getting-started\/\" target=\"\u201d_blank\u201d\" rel=\"noopener noreferrer\"> Deploy DC\/OS using Ansible (Part 1)<\/a>. The new DC\/OS has the following structure:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-29225\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2018\/11\/POWERPNT_2018-11-07_10-04-22.jpg\" alt=\"\" width=\"300\" height=\"214\" \/><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29236\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/POWERPNT_2018-11-07_10-26-14.jpg\" alt=\"POWERPNT_2018-11-07_10-26-14\" width=\"550\" height=\"405\" \/><\/p>\n<h3>Implementation of marathon-lb<\/h3>\n<p>I used the DC\/OS CLI, but you can also install the marathon-lb package using the catalog on the web interface.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1;\">[root@dcos-master ~]# dcos package install marathon-lb\nBy Deploying, you agree to the Terms and Conditions https:\/\/mesosphere.com\/catalog-terms-conditions\/#community-services\nWe recommend at least 2 CPUs and 1GiB of RAM for each Marathon-LB instance.\n\n*NOTE*: For additional ```Enterprise Edition``` DC\/OS instructions, see https:\/\/docs.mesosphere.com\/administration\/id-and-access-mgt\/service-auth\/mlb-auth\/\nContinue installing? [yes\/no] yes\nInstalling Marathon app for package [marathon-lb] version [1.12.3]\nMarathon-lb DC\/OS Service has been successfully installed!\nSee https:\/\/github.com\/mesosphere\/marathon-lb for documentation.\n<\/pre>\n<h3>Create a keepalived configuration<\/h3>\n<p>To implement keepalived on the both Public agents, create two JSON Files (you can find the GitHub Guidance <a href=\"https:\/\/github.com\/arc-ts\/keepalived\">here<\/a>). One for the master and one for the backup.<br \/>\nMake the IPs fitting to your environment. Be sure you did not mix up the IPs for the master and the backup. You also have to adapt the KEEPALIVED_VIRTUAL_IPADDRESS_1<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1;\">[root@dcos-master ~]# cd \/etc\/\n[root@dcos-master etc]# mkdir keepalived\n[root@dcos-master etc]# cat keepalived-master.json\n{\n  \"id\": \"\/keepalived-master\",\n  \"acceptedResourceRoles\": [\n    \"slave_public\"\n  ],\n  \"constraints\": [\n    [\n      \"hostname\",\n      \"LIKE\",\n      \"192.168.22.104\"\n    ]\n  ],\n  \"container\": {\n    \"type\": \"DOCKER\",\n    \"volumes\": [],\n    \"docker\": {\n      \"image\": \"arcts\/keepalived\",\n      \"forcePullImage\": false,\n      \"privileged\": false,\n      \"parameters\": [\n        {\n          \"key\": \"cap-add\",\n          \"value\": \"NET_ADMIN\"\n        }\n      ]\n    }\n  },\n  \"cpus\": 0.5,\n  \"disk\": 0,\n  \"env\": {\n    \"KEEPALIVED_AUTOCONF\": \"true\",\n    \"KEEPALIVED_VIRTUAL_IPADDRESS_1\": \"192.168.22.150\/24\",\n    \"KEEPALIVED_STATE\": \"MASTER\",\n    \"KEEPALIVED_UNICAST_PEER_0\": \"192.168.22.106\",\n    \"KEEPALIVED_INTERFACE\": \"en0ps8\",\n    \"KEEPALIVED_UNICAST_SRC_IP\": \"192.168.22.104\"\n  },\n  \"instances\": 1,\n  \"maxLaunchDelaySeconds\": 3600,\n  \"mem\": 100,\n  \"gpus\": 0,\n  \"networks\": [\n    {\n      \"mode\": \"host\"\n    }\n  ],\n  \"portDefinitions\": [],\n  \"requirePorts\": true,\n  \"upgradeStrategy\": {\n    \"maximumOverCapacity\": 1,\n    \"minimumHealthCapacity\": 1\n  },\n  \"killSelection\": \"YOUNGEST_FIRST\",\n  \"unreachableStrategy\": {\n    \"inactiveAfterSeconds\": 0,\n    \"expungeAfterSeconds\": 0\n  },\n  \"healthChecks\": [],\n  \"fetch\": []\n}\n<\/pre>\n<pre class=\"brush: bash; gutter: true; first-line: 1;\">[root@dcos-master keepalived]# cat keepalived-backup.json\n{\n  \"id\": \"\/keepalived-backup\",\n  \"acceptedResourceRoles\": [\n    \"slave_public\"\n  ],\n  \"constraints\": [\n    [\n      \"hostname\",\n      \"LIKE\",\n      \"192.168.22.106\"\n    ]\n  ],\n  \"container\": {\n    \"type\": \"DOCKER\",\n    \"volumes\": [],\n    \"docker\": {\n      \"image\": \"arcts\/keepalived\",\n      \"forcePullImage\": false,\n      \"privileged\": false,\n      \"parameters\": [\n        {\n          \"key\": \"cap-add\",\n          \"value\": \"NET_ADMIN\"\n        }\n      ]\n    }\n  },\n  \"cpus\": 0.5,\n  \"disk\": 0,\n  \"env\": {\n    \"KEEPALIVED_AUTOCONF\": \"true\",\n    \"KEEPALIVED_VIRTUAL_IPADDRESS_1\": \"192.168.22.150\/24\",\n    \"KEEPALIVED_STATE\": \"BACKUP\",\n    \"KEEPALIVED_UNICAST_PEER_0\": \"192.168.22.104\",\n    \"KEEPALIVED_INTERFACE\": \"en0ps8\",\n    \"KEEPALIVED_UNICAST_SRC_IP\": \"192.168.22.106\"\n  },\n  \"instances\": 1,\n  \"maxLaunchDelaySeconds\": 3600,\n  \"mem\": 124,\n  \"gpus\": 0,\n  \"networks\": [\n    {\n      \"mode\": \"host\"\n    }\n  ],\n  \"portDefinitions\": [],\n  \"requirePorts\": true,\n  \"upgradeStrategy\": {\n    \"maximumOverCapacity\": 1,\n    \"minimumHealthCapacity\": 1\n  },\n  \"killSelection\": \"YOUNGEST_FIRST\",\n  \"unreachableStrategy\": {\n    \"inactiveAfterSeconds\": 0,\n    \"expungeAfterSeconds\": 0\n  },\n  \"healthChecks\": [],\n  \"fetch\": []\n}\n<\/pre>\n<h3>Add the keepalived apps to DC\/OS<\/h3>\n<pre class=\"brush: bash; gutter: true; first-line: 1;\">[root@dcos-master keepalived]# dcos marathon app add keepalived-master.json\nCreated deployment b41b4526-86ae-4b70-a254-429c3c212ce3\n[root@dcos-master keepalived]# dcos marathon app add keepalived-backup.json\nCreated deployment f854a621-f402-4e72-9f46-150b11c6a7c8\n<\/pre>\n<h3>Everything works as expected?<\/h3>\n<p>You can easily check if everything works as expected by either using the CLI<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1;\">[root@dcos-master keepalived]# dcos marathon app list\nID                  MEM  CPUS  TASKS  HEALTH  DEPLOYMENT  WAITING  CONTAINER  CMD\n\/keepalived-backup  124  0.5    1\/1    N\/A       ---      False      DOCKER   N\/A\n\/keepalived-master  100  0.5    1\/1    N\/A       ---      False      DOCKER   N\/A\n\/marathon-lb        800   1     2\/2    2\/2       ---      False      DOCKER   N\/A\n<\/pre>\n<p>Or the web interface. In this case I prefer the web interface. I think it offers a great overview. You can check the health of the Services, the IP addresses&#8230;.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29239\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/firefox_2018-11-01_14-21-00.jpg\" alt=\"firefox_2018-11-01_14-21-00\" width=\"1666\" height=\"409\" \/><\/p>\n<p>Select the keepalived-master to proof the state<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29241\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/firefox_2018-11-07_11-10-25.jpg\" alt=\"firefox_2018-11-07_11-10-25\" width=\"1592\" height=\"336\" \/><\/p>\n<p>Select the log tab and make sure the master is in &#8220;MASTER STATE&#8221;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29242\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/firefox_2018-11-07_11-11-18.jpg\" alt=\"firefox_2018-11-07_11-11-18\" width=\"1618\" height=\"565\" \/><\/p>\n<p>Do the same for the keepalived-backup. The log should show the backup in &#8220;BACKUP STATE&#8221;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29244\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/firefox_2018-11-07_11-14-28.jpg\" alt=\"firefox_2018-11-07_11-14-28\" width=\"1591\" height=\"504\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After the minimal setup of the DC\/OS in my further articles, I wanted to extend my DC\/OS and add a loadbalancer. There are two options for loadbalancing in DC\/OS 1. Marathon-LB (a layer 7 load balancer, used for external requests, based on HAProxy) 2. Named VIPs (a layer 4 load balancer used for internal TCP&hellip;&nbsp;<\/p>\n","protected":false},"author":28,"featured_media":11962,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4133],"tags":[1472,1491,370],"class_list":["post-11961","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database","tag-dc-os","tag-keepalived","tag-open-source"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.4 (Yoast SEO v28.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>DC\/OS: Install Marathon-LB with keepalived - dbi services | Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DC\/OS: Install Marathon-LB with keepalived\" \/>\n<meta property=\"og:description\" content=\"After the minimal setup of the DC\/OS in my further articles, I wanted to extend my DC\/OS and add a loadbalancer. There are two options for loadbalancing in DC\/OS 1. Marathon-LB (a layer 7 load balancer, used for external requests, based on HAProxy) 2. Named VIPs (a layer 4 load balancer used for internal TCP&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services | Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-13T06:32:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/POWERPNT_2018-11-07_10-26-14.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"550\" \/>\n\t<meta property=\"og:image:height\" content=\"405\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Open source Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Open source Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/\"},\"author\":{\"name\":\"Open source Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0b4548362cac3eeff8b3eaf329e3530a\"},\"headline\":\"DC\\\/OS: Install Marathon-LB with keepalived\",\"datePublished\":\"2018-11-13T06:32:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/\"},\"wordCount\":307,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/POWERPNT_2018-11-07_10-26-14.jpg\",\"keywords\":[\"DC\\\/OS\",\"keepalived\",\"Open source\"],\"articleSection\":[\"Database\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/\",\"name\":\"DC\\\/OS: Install Marathon-LB with keepalived - dbi services | Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/POWERPNT_2018-11-07_10-26-14.jpg\",\"datePublished\":\"2018-11-13T06:32:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/POWERPNT_2018-11-07_10-26-14.jpg\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/POWERPNT_2018-11-07_10-26-14.jpg\",\"width\":550,\"height\":405},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dcos-install-marathon-lb-with-keepalived\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DC\\\/OS: Install Marathon-LB with keepalived\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#organization\"},\"alternateName\":\"dbi Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#organization\",\"name\":\"dbi services\",\"alternateName\":\"dbi\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialised in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0b4548362cac3eeff8b3eaf329e3530a\",\"name\":\"Open source Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/open-source-author.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/open-source-author.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/open-source-author.png\",\"caption\":\"Open source Team\"},\"description\":\"Posts published under the Open source Team account are collective contributions by the dbi services open infrastructure consultants. The practice covers open-source databases and platforms, PostgreSQL first of all, along with MySQL, MariaDB, and Linux, from architecture, replication, and high availability to performance tuning and operations under service level agreements, and contributes actively to the PostgreSQL community.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/open-source-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"DC\/OS: Install Marathon-LB with keepalived - dbi services | Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/","og_locale":"en_US","og_type":"article","og_title":"DC\/OS: Install Marathon-LB with keepalived","og_description":"After the minimal setup of the DC\/OS in my further articles, I wanted to extend my DC\/OS and add a loadbalancer. There are two options for loadbalancing in DC\/OS 1. Marathon-LB (a layer 7 load balancer, used for external requests, based on HAProxy) 2. Named VIPs (a layer 4 load balancer used for internal TCP&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/","og_site_name":"dbi services | Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2018-11-13T06:32:14+00:00","og_image":[{"width":550,"height":405,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/POWERPNT_2018-11-07_10-26-14.jpg","type":"image\/jpeg"}],"author":"Open source Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Open source Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/"},"author":{"name":"Open source Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0b4548362cac3eeff8b3eaf329e3530a"},"headline":"DC\/OS: Install Marathon-LB with keepalived","datePublished":"2018-11-13T06:32:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/"},"wordCount":307,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/POWERPNT_2018-11-07_10-26-14.jpg","keywords":["DC\/OS","keepalived","Open source"],"articleSection":["Database"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/","url":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/","name":"DC\/OS: Install Marathon-LB with keepalived - dbi services | Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/POWERPNT_2018-11-07_10-26-14.jpg","datePublished":"2018-11-13T06:32:14+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/POWERPNT_2018-11-07_10-26-14.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/04\/POWERPNT_2018-11-07_10-26-14.jpg","width":550,"height":405},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/dcos-install-marathon-lb-with-keepalived\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"DC\/OS: Install Marathon-LB with keepalived"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/blog\/#organization"},"alternateName":"dbi Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/blog\/#organization","name":"dbi services","alternateName":"dbi","url":"https:\/\/www.dbi-services.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialised in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0b4548362cac3eeff8b3eaf329e3530a","name":"Open source Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/05\/open-source-author.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/05\/open-source-author.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/05\/open-source-author.png","caption":"Open source Team"},"description":"Posts published under the Open source Team account are collective contributions by the dbi services open infrastructure consultants. The practice covers open-source databases and platforms, PostgreSQL first of all, along with MySQL, MariaDB, and Linux, from architecture, replication, and high availability to performance tuning and operations under service level agreements, and contributes actively to the PostgreSQL community.","url":"https:\/\/www.dbi-services.com\/blog\/author\/open-source-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/11961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=11961"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/11961\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/11962"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=11961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=11961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=11961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}