{"id":103,"date":"2012-03-19T11:20:45","date_gmt":"2012-03-19T10:20:45","guid":{"rendered":"http:\/\/www.theinternetsheep.com\/blog\/?p=103"},"modified":"2012-06-15T14:13:19","modified_gmt":"2012-06-15T13:13:19","slug":"centos-6-load-balancer-performance","status":"publish","type":"post","link":"https:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/","title":{"rendered":"CentOS 6 load balancer performance"},"content":{"rendered":"<p>Everyone knows that sheep like to flock together, so it should be no surprise that here at the internet sheep we have occasional requirements to use a load balancer to ensure that individual <del>sheep<\/del> servers are not overwhelmed with requests. Our usual weapon of choice to date has been CentOS 5, but we have been migrating to CentOS 6 as a base platform for server infrastructure. A recent new requirement needed a load balancer, and this was implemented using a fresh CentOS 6 install. There have been a number of changes to the various HA packages, but nothing that caused too many problems, and so we quickly had the load balancer configured to our standard setup and ready to test.<\/p>\n<p>Unfortunately, initial testing quickly threw up a problem, and a fairly major one, performance through the load balancer was atrocious, with pages crawling through, images rendering almost line by line, and general all-round slowness. A quick test of the web-site performance directly was nice and quick, and it seemed obvious that somehow the load balancer was interfering. Network connections and cables were checked, configurations on the load balancer and web servers were checked and re-checked, all to no avail. It was not quite late in the day, so it was time to sleep on the matter.<\/p>\n<p>The next morning, with a fresh mind (and a fresh cup of coffee), it was to Google we went, and after a quick read of a number of articles from others who had similar problems (and a few dead-ends), we found someone blaming an incompatibility between the ipvsadm tools and the latest kernel. A quick check of our boot configuration listed two kernels: 2.6.32-220 and 2.6.32-71 \u2013 we changed the default option to the older kernel, rebooted the server, and performance was restored. Presumably this issue will be fixed upstream soon enough, but for others with the same issue, simply edit \/etc\/grub.conf and change the \u201cdefault=0\u201d line to load a previous kernel (\u201cdefault=1\u201d in our case).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everyone knows that sheep like to flock together, so it should be no surprise that here at the internet sheep we have occasional requirements to use a load balancer to ensure that individual sheep servers are not overwhelmed with requests. Our usual weapon of choice to date has been CentOS 5, but we have been [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[23],"tags":[18,34],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-information-technology","tag-computers","tag-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CentOS 6 load balancer performance - Random Baas<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CentOS 6 load balancer performance - Random Baas\" \/>\n<meta property=\"og:description\" content=\"Everyone knows that sheep like to flock together, so it should be no surprise that here at the internet sheep we have occasional requirements to use a load balancer to ensure that individual sheep servers are not overwhelmed with requests. Our usual weapon of choice to date has been CentOS 5, but we have been [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/\" \/>\n<meta property=\"og:site_name\" content=\"Random Baas\" \/>\n<meta property=\"article:published_time\" content=\"2012-03-19T10:20:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-06-15T13:13:19+00:00\" \/>\n<meta name=\"author\" content=\"The Internet Sheep\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"The Internet Sheep\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/\",\"url\":\"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/\",\"name\":\"CentOS 6 load balancer performance - Random Baas\",\"isPartOf\":{\"@id\":\"https:\/\/www.theinternetsheep.com\/blog\/#website\"},\"datePublished\":\"2012-03-19T10:20:45+00:00\",\"dateModified\":\"2012-06-15T13:13:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.theinternetsheep.com\/blog\/#\/schema\/person\/47e97d44df76f0d0d74074dbbff29ebb\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.theinternetsheep.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CentOS 6 load balancer performance\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.theinternetsheep.com\/blog\/#website\",\"url\":\"https:\/\/www.theinternetsheep.com\/blog\/\",\"name\":\"Random Baas\",\"description\":\"Thoughts of The Internet Sheep\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.theinternetsheep.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.theinternetsheep.com\/blog\/#\/schema\/person\/47e97d44df76f0d0d74074dbbff29ebb\",\"name\":\"The Internet Sheep\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.theinternetsheep.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba52343f5621fa1543fb98f0e7c70199266d56c049bcf7defaf3db34cf84f346?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ba52343f5621fa1543fb98f0e7c70199266d56c049bcf7defaf3db34cf84f346?s=96&d=mm&r=g\",\"caption\":\"The Internet Sheep\"},\"url\":\"https:\/\/www.theinternetsheep.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CentOS 6 load balancer performance - Random Baas","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":"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/","og_locale":"en_US","og_type":"article","og_title":"CentOS 6 load balancer performance - Random Baas","og_description":"Everyone knows that sheep like to flock together, so it should be no surprise that here at the internet sheep we have occasional requirements to use a load balancer to ensure that individual sheep servers are not overwhelmed with requests. Our usual weapon of choice to date has been CentOS 5, but we have been [&hellip;]","og_url":"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/","og_site_name":"Random Baas","article_published_time":"2012-03-19T10:20:45+00:00","article_modified_time":"2012-06-15T13:13:19+00:00","author":"The Internet Sheep","twitter_misc":{"Written by":"The Internet Sheep","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/","url":"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/","name":"CentOS 6 load balancer performance - Random Baas","isPartOf":{"@id":"https:\/\/www.theinternetsheep.com\/blog\/#website"},"datePublished":"2012-03-19T10:20:45+00:00","dateModified":"2012-06-15T13:13:19+00:00","author":{"@id":"https:\/\/www.theinternetsheep.com\/blog\/#\/schema\/person\/47e97d44df76f0d0d74074dbbff29ebb"},"breadcrumb":{"@id":"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.theinternetsheep.com\/blog\/2012\/03\/centos-6-load-balancer-performance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.theinternetsheep.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CentOS 6 load balancer performance"}]},{"@type":"WebSite","@id":"https:\/\/www.theinternetsheep.com\/blog\/#website","url":"https:\/\/www.theinternetsheep.com\/blog\/","name":"Random Baas","description":"Thoughts of The Internet Sheep","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.theinternetsheep.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.theinternetsheep.com\/blog\/#\/schema\/person\/47e97d44df76f0d0d74074dbbff29ebb","name":"The Internet Sheep","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.theinternetsheep.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ba52343f5621fa1543fb98f0e7c70199266d56c049bcf7defaf3db34cf84f346?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ba52343f5621fa1543fb98f0e7c70199266d56c049bcf7defaf3db34cf84f346?s=96&d=mm&r=g","caption":"The Internet Sheep"},"url":"https:\/\/www.theinternetsheep.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.theinternetsheep.com\/blog\/wp-json\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.theinternetsheep.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.theinternetsheep.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.theinternetsheep.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.theinternetsheep.com\/blog\/wp-json\/wp\/v2\/comments?post=103"}],"version-history":[{"count":3,"href":"https:\/\/www.theinternetsheep.com\/blog\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":125,"href":"https:\/\/www.theinternetsheep.com\/blog\/wp-json\/wp\/v2\/posts\/103\/revisions\/125"}],"wp:attachment":[{"href":"https:\/\/www.theinternetsheep.com\/blog\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.theinternetsheep.com\/blog\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.theinternetsheep.com\/blog\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}