{"id":2366,"date":"2022-08-30T15:24:16","date_gmt":"2022-08-30T15:24:16","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/05\/how-to-prevent-mod_cluster-as-single-point-failure-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:24:16","modified_gmt":"2022-08-30T15:24:16","slug":"how-to-prevent-mod_cluster-as-single-point-failure-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-prevent-mod_cluster-as-single-point-failure-collection-of-common-programming-errors\/","title":{"rendered":"How to prevent mod_cluster as single point failure?-Collection of common programming errors"},"content":{"rendered":"<p>In my configuration i used Apche+mod_cluster as a front_end(load balancer) server and two JBOSS AS 7.1.0 as backend server.<\/p>\n<p>In my configuration on one system i have install Apache+mod_cluster + JBOSS AS 7.1.0 and on other system JBOSS AS 7.1.0. Both JBOSS AS 7.1.0 are in domain mode means in clustering.<\/p>\n<p>My problem is that if Apche+mod_cluster crash than client can not access any JBOSS AS .<\/p>\n<p>I want to configure Apache+mod_cluster in Master_Slave format, means if one of Apache+mod_cluter down another Apache+mod_cluster become active and pass client(browser) request to back-end server in normal form without any interruption.<\/p>\n<p>Is there any way to make two Apache+mod_cluster to communicate with each other , means to check health status of each other and if any one get down other Apche+mod_cluster will do it&#8217;s task &#8230;&#8230;<\/p>\n<ol>\n<li>\n<p>One of the many options is a load-balancing using round-robin DNS, which can also serve as a &#8220;poor-man&#8217;s fault-tolerance&#8221;<\/p>\n<p>Put 2 hosts with apache+mod_cluster in front of appservers. Let&#8217;s call them apache-1 and apache-2. Add IP&#8217;s of both of them to the same DNS record.<\/p>\n<p>You don&#8217;t need any master\/slave configuration, once the next request achieves apache-2 instead of apache-1, it will proxy it to any appserver behind:<\/p>\n<ol>\n<li>If the chosen appserver has the user session, it is served,<\/li>\n<li>Otherwise the session is found across the cluster, migrated to currently selected appserver and served<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-05 22:32:10. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>In my configuration i used Apche+mod_cluster as a front_end(load balancer) server and two JBOSS AS 7.1.0 as backend server. In my configuration on one system i have install Apache+mod_cluster + JBOSS AS 7.1.0 and on other system JBOSS AS 7.1.0. Both JBOSS AS 7.1.0 are in domain mode means in clustering. My problem is that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2366","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2366"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2366\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}